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_bitst.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_bitst.c')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_bitst.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_bitst.c b/src/lib/libcrypto/x509v3/v3_bitst.c index 0670aa306e..e846fc2ffe 100644 --- a/src/lib/libcrypto/x509v3/v3_bitst.c +++ b/src/lib/libcrypto/x509v3/v3_bitst.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: v3_bitst.c,v 1.12 2015/09/29 13:54:40 jsing Exp $ */ | 1 | /* $OpenBSD: v3_bitst.c,v 1.13 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 | */ |
@@ -91,7 +91,7 @@ static BIT_STRING_BITNAME key_usage_type_table[] = { | |||
91 | const X509V3_EXT_METHOD v3_nscert = { | 91 | const X509V3_EXT_METHOD v3_nscert = { |
92 | .ext_nid = NID_netscape_cert_type, | 92 | .ext_nid = NID_netscape_cert_type, |
93 | .ext_flags = 0, | 93 | .ext_flags = 0, |
94 | .it = ASN1_ITEM_ref(ASN1_BIT_STRING), | 94 | .it = &ASN1_BIT_STRING_it, |
95 | .ext_new = NULL, | 95 | .ext_new = NULL, |
96 | .ext_free = NULL, | 96 | .ext_free = NULL, |
97 | .d2i = NULL, | 97 | .d2i = NULL, |
@@ -108,7 +108,7 @@ const X509V3_EXT_METHOD v3_nscert = { | |||
108 | const X509V3_EXT_METHOD v3_key_usage = { | 108 | const X509V3_EXT_METHOD v3_key_usage = { |
109 | .ext_nid = NID_key_usage, | 109 | .ext_nid = NID_key_usage, |
110 | .ext_flags = 0, | 110 | .ext_flags = 0, |
111 | .it = ASN1_ITEM_ref(ASN1_BIT_STRING), | 111 | .it = &ASN1_BIT_STRING_it, |
112 | .ext_new = NULL, | 112 | .ext_new = NULL, |
113 | .ext_free = NULL, | 113 | .ext_free = NULL, |
114 | .d2i = NULL, | 114 | .d2i = NULL, |