diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2015-04-03 08:41:26 -0500 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2015-04-03 08:41:26 -0500 |
commit | bf2fb811d547558bb5abcd7f1cb524790e25b5b8 (patch) | |
tree | 83d871f2be47f957786c73e1045149c46d6a4a40 /src | |
parent | 8956b3a9364d3712ba4c37a476798e689f54cfa1 (diff) | |
parent | 6a95e91d16d4bd5c72097cdc13f7c4d01d0e803f (diff) | |
download | cryptography-bf2fb811d547558bb5abcd7f1cb524790e25b5b8.tar.gz cryptography-bf2fb811d547558bb5abcd7f1cb524790e25b5b8.tar.bz2 cryptography-bf2fb811d547558bb5abcd7f1cb524790e25b5b8.zip |
Merge pull request #1812 from reaperhulk/asn1-bitstring
add some ASN1_BIT_STRING bindings for OpenSSL
Diffstat (limited to 'src')
-rw-r--r-- | src/cryptography/hazmat/bindings/openssl/asn1.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cryptography/hazmat/bindings/openssl/asn1.py b/src/cryptography/hazmat/bindings/openssl/asn1.py index d8b8331e..45dfe758 100644 --- a/src/cryptography/hazmat/bindings/openssl/asn1.py +++ b/src/cryptography/hazmat/bindings/openssl/asn1.py @@ -40,6 +40,7 @@ struct asn1_string_st { typedef struct asn1_string_st ASN1_OCTET_STRING; typedef struct asn1_string_st ASN1_IA5STRING; +typedef ... ASN1_BIT_STRING; typedef ... ASN1_OBJECT; typedef ... ASN1_STRING; typedef ... ASN1_TYPE; @@ -115,9 +116,12 @@ int ASN1_ENUMERATED_set(ASN1_ENUMERATED *, long); ASN1_VALUE *ASN1_item_d2i(ASN1_VALUE **, const unsigned char **, long, const ASN1_ITEM *); +int ASN1_BIT_STRING_set_bit(ASN1_BIT_STRING *, int, int); """ MACROS = """ +/* This is not a macro, but is const on some versions of OpenSSL */ +int ASN1_BIT_STRING_get_bit(ASN1_BIT_STRING *, int); ASN1_TIME *M_ASN1_TIME_dup(void *); const ASN1_ITEM *ASN1_ITEM_ptr(ASN1_ITEM_EXP *); |