diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2003-03-20 17:58:33 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2003-03-20 17:58:33 +0000 |
commit | ea3675b5b60789f87a998bad8aab0ca53b3af4ed (patch) | |
tree | e1adc7663800410999ed7cd0f16a6cf253e85ab1 /util | |
parent | c554155b58f5c0dda132048bb0a68a2d1a463d98 (diff) |
New ASN1 macros to just implement and declare the new and free functions
and changes to mkdef.pl so it recognises them.
Use these in policyMappings extension.
Diffstat (limited to 'util')
-rwxr-xr-x | util/libeay.num | 6 | ||||
-rwxr-xr-x | util/mkdef.pl | 4 |
2 files changed, 10 insertions, 0 deletions
diff --git a/util/libeay.num b/util/libeay.num index 243d9f12d9..b97228ce3b 100755 --- a/util/libeay.num +++ b/util/libeay.num @@ -3000,3 +3000,9 @@ a2i_IPADDRESS 3434 EXIST::FUNCTION: ENGINE_setup_bsd_cryptodev 3435 EXIST:__FreeBSD__:FUNCTION:ENGINE EC_GROUP_have_precompute_mult 3436 EXIST::FUNCTION:EC X509V3_NAME_from_section 3437 EXIST::FUNCTION: +POLICY_MAPPING_it 3438 EXIST:!EXPORT_VAR_AS_FUNCTION:VARIABLE: +POLICY_MAPPING_it 3438 EXIST:EXPORT_VAR_AS_FUNCTION:FUNCTION: +POLICY_MAPPINGS_it 3439 EXIST:!EXPORT_VAR_AS_FUNCTION:VARIABLE: +POLICY_MAPPINGS_it 3439 EXIST:EXPORT_VAR_AS_FUNCTION:FUNCTION: +POLICY_MAPPING_new 3440 EXIST::FUNCTION: +POLICY_MAPPING_free 3441 EXIST::FUNCTION: diff --git a/util/mkdef.pl b/util/mkdef.pl index f7f0e6ebf2..3091e2035b 100755 --- a/util/mkdef.pl +++ b/util/mkdef.pl @@ -673,6 +673,10 @@ sub do_defs "EXPORT_VAR_AS_FUNCTION", "FUNCTION"); next; + } elsif (/^\s*DECLARE_ASN1_ALLOC_FUNCTIONS\s*\(\s*(\w*)\s*\)/) { + $def .= "int $1_free(void);"; + $def .= "int $1_new(void);"; + next; } elsif (/^\s*DECLARE_ASN1_FUNCTIONS_name\s*\(\s*(\w*)\s*,\s*(\w*)\s*\)/) { $def .= "int d2i_$2(void);"; $def .= "int i2d_$2(void);"; |