diff options
author | cyli <cyli@twistedmatrix.com> | 2013-10-18 21:33:42 -0700 |
---|---|---|
committer | cyli <cyli@twistedmatrix.com> | 2013-10-19 12:10:22 -0700 |
commit | 37e305696b9bfa7c42c17c629727c3e17ae7e11a (patch) | |
tree | aac5b3cf3ebc4c15486f5951d17f04bba974caab | |
parent | 91d236962bec0b79cf34fd48ad7d8f5fb4c2c2f7 (diff) | |
download | cryptography-37e305696b9bfa7c42c17c629727c3e17ae7e11a.tar.gz cryptography-37e305696b9bfa7c42c17c629727c3e17ae7e11a.tar.bz2 cryptography-37e305696b9bfa7c42c17c629727c3e17ae7e11a.zip |
Move macro things to macros
-rw-r--r-- | cryptography/bindings/openssl/x509v3.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/cryptography/bindings/openssl/x509v3.py b/cryptography/bindings/openssl/x509v3.py index 71efc105..18226050 100644 --- a/cryptography/bindings/openssl/x509v3.py +++ b/cryptography/bindings/openssl/x509v3.py @@ -78,12 +78,15 @@ typedef struct stack_st_GENERAL_NAME GENERAL_NAMES; FUNCTIONS = """ void X509V3_set_ctx(X509V3_CTX *, X509 *, X509 *, X509_REQ *, X509_CRL *, int); -void *X509V3_set_ctx_nodb(X509V3_CTX *); X509_EXTENSION *X509V3_EXT_nconf(CONF *, X509V3_CTX *, char *, char *); const X509V3_EXT_METHOD *X509V3_EXT_get(X509_EXTENSION *); const X509V3_EXT_METHOD *X509V3_EXT_get_nid(int); +int GENERAL_NAME_print(BIO *, GENERAL_NAME *); +""" + +MACROS = """ +void *X509V3_set_ctx_nodb(X509V3_CTX *); 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); -int GENERAL_NAME_print(BIO *, GENERAL_NAME *); """ |