summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/x509v3/v3_ncons.c
diff options
context:
space:
mode:
authorjsing <>2016-12-30 15:54:49 +0000
committerjsing <>2016-12-30 15:54:49 +0000
commit34bdec04311ee3fb8f658406df37d4da910d1630 (patch)
tree853b9e5ebf0a8736f0e5ed0a4f77b796ee89ce19 /src/lib/libcrypto/x509v3/v3_ncons.c
parent19f5bc5369a8920072dcf66ff2aa6e1b7cc62b85 (diff)
downloadopenbsd-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_ncons.c')
-rw-r--r--src/lib/libcrypto/x509v3/v3_ncons.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/libcrypto/x509v3/v3_ncons.c b/src/lib/libcrypto/x509v3/v3_ncons.c
index 2af15726a8..e96d426de6 100644
--- a/src/lib/libcrypto/x509v3/v3_ncons.c
+++ b/src/lib/libcrypto/x509v3/v3_ncons.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: v3_ncons.c,v 1.9 2015/07/29 16:13:48 jsing Exp $ */ 1/* $OpenBSD: v3_ncons.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 */
@@ -82,7 +82,7 @@ static int nc_uri(ASN1_IA5STRING *uri, ASN1_IA5STRING *base);
82const X509V3_EXT_METHOD v3_name_constraints = { 82const X509V3_EXT_METHOD v3_name_constraints = {
83 .ext_nid = NID_name_constraints, 83 .ext_nid = NID_name_constraints,
84 .ext_flags = 0, 84 .ext_flags = 0,
85 .it = ASN1_ITEM_ref(NAME_CONSTRAINTS), 85 .it = &NAME_CONSTRAINTS_it,
86 .ext_new = NULL, 86 .ext_new = NULL,
87 .ext_free = NULL, 87 .ext_free = NULL,
88 .d2i = NULL, 88 .d2i = NULL,