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_lib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/lib/libcrypto/x509v3/v3_lib.c') diff --git a/src/lib/libcrypto/x509v3/v3_lib.c b/src/lib/libcrypto/x509v3/v3_lib.c index 7731c7c544..2e92747d43 100644 --- a/src/lib/libcrypto/x509v3/v3_lib.c +++ b/src/lib/libcrypto/x509v3/v3_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: v3_lib.c,v 1.14 2015/02/10 11:22:22 jsing Exp $ */ +/* $OpenBSD: v3_lib.c,v 1.15 2016/12/30 15:54:49 jsing Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 1999. */ @@ -194,7 +194,7 @@ X509V3_EXT_d2i(X509_EXTENSION *ext) p = ext->value->data; if (method->it) return ASN1_item_d2i(NULL, &p, ext->value->length, - ASN1_ITEM_ptr(method->it)); + method->it); return method->d2i(NULL, &p, ext->value->length); } -- cgit v1.2.3-55-g6feb