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_int.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/libcrypto/x509v3/v3_int.c') diff --git a/src/lib/libcrypto/x509v3/v3_int.c b/src/lib/libcrypto/x509v3/v3_int.c index bd059b7269..f8a5e7df92 100644 --- a/src/lib/libcrypto/x509v3/v3_int.c +++ b/src/lib/libcrypto/x509v3/v3_int.c @@ -1,4 +1,4 @@ -/* $OpenBSD: v3_int.c,v 1.10 2015/07/29 16:13:48 jsing Exp $ */ +/* $OpenBSD: v3_int.c,v 1.11 2016/12/30 15:54:49 jsing Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 1999. */ @@ -63,7 +63,7 @@ const X509V3_EXT_METHOD v3_crl_num = { .ext_nid = NID_crl_number, .ext_flags = 0, - .it = ASN1_ITEM_ref(ASN1_INTEGER), + .it = &ASN1_INTEGER_it, .ext_new = NULL, .ext_free = NULL, .d2i = NULL, @@ -80,7 +80,7 @@ const X509V3_EXT_METHOD v3_crl_num = { const X509V3_EXT_METHOD v3_delta_crl = { .ext_nid = NID_delta_crl, .ext_flags = 0, - .it = ASN1_ITEM_ref(ASN1_INTEGER), + .it = &ASN1_INTEGER_it, .ext_new = NULL, .ext_free = NULL, .d2i = NULL, @@ -101,7 +101,7 @@ s2i_asn1_int(X509V3_EXT_METHOD *meth, X509V3_CTX *ctx, char *value) } const X509V3_EXT_METHOD v3_inhibit_anyp = { - NID_inhibit_any_policy, 0, ASN1_ITEM_ref(ASN1_INTEGER), + NID_inhibit_any_policy, 0, &ASN1_INTEGER_it, 0, 0, 0, 0, (X509V3_EXT_I2S)i2s_ASN1_INTEGER, (X509V3_EXT_S2I)s2i_asn1_int, -- cgit v1.2.3-55-g6feb