diff options
author | jsing <> | 2016-12-30 15:54:49 +0000 |
---|---|---|
committer | jsing <> | 2016-12-30 15:54:49 +0000 |
commit | 34bdec04311ee3fb8f658406df37d4da910d1630 (patch) | |
tree | 853b9e5ebf0a8736f0e5ed0a4f77b796ee89ce19 /src/lib/libcrypto/x509v3/v3_alt.c | |
parent | 19f5bc5369a8920072dcf66ff2aa6e1b7cc62b85 (diff) | |
download | openbsd-34bdec04311ee3fb8f658406df37d4da910d1630.tar.gz openbsd-34bdec04311ee3fb8f658406df37d4da910d1630.tar.bz2 openbsd-34bdec04311ee3fb8f658406df37d4da910d1630.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_alt.c')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_alt.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_alt.c b/src/lib/libcrypto/x509v3/v3_alt.c index 75c68d3cdb..23867ea449 100644 --- a/src/lib/libcrypto/x509v3/v3_alt.c +++ b/src/lib/libcrypto/x509v3/v3_alt.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: v3_alt.c,v 1.25 2015/09/30 18:21:50 jsing Exp $ */ | 1 | /* $OpenBSD: v3_alt.c,v 1.26 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 | */ |
@@ -76,7 +76,7 @@ const X509V3_EXT_METHOD v3_alt[] = { | |||
76 | { | 76 | { |
77 | .ext_nid = NID_subject_alt_name, | 77 | .ext_nid = NID_subject_alt_name, |
78 | .ext_flags = 0, | 78 | .ext_flags = 0, |
79 | .it = ASN1_ITEM_ref(GENERAL_NAMES), | 79 | .it = &GENERAL_NAMES_it, |
80 | .ext_new = NULL, | 80 | .ext_new = NULL, |
81 | .ext_free = NULL, | 81 | .ext_free = NULL, |
82 | .d2i = NULL, | 82 | .d2i = NULL, |
@@ -92,7 +92,7 @@ const X509V3_EXT_METHOD v3_alt[] = { | |||
92 | { | 92 | { |
93 | .ext_nid = NID_issuer_alt_name, | 93 | .ext_nid = NID_issuer_alt_name, |
94 | .ext_flags = 0, | 94 | .ext_flags = 0, |
95 | .it = ASN1_ITEM_ref(GENERAL_NAMES), | 95 | .it = &GENERAL_NAMES_it, |
96 | .ext_new = NULL, | 96 | .ext_new = NULL, |
97 | .ext_free = NULL, | 97 | .ext_free = NULL, |
98 | .d2i = NULL, | 98 | .d2i = NULL, |
@@ -108,7 +108,7 @@ const X509V3_EXT_METHOD v3_alt[] = { | |||
108 | { | 108 | { |
109 | .ext_nid = NID_certificate_issuer, | 109 | .ext_nid = NID_certificate_issuer, |
110 | .ext_flags = 0, | 110 | .ext_flags = 0, |
111 | .it = ASN1_ITEM_ref(GENERAL_NAMES), | 111 | .it = &GENERAL_NAMES_it, |
112 | .ext_new = NULL, | 112 | .ext_new = NULL, |
113 | .ext_free = NULL, | 113 | .ext_free = NULL, |
114 | .d2i = NULL, | 114 | .d2i = NULL, |