diff options
author | Paul Kehrer <paul.l.kehrer@gmail.com> | 2016-06-04 13:55:19 -0700 |
---|---|---|
committer | Alex Gaynor <alex.gaynor@gmail.com> | 2016-06-04 13:55:19 -0700 |
commit | fb5e7d4dfb599a5b6e49948e49fe8926694d12d7 (patch) | |
tree | 1780d6ab7b32c41b7f2b8251c0f40de61c7cea0b /src | |
parent | 5563ea0882cf4dea93c3c9af2af98724e27863b2 (diff) | |
download | cryptography-fb5e7d4dfb599a5b6e49948e49fe8926694d12d7.tar.gz cryptography-fb5e7d4dfb599a5b6e49948e49fe8926694d12d7.tar.bz2 cryptography-fb5e7d4dfb599a5b6e49948e49fe8926694d12d7.zip |
remove the i2d_{EXTENSION_NAME} macros since we don't need them (#2966)
* remove the i2d_{EXTENSION_NAME} macros since we don't need them
* we still need this for a few more moments
Diffstat (limited to 'src')
-rw-r--r-- | src/_cffi_src/openssl/x509v3.py | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/_cffi_src/openssl/x509v3.py b/src/_cffi_src/openssl/x509v3.py index d4a93f26..b4276bb2 100644 --- a/src/_cffi_src/openssl/x509v3.py +++ b/src/_cffi_src/openssl/x509v3.py @@ -190,18 +190,15 @@ void *X509V3_EXT_d2i(X509_EXTENSION *); MACROS = """ /* This is a macro defined by a call to DECLARE_ASN1_FUNCTIONS in the x509v3.h header. */ -int i2d_BASIC_CONSTRAINTS(BASIC_CONSTRAINTS *, unsigned char **); BASIC_CONSTRAINTS *BASIC_CONSTRAINTS_new(void); void BASIC_CONSTRAINTS_free(BASIC_CONSTRAINTS *); /* This is a macro defined by a call to DECLARE_ASN1_FUNCTIONS in the x509v3.h header. */ AUTHORITY_KEYID *AUTHORITY_KEYID_new(void); void AUTHORITY_KEYID_free(AUTHORITY_KEYID *); -int i2d_AUTHORITY_KEYID(AUTHORITY_KEYID *, unsigned char **); NAME_CONSTRAINTS *NAME_CONSTRAINTS_new(void); void NAME_CONSTRAINTS_free(NAME_CONSTRAINTS *); -int Cryptography_i2d_NAME_CONSTRAINTS(NAME_CONSTRAINTS *, unsigned char **); OTHERNAME *OTHERNAME_new(void); void OTHERNAME_free(OTHERNAME *); @@ -215,11 +212,6 @@ int i2d_GENERAL_NAMES(GENERAL_NAMES *, unsigned char **); GENERAL_NAMES *d2i_GENERAL_NAMES(GENERAL_NAMES **, const unsigned char **, long); -int i2d_EXTENDED_KEY_USAGE(EXTENDED_KEY_USAGE *, unsigned char **); - -int i2d_AUTHORITY_INFO_ACCESS(Cryptography_STACK_OF_ACCESS_DESCRIPTION *, - 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); @@ -267,9 +259,6 @@ void NOTICEREF_free(NOTICEREF *); USERNOTICE *USERNOTICE_new(void); void USERNOTICE_free(USERNOTICE *); -int i2d_CERTIFICATEPOLICIES(Cryptography_STACK_OF_POLICYINFO *, - unsigned char **); - void sk_POLICYQUALINFO_free(Cryptography_STACK_OF_POLICYQUALINFO *); int sk_POLICYQUALINFO_num(Cryptography_STACK_OF_POLICYQUALINFO *); POLICYQUALINFO *sk_POLICYQUALINFO_value(Cryptography_STACK_OF_POLICYQUALINFO *, @@ -303,17 +292,7 @@ void DIST_POINT_free(DIST_POINT *); DIST_POINT_NAME *DIST_POINT_NAME_new(void); void DIST_POINT_NAME_free(DIST_POINT_NAME *); -int i2d_CRL_DIST_POINTS(Cryptography_STACK_OF_DIST_POINT *, unsigned char **); """ CUSTOMIZATIONS = """ -/* i2d_NAME_CONSTRAINTS doesn't exist, but this is the way the macros in - asn1t.h would implement it. We're not using those macros in case - OpenSSL exposes this function in the future. */ -int Cryptography_i2d_NAME_CONSTRAINTS(NAME_CONSTRAINTS *nc, - unsigned char **out) { - return ASN1_item_i2d((ASN1_VALUE *)nc, out, - ASN1_ITEM_rptr(NAME_CONSTRAINTS)); -} - """ |