aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-04-02 19:10:46 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-04-02 19:10:46 -0500
commit6a95e91d16d4bd5c72097cdc13f7c4d01d0e803f (patch)
treeca49e512003639e9443da835b91a343121117c16
parentc053129791404f5f03df2c2243878f08352fb88d (diff)
downloadcryptography-6a95e91d16d4bd5c72097cdc13f7c4d01d0e803f.tar.gz
cryptography-6a95e91d16d4bd5c72097cdc13f7c4d01d0e803f.tar.bz2
cryptography-6a95e91d16d4bd5c72097cdc13f7c4d01d0e803f.zip
add some ASN1_BIT_STRING bindings for OpenSSL
-rw-r--r--src/cryptography/hazmat/bindings/openssl/asn1.py4
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 *);