From ae84f39407e5f0add92094593cc52922198355d4 Mon Sep 17 00:00:00 2001 From: jsing <> Date: Fri, 30 Dec 2016 15:54:49 +0000 Subject: 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)); --- src/lib/libcrypto/x509v3/v3_pcons.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libcrypto/x509v3/v3_pcons.c') diff --git a/src/lib/libcrypto/x509v3/v3_pcons.c b/src/lib/libcrypto/x509v3/v3_pcons.c index a5a8d8a025..144ba88e8d 100644 --- a/src/lib/libcrypto/x509v3/v3_pcons.c +++ b/src/lib/libcrypto/x509v3/v3_pcons.c @@ -1,4 +1,4 @@ -/* $OpenBSD: v3_pcons.c,v 1.9 2015/07/29 16:13:49 jsing Exp $ */ +/* $OpenBSD: v3_pcons.c,v 1.10 2016/12/30 15:54:49 jsing Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project. */ @@ -74,7 +74,7 @@ static void *v2i_POLICY_CONSTRAINTS(const X509V3_EXT_METHOD *method, const X509V3_EXT_METHOD v3_policy_constraints = { .ext_nid = NID_policy_constraints, .ext_flags = 0, - .it = ASN1_ITEM_ref(POLICY_CONSTRAINTS), + .it = &POLICY_CONSTRAINTS_it, .ext_new = NULL, .ext_free = NULL, .d2i = NULL, -- cgit v1.2.3-55-g6feb