From ac522c4ff05436545808ed8b97404011881f694a Mon Sep 17 00:00:00 2001 From: tb Date: Sat, 11 May 2024 18:59:39 +0000 Subject: [PATCH] Move X509V3_add_standard_extensions out of the way This function is only used by OpenLDAP and it's been a noop since forever. It has no business to be squeezed in between a number of other, quite unrelated functions. It's distracting. --- lib/libcrypto/x509/x509_lib.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lib/libcrypto/x509/x509_lib.c b/lib/libcrypto/x509/x509_lib.c index 45ed9405fdc..578f55ec55f 100644 --- a/lib/libcrypto/x509/x509_lib.c +++ b/lib/libcrypto/x509/x509_lib.c @@ -1,4 +1,4 @@ -/* $OpenBSD: x509_lib.c,v 1.19 2024/05/11 18:52:52 tb Exp $ */ +/* $OpenBSD: x509_lib.c,v 1.20 2024/05/11 18:59:39 tb Exp $ */ /* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL * project 1999. */ @@ -161,13 +161,6 @@ X509V3_EXT_get(X509_EXTENSION *ext) } LCRYPTO_ALIAS(X509V3_EXT_get); -int -X509V3_add_standard_extensions(void) -{ - return 1; -} -LCRYPTO_ALIAS(X509V3_add_standard_extensions); - /* Return an extension internal structure */ void * @@ -332,3 +325,10 @@ err: return 0; } LCRYPTO_ALIAS(X509V3_add1_i2d); + +int +X509V3_add_standard_extensions(void) +{ + return 1; +} +LCRYPTO_ALIAS(X509V3_add_standard_extensions); -- 2.20.1