aboutsummaryrefslogtreecommitdiffstats
path: root/src/_cffi_src/openssl
diff options
context:
space:
mode:
authorPaul Kehrer <paul.l.kehrer@gmail.com>2015-10-01 16:50:42 -0500
committerPaul Kehrer <paul.l.kehrer@gmail.com>2015-11-03 15:00:10 +0900
commitd91e7c1d3fa1bece0e77262b46d9992271fd24b0 (patch)
tree4bf4ac0adfe53723d6b72273c6e1b3645041e523 /src/_cffi_src/openssl
parent5f80d6cd7bb3c2275de2fbad4ac6a24a15709b66 (diff)
downloadcryptography-d91e7c1d3fa1bece0e77262b46d9992271fd24b0.tar.gz
cryptography-d91e7c1d3fa1bece0e77262b46d9992271fd24b0.tar.bz2
cryptography-d91e7c1d3fa1bece0e77262b46d9992271fd24b0.zip
add support for Certificate signature and tbs_certificate
Diffstat (limited to 'src/_cffi_src/openssl')
-rw-r--r--src/_cffi_src/openssl/asn1.py2
-rw-r--r--src/_cffi_src/openssl/x509.py2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/_cffi_src/openssl/asn1.py b/src/_cffi_src/openssl/asn1.py
index 259adf19..ddf4b9c5 100644
--- a/src/_cffi_src/openssl/asn1.py
+++ b/src/_cffi_src/openssl/asn1.py
@@ -23,7 +23,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 struct asn1_string_st ASN1_BIT_STRING;
typedef ... ASN1_OBJECT;
typedef struct asn1_string_st ASN1_STRING;
typedef struct asn1_string_st ASN1_UTF8STRING;
diff --git a/src/_cffi_src/openssl/x509.py b/src/_cffi_src/openssl/x509.py
index 468d74ea..2024101b 100644
--- a/src/_cffi_src/openssl/x509.py
+++ b/src/_cffi_src/openssl/x509.py
@@ -71,6 +71,7 @@ typedef struct {
typedef struct {
X509_ALGOR *sig_alg;
X509_CINF *cert_info;
+ ASN1_BIT_STRING *signature;
...;
} X509;
@@ -257,6 +258,7 @@ void PKCS8_PRIV_KEY_INFO_free(PKCS8_PRIV_KEY_INFO *);
"""
MACROS = """
+int i2d_X509_CINF(X509_CINF *, unsigned char **);
long X509_get_version(X509 *);
ASN1_TIME *X509_get_notBefore(X509 *);