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_pci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libcrypto/x509v3/v3_pci.c') diff --git a/src/lib/libcrypto/x509v3/v3_pci.c b/src/lib/libcrypto/x509v3/v3_pci.c index ff1d087667..d0a1af96ea 100644 --- a/src/lib/libcrypto/x509v3/v3_pci.c +++ b/src/lib/libcrypto/x509v3/v3_pci.c @@ -1,4 +1,4 @@ -/* $OpenBSD: v3_pci.c,v 1.10 2015/07/29 16:13:49 jsing Exp $ */ +/* $OpenBSD: v3_pci.c,v 1.11 2016/12/30 15:54:49 jsing Exp $ */ /* Contributed to the OpenSSL Project 2004 * by Richard Levitte (richard@levitte.org) */ @@ -49,7 +49,7 @@ static PROXY_CERT_INFO_EXTENSION *r2i_pci(X509V3_EXT_METHOD *method, const X509V3_EXT_METHOD v3_pci = { .ext_nid = NID_proxyCertInfo, .ext_flags = 0, - .it = ASN1_ITEM_ref(PROXY_CERT_INFO_EXTENSION), + .it = &PROXY_CERT_INFO_EXTENSION_it, .ext_new = NULL, .ext_free = NULL, .d2i = NULL, -- cgit v1.2.3-55-g6feb