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_info.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_info.c')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_info.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_info.c b/src/lib/libcrypto/x509v3/v3_info.c index 3b96222187..34ffb1c539 100644 --- a/src/lib/libcrypto/x509v3/v3_info.c +++ b/src/lib/libcrypto/x509v3/v3_info.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: v3_info.c,v 1.23 2015/07/29 16:13:48 jsing Exp $ */ | 1 | /* $OpenBSD: v3_info.c,v 1.24 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 1999. | 3 | * project 1999. |
4 | */ | 4 | */ |
@@ -74,7 +74,7 @@ static AUTHORITY_INFO_ACCESS *v2i_AUTHORITY_INFO_ACCESS( | |||
74 | const X509V3_EXT_METHOD v3_info = { | 74 | const X509V3_EXT_METHOD v3_info = { |
75 | .ext_nid = NID_info_access, | 75 | .ext_nid = NID_info_access, |
76 | .ext_flags = X509V3_EXT_MULTILINE, | 76 | .ext_flags = X509V3_EXT_MULTILINE, |
77 | .it = ASN1_ITEM_ref(AUTHORITY_INFO_ACCESS), | 77 | .it = &AUTHORITY_INFO_ACCESS_it, |
78 | .ext_new = NULL, | 78 | .ext_new = NULL, |
79 | .ext_free = NULL, | 79 | .ext_free = NULL, |
80 | .d2i = NULL, | 80 | .d2i = NULL, |
@@ -91,7 +91,7 @@ const X509V3_EXT_METHOD v3_info = { | |||
91 | const X509V3_EXT_METHOD v3_sinfo = { | 91 | const X509V3_EXT_METHOD v3_sinfo = { |
92 | .ext_nid = NID_sinfo_access, | 92 | .ext_nid = NID_sinfo_access, |
93 | .ext_flags = X509V3_EXT_MULTILINE, | 93 | .ext_flags = X509V3_EXT_MULTILINE, |
94 | .it = ASN1_ITEM_ref(AUTHORITY_INFO_ACCESS), | 94 | .it = &AUTHORITY_INFO_ACCESS_it, |
95 | .ext_new = NULL, | 95 | .ext_new = NULL, |
96 | .ext_free = NULL, | 96 | .ext_free = NULL, |
97 | .d2i = NULL, | 97 | .d2i = NULL, |