diff options
| author | Alex Stapleton <alexs@prol.etari.at> | 2014-04-22 10:05:38 +0100 | 
|---|---|---|
| committer | Alex Stapleton <alexs@prol.etari.at> | 2014-04-22 10:05:38 +0100 | 
| commit | 804b6ad36b0d4195ad40200189a88003a8dd1571 (patch) | |
| tree | 901e2e408df6d05cb3814707f1919bbdb0b21715 /cryptography | |
| parent | b5236fe24efa4d399353327db49c23dc6e81d1f5 (diff) | |
| parent | 81e03b8a71d5ce3c0b82a7fad1b70addfe140793 (diff) | |
| download | cryptography-804b6ad36b0d4195ad40200189a88003a8dd1571.tar.gz cryptography-804b6ad36b0d4195ad40200189a88003a8dd1571.tar.bz2 cryptography-804b6ad36b0d4195ad40200189a88003a8dd1571.zip | |
Merge pull request #948 from skeuomorf/dsa-sig-bindings
Add bindings for DSA_SIG and related functions
Diffstat (limited to 'cryptography')
| -rw-r--r-- | cryptography/hazmat/bindings/openssl/dsa.py | 8 | 
1 files changed, 8 insertions, 0 deletions
| diff --git a/cryptography/hazmat/bindings/openssl/dsa.py b/cryptography/hazmat/bindings/openssl/dsa.py index 40d3b8ee..51a02666 100644 --- a/cryptography/hazmat/bindings/openssl/dsa.py +++ b/cryptography/hazmat/bindings/openssl/dsa.py @@ -31,6 +31,10 @@ typedef struct dsa_st {      BIGNUM *pub_key;      ...;  } DSA; +typedef struct { +    BIGNUM *r; +    BIGNUM *s; +} DSA_SIG;  """  FUNCTIONS = """ @@ -39,6 +43,10 @@ DSA *DSA_generate_parameters(int, unsigned char *, int, int *, unsigned long *,  int DSA_generate_key(DSA *);  DSA *DSA_new(void);  void DSA_free(DSA *); +DSA_SIG *DSA_SIG_new(void); +void DSA_SIG_free(DSA_SIG *); +int i2d_DSA_SIG(const DSA_SIG *, unsigned char **); +DSA_SIG *d2i_DSA_SIG(DSA_SIG **, const unsigned char **, long);  """  MACROS = """ | 
