diff options
author | Michael Schlenker <Michael.Schlenker@contact-software.com> | 2015-04-03 17:57:21 +0200 |
---|---|---|
committer | Michael Schlenker <Michael.Schlenker@contact-software.com> | 2015-04-03 18:19:25 +0200 |
commit | 090dcb302f4ea8e6e77aac6ea772cbf7241e0227 (patch) | |
tree | af84b53ae07beb86dd923105e71ec16ec2801a95 | |
parent | cdf3d3be6f9a8a017fb44a646cab51fbd2c6bd23 (diff) | |
download | cryptography-090dcb302f4ea8e6e77aac6ea772cbf7241e0227.tar.gz cryptography-090dcb302f4ea8e6e77aac6ea772cbf7241e0227.tar.bz2 cryptography-090dcb302f4ea8e6e77aac6ea772cbf7241e0227.zip |
Add wrappers for STACK_OF(X509_CRL) manipulation
This is useful for PyOpenssl to implement CRL checking
in the new X509StoreContext.verify_certificate() API to add
CRLs to the check via X509_STORE_CTX_set0_crls() which is already wrapped.
-rw-r--r-- | src/cryptography/hazmat/bindings/openssl/x509.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/cryptography/hazmat/bindings/openssl/x509.py b/src/cryptography/hazmat/bindings/openssl/x509.py index e867450b..2e95d9c9 100644 --- a/src/cryptography/hazmat/bindings/openssl/x509.py +++ b/src/cryptography/hazmat/bindings/openssl/x509.py @@ -262,6 +262,12 @@ void sk_X509_EXTENSION_free(X509_EXTENSIONS *); int sk_X509_REVOKED_num(Cryptography_STACK_OF_X509_REVOKED *); X509_REVOKED *sk_X509_REVOKED_value(Cryptography_STACK_OF_X509_REVOKED *, int); +Cryptography_STACK_OF_X509_CRL *sk_X509_CRL_new_null(void); +void sk_X509_CRL_free(Cryptography_STACK_OF_X509_CRL *); +int sk_X509_CRL_num(Cryptography_STACK_OF_X509_CRL *); +int sk_X509_CRL_push(Cryptography_STACK_OF_X509_CRL *, X509_CRL *); +X509_CRL *sk_X509_CRL_value(Cryptography_STACK_OF_X509_CRL *, int); + int i2d_RSAPublicKey(RSA *, unsigned char **); int i2d_RSAPrivateKey(RSA *, unsigned char **); int i2d_DSAPublicKey(DSA *, unsigned char **); |