diff options
author | jsing <> | 2015-02-10 05:43:09 +0000 |
---|---|---|
committer | jsing <> | 2015-02-10 05:43:09 +0000 |
commit | 893f871bcdd3e19e2a9e5ce38182898ff50684a9 (patch) | |
tree | 252e1b3a1811f5247783160ad31b867fe39af0e4 /src/lib/libcrypto/x509v3/v3_pcons.c | |
parent | 2eecb536a9b8f1c8c2ea5f485be1748d475a131c (diff) | |
download | openbsd-893f871bcdd3e19e2a9e5ce38182898ff50684a9.tar.gz openbsd-893f871bcdd3e19e2a9e5ce38182898ff50684a9.tar.bz2 openbsd-893f871bcdd3e19e2a9e5ce38182898ff50684a9.zip |
Expand the IMPLEMENT_ASN1_ALLOC_FUNCTIONS macro so that the code is visible
and functions can be readily located.
Change has been scripted and the generated assembly only differs by changes
to line numbers.
Discussed with beck@ miod@ tedu@
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_pcons.c')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_pcons.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_pcons.c b/src/lib/libcrypto/x509v3/v3_pcons.c index 64e1f44b21..075efd8851 100644 --- a/src/lib/libcrypto/x509v3/v3_pcons.c +++ b/src/lib/libcrypto/x509v3/v3_pcons.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: v3_pcons.c,v 1.5 2014/07/11 08:44:49 jsing Exp $ */ | 1 | /* $OpenBSD: v3_pcons.c,v 1.6 2015/02/10 05:43:09 jsing Exp $ */ |
2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL | 2 | /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL |
3 | * project. | 3 | * project. |
4 | */ | 4 | */ |
@@ -88,7 +88,18 @@ ASN1_SEQUENCE(POLICY_CONSTRAINTS) = { | |||
88 | ASN1_IMP_OPT(POLICY_CONSTRAINTS, inhibitPolicyMapping, ASN1_INTEGER, 1) | 88 | ASN1_IMP_OPT(POLICY_CONSTRAINTS, inhibitPolicyMapping, ASN1_INTEGER, 1) |
89 | } ASN1_SEQUENCE_END(POLICY_CONSTRAINTS) | 89 | } ASN1_SEQUENCE_END(POLICY_CONSTRAINTS) |
90 | 90 | ||
91 | IMPLEMENT_ASN1_ALLOC_FUNCTIONS(POLICY_CONSTRAINTS) | 91 | |
92 | POLICY_CONSTRAINTS * | ||
93 | POLICY_CONSTRAINTS_new(void) | ||
94 | { | ||
95 | return (POLICY_CONSTRAINTS*)ASN1_item_new(&POLICY_CONSTRAINTS_it); | ||
96 | } | ||
97 | |||
98 | void | ||
99 | POLICY_CONSTRAINTS_free(POLICY_CONSTRAINTS *a) | ||
100 | { | ||
101 | ASN1_item_free((ASN1_VALUE *)a, &POLICY_CONSTRAINTS_it); | ||
102 | } | ||
92 | 103 | ||
93 | static STACK_OF(CONF_VALUE) * | 104 | static STACK_OF(CONF_VALUE) * |
94 | i2v_POLICY_CONSTRAINTS(const X509V3_EXT_METHOD *method, void *a, | 105 | i2v_POLICY_CONSTRAINTS(const X509V3_EXT_METHOD *method, void *a, |