diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-07-03 08:29:41 -0500 |
---|---|---|
committer | Paul Kehrer <paul.l.kehrer@gmail.com> | 2015-07-03 08:29:41 -0500 |
commit | 122b5ed88ce7697a3ad7baed1172a09944a2ba25 (patch) | |
tree | 5d55efc785a6d7a9971cfc008be7c74c98d016f7 /src | |
parent | 82db219902113c954a0eeb049f9423b8ce8a49f3 (diff) | |
parent | c6f23c3a77bb9641b6087d7ec6a5ff3417b17eee (diff) | |
download | cryptography-122b5ed88ce7697a3ad7baed1172a09944a2ba25.tar.gz cryptography-122b5ed88ce7697a3ad7baed1172a09944a2ba25.tar.bz2 cryptography-122b5ed88ce7697a3ad7baed1172a09944a2ba25.zip |
Merge pull request #2102 from alex/more-bindings
added a few more x509 bindings for SAN encoding
Diffstat (limited to 'src')
-rw-r--r-- | src/_cffi_src/openssl/x509v3.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/_cffi_src/openssl/x509v3.py b/src/_cffi_src/openssl/x509v3.py index 166fa59d..52287459 100644 --- a/src/_cffi_src/openssl/x509v3.py +++ b/src/_cffi_src/openssl/x509v3.py @@ -172,7 +172,9 @@ FUNCTIONS = """ int X509V3_EXT_add_alias(int, int); void X509V3_set_ctx(X509V3_CTX *, X509 *, X509 *, X509_REQ *, X509_CRL *, int); X509_EXTENSION *X509V3_EXT_nconf(CONF *, X509V3_CTX *, char *, char *); +GENERAL_NAME *GENERAL_NAME_new(void); int GENERAL_NAME_print(BIO *, GENERAL_NAME *); +GENERAL_NAMES *GENERAL_NAMES_new(void); void GENERAL_NAMES_free(GENERAL_NAMES *); void *X509V3_EXT_d2i(X509_EXTENSION *); """ @@ -191,6 +193,9 @@ NAME_CONSTRAINTS *NAME_CONSTRAINTS_new(void); void NAME_CONSTRAINTS_free(NAME_CONSTRAINTS *); void *X509V3_set_ctx_nodb(X509V3_CTX *); + +int i2d_GENERAL_NAMES(GENERAL_NAMES *, unsigned char **); + int sk_GENERAL_NAME_num(struct stack_st_GENERAL_NAME *); int sk_GENERAL_NAME_push(struct stack_st_GENERAL_NAME *, GENERAL_NAME *); GENERAL_NAME *sk_GENERAL_NAME_value(struct stack_st_GENERAL_NAME *, int); |