aboutsummaryrefslogtreecommitdiffstats
path: root/util
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2003-03-20 17:58:33 +0000
committerDr. Stephen Henson <steve@openssl.org>2003-03-20 17:58:33 +0000
commitea3675b5b60789f87a998bad8aab0ca53b3af4ed (patch)
treee1adc7663800410999ed7cd0f16a6cf253e85ab1 /util
parentc554155b58f5c0dda132048bb0a68a2d1a463d98 (diff)
downloadopenssl-ea3675b5b60789f87a998bad8aab0ca53b3af4ed.tar.gz
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-xutil/libeay.num6
-rwxr-xr-xutil/mkdef.pl4
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);";