diff options
author | Alex Gaynor <alex.gaynor@gmail.com> | 2016-06-01 23:29:03 -0700 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-06-01 23:29:03 -0700 |
commit | 157dac9e0f9b5d6f614c03b52baa958c9253e2cf (patch) | |
tree | efb4cc6120ae0d20dc3ba7bb5bbcbf43d244e9c0 /src/_cffi_src | |
parent | 5f92c14a359d6e4fe6bd918c90f814b13c46965c (diff) | |
download | cryptography-157dac9e0f9b5d6f614c03b52baa958c9253e2cf.tar.gz cryptography-157dac9e0f9b5d6f614c03b52baa958c9253e2cf.tar.bz2 cryptography-157dac9e0f9b5d6f614c03b52baa958c9253e2cf.zip |
Bind another function because reasons (#2940)
* Bind another function because reasons
* ptr
* move to the correct section
Diffstat (limited to 'src/_cffi_src')
-rw-r--r-- | src/_cffi_src/openssl/x509.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/_cffi_src/openssl/x509.py b/src/_cffi_src/openssl/x509.py index 28f00da7..aa8a8e7b 100644 --- a/src/_cffi_src/openssl/x509.py +++ b/src/_cffi_src/openssl/x509.py @@ -282,6 +282,7 @@ int i2d_X509_REQ_INFO(X509_REQ_INFO *, unsigned char **); int i2d_re_X509_tbs(X509 *, unsigned char **); void X509_get0_signature(ASN1_BIT_STRING **, X509_ALGOR **, X509 *); int X509_get_signature_nid(const X509 *); +X509_ALGOR *X509_get0_tbs_sigalg(X509 *); long X509_get_version(X509 *); @@ -428,6 +429,12 @@ X509_REVOKED *Cryptography_X509_REVOKED_dup(X509_REVOKED *rev) { /* Added in 1.1.0 but we need it in all versions now due to the great opaquing. */ #if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER) + +X509_ALGOR *X509_get0_tbs_sigalg(X509 *x) +{ + return x->cert_info->signature; +} + /* from x509/x509_req.c */ void X509_REQ_get0_signature(ASN1_BIT_STRING **psig, X509_ALGOR **palg, X509_REQ *req) |