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_ia5.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_ia5.c')
-rw-r--r-- | src/lib/libcrypto/x509v3/v3_ia5.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_ia5.c b/src/lib/libcrypto/x509v3/v3_ia5.c index 20e44ec2b1..74b6439346 100644 --- a/src/lib/libcrypto/x509v3/v3_ia5.c +++ b/src/lib/libcrypto/x509v3/v3_ia5.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: v3_ia5.c,v 1.15 2015/09/30 18:21:50 jsing Exp $ */ | 1 | /* $OpenBSD: v3_ia5.c,v 1.16 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 | */ |
@@ -72,7 +72,7 @@ const X509V3_EXT_METHOD v3_ns_ia5_list[] = { | |||
72 | { | 72 | { |
73 | .ext_nid = NID_netscape_base_url, | 73 | .ext_nid = NID_netscape_base_url, |
74 | .ext_flags = 0, | 74 | .ext_flags = 0, |
75 | .it = ASN1_ITEM_ref(ASN1_IA5STRING), | 75 | .it = &ASN1_IA5STRING_it, |
76 | .ext_new = NULL, | 76 | .ext_new = NULL, |
77 | .ext_free = NULL, | 77 | .ext_free = NULL, |
78 | .d2i = NULL, | 78 | .d2i = NULL, |
@@ -88,7 +88,7 @@ const X509V3_EXT_METHOD v3_ns_ia5_list[] = { | |||
88 | { | 88 | { |
89 | .ext_nid = NID_netscape_revocation_url, | 89 | .ext_nid = NID_netscape_revocation_url, |
90 | .ext_flags = 0, | 90 | .ext_flags = 0, |
91 | .it = ASN1_ITEM_ref(ASN1_IA5STRING), | 91 | .it = &ASN1_IA5STRING_it, |
92 | .ext_new = NULL, | 92 | .ext_new = NULL, |
93 | .ext_free = NULL, | 93 | .ext_free = NULL, |
94 | .d2i = NULL, | 94 | .d2i = NULL, |
@@ -104,7 +104,7 @@ const X509V3_EXT_METHOD v3_ns_ia5_list[] = { | |||
104 | { | 104 | { |
105 | .ext_nid = NID_netscape_ca_revocation_url, | 105 | .ext_nid = NID_netscape_ca_revocation_url, |
106 | .ext_flags = 0, | 106 | .ext_flags = 0, |
107 | .it = ASN1_ITEM_ref(ASN1_IA5STRING), | 107 | .it = &ASN1_IA5STRING_it, |
108 | .ext_new = NULL, | 108 | .ext_new = NULL, |
109 | .ext_free = NULL, | 109 | .ext_free = NULL, |
110 | .d2i = NULL, | 110 | .d2i = NULL, |
@@ -120,7 +120,7 @@ const X509V3_EXT_METHOD v3_ns_ia5_list[] = { | |||
120 | { | 120 | { |
121 | .ext_nid = NID_netscape_renewal_url, | 121 | .ext_nid = NID_netscape_renewal_url, |
122 | .ext_flags = 0, | 122 | .ext_flags = 0, |
123 | .it = ASN1_ITEM_ref(ASN1_IA5STRING), | 123 | .it = &ASN1_IA5STRING_it, |
124 | .ext_new = NULL, | 124 | .ext_new = NULL, |
125 | .ext_free = NULL, | 125 | .ext_free = NULL, |
126 | .d2i = NULL, | 126 | .d2i = NULL, |
@@ -136,7 +136,7 @@ const X509V3_EXT_METHOD v3_ns_ia5_list[] = { | |||
136 | { | 136 | { |
137 | .ext_nid = NID_netscape_ca_policy_url, | 137 | .ext_nid = NID_netscape_ca_policy_url, |
138 | .ext_flags = 0, | 138 | .ext_flags = 0, |
139 | .it = ASN1_ITEM_ref(ASN1_IA5STRING), | 139 | .it = &ASN1_IA5STRING_it, |
140 | .ext_new = NULL, | 140 | .ext_new = NULL, |
141 | .ext_free = NULL, | 141 | .ext_free = NULL, |
142 | .d2i = NULL, | 142 | .d2i = NULL, |
@@ -152,7 +152,7 @@ const X509V3_EXT_METHOD v3_ns_ia5_list[] = { | |||
152 | { | 152 | { |
153 | .ext_nid = NID_netscape_ssl_server_name, | 153 | .ext_nid = NID_netscape_ssl_server_name, |
154 | .ext_flags = 0, | 154 | .ext_flags = 0, |
155 | .it = ASN1_ITEM_ref(ASN1_IA5STRING), | 155 | .it = &ASN1_IA5STRING_it, |
156 | .ext_new = NULL, | 156 | .ext_new = NULL, |
157 | .ext_free = NULL, | 157 | .ext_free = NULL, |
158 | .d2i = NULL, | 158 | .d2i = NULL, |
@@ -168,7 +168,7 @@ const X509V3_EXT_METHOD v3_ns_ia5_list[] = { | |||
168 | { | 168 | { |
169 | .ext_nid = NID_netscape_comment, | 169 | .ext_nid = NID_netscape_comment, |
170 | .ext_flags = 0, | 170 | .ext_flags = 0, |
171 | .it = ASN1_ITEM_ref(ASN1_IA5STRING), | 171 | .it = &ASN1_IA5STRING_it, |
172 | .ext_new = NULL, | 172 | .ext_new = NULL, |
173 | .ext_free = NULL, | 173 | .ext_free = NULL, |
174 | .d2i = NULL, | 174 | .d2i = NULL, |