diff options
author | jsing <> | 2016-12-30 15:54:49 +0000 |
---|---|---|
committer | jsing <> | 2016-12-30 15:54:49 +0000 |
commit | ae84f39407e5f0add92094593cc52922198355d4 (patch) | |
tree | 853b9e5ebf0a8736f0e5ed0a4f77b796ee89ce19 /src/lib/libcrypto/x509v3/v3_pcons.c | |
parent | 1ac942fa8a015058791a7b0e48924e2b3201f528 (diff) | |
download | openbsd-ae84f39407e5f0add92094593cc52922198355d4.tar.gz openbsd-ae84f39407e5f0add92094593cc52922198355d4.tar.bz2 openbsd-ae84f39407e5f0add92094593cc52922198355d4.zip |
Expand ASN1_ITEM_ref and ASN1_ITEM_ptr macros - no change in generated
assembly. Of particular interest is ASN1_ITEM_ptr which does nothing
and resulted in code like:
if (method->it)
ASN1_ITEM_free(..., ASN1_ITEM_ptr(method->it));
Diffstat (limited to 'src/lib/libcrypto/x509v3/v3_pcons.c')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_pcons.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_pcons.c b/src/lib/libcrypto/x509v3/v3_pcons.c index a5a8d8a025..144ba88e8d 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.9 2015/07/29 16:13:49 jsing Exp $ */ | 1 | /* $OpenBSD: v3_pcons.c,v 1.10 2016/12/30 15:54:49 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 | */ |
@@ -74,7 +74,7 @@ static void *v2i_POLICY_CONSTRAINTS(const X509V3_EXT_METHOD *method, | |||
74 | const X509V3_EXT_METHOD v3_policy_constraints = { | 74 | const X509V3_EXT_METHOD v3_policy_constraints = { |
75 | .ext_nid = NID_policy_constraints, | 75 | .ext_nid = NID_policy_constraints, |
76 | .ext_flags = 0, | 76 | .ext_flags = 0, |
77 | .it = ASN1_ITEM_ref(POLICY_CONSTRAINTS), | 77 | .it = &POLICY_CONSTRAINTS_it, |
78 | .ext_new = NULL, | 78 | .ext_new = NULL, |
79 | .ext_free = NULL, | 79 | .ext_free = NULL, |
80 | .d2i = NULL, | 80 | .d2i = NULL, |