From e1fcc6e34ef3136fbabaf2e7a21307d4b8784025 Mon Sep 17 00:00:00 2001 From: Paul Kehrer Date: Tue, 9 Jul 2019 08:00:43 -0400 Subject: add bindings to parse and create challenge passwords in X509 CSRs (#4943) * add bindings to parse and create challenge passwords in X509 CSRs * moved away from the 1.1.0 section --- src/_cffi_src/openssl/x509.py | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/_cffi_src/openssl/x509.py') diff --git a/src/_cffi_src/openssl/x509.py b/src/_cffi_src/openssl/x509.py index d1c8699f..b48f3179 100644 --- a/src/_cffi_src/openssl/x509.py +++ b/src/_cffi_src/openssl/x509.py @@ -29,6 +29,7 @@ typedef struct { ...; } X509_ALGOR; +typedef ... X509_ATTRIBUTE; typedef ... X509_EXTENSION; typedef ... X509_EXTENSIONS; typedef ... X509_REQ; @@ -87,6 +88,12 @@ EVP_PKEY *X509_REQ_get_pubkey(X509_REQ *); int X509_REQ_print_ex(BIO *, X509_REQ *, unsigned long, unsigned long); int X509_REQ_add_extensions(X509_REQ *, X509_EXTENSIONS *); X509_EXTENSIONS *X509_REQ_get_extensions(X509_REQ *); +X509_ATTRIBUTE *X509_REQ_get_attr(const X509_REQ *, int); +int X509_REQ_get_attr_by_OBJ(const X509_REQ *, const ASN1_OBJECT *, int); +void *X509_ATTRIBUTE_get0_data(X509_ATTRIBUTE *, int, int, void *); +ASN1_TYPE *X509_ATTRIBUTE_get0_type(X509_ATTRIBUTE *, int); +int X509_REQ_add1_attr_by_txt(X509_REQ *, const char *, int, + const unsigned char *, int); int X509V3_EXT_print(BIO *, X509_EXTENSION *, unsigned long, int); ASN1_OCTET_STRING *X509_EXTENSION_get_data(X509_EXTENSION *); -- cgit v1.2.3