summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
authortb <>2024-08-31 09:54:31 +0000
committertb <>2024-08-31 09:54:31 +0000
commitdd1c0533fa84d7ee8bbf2e4d256d3225e2057fe0 (patch)
tree49ad5cdf039b322393da0038abb0efc6bb07782e /src/lib
parent144b36fd43addcc9c23fdb5b703325339d0b1293 (diff)
downloadopenbsd-dd1c0533fa84d7ee8bbf2e4d256d3225e2057fe0.tar.gz
openbsd-dd1c0533fa84d7ee8bbf2e4d256d3225e2057fe0.tar.bz2
openbsd-dd1c0533fa84d7ee8bbf2e4d256d3225e2057fe0.zip
Remove OPENSSL_load_builtin_modules
This became obsolete with the automatic library initialization. Now it is time for it to become an internal API. ok beck jsing
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libcrypto/Symbols.list1
-rw-r--r--src/lib/libcrypto/conf/conf.h4
-rw-r--r--src/lib/libcrypto/conf/conf_local.h4
-rw-r--r--src/lib/libcrypto/conf/conf_mall.c3
-rw-r--r--src/lib/libcrypto/conf/conf_sap.c4
-rw-r--r--src/lib/libcrypto/hidden/openssl/conf.h3
6 files changed, 9 insertions, 10 deletions
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list
index d76ab68db6..31e9480c0d 100644
--- a/src/lib/libcrypto/Symbols.list
+++ b/src/lib/libcrypto/Symbols.list
@@ -1673,7 +1673,6 @@ OPENSSL_cpuid_setup
1673OPENSSL_gmtime 1673OPENSSL_gmtime
1674OPENSSL_init 1674OPENSSL_init
1675OPENSSL_init_crypto 1675OPENSSL_init_crypto
1676OPENSSL_load_builtin_modules
1677OPENSSL_no_config 1676OPENSSL_no_config
1678OPENSSL_posix_to_tm 1677OPENSSL_posix_to_tm
1679OPENSSL_timegm 1678OPENSSL_timegm
diff --git a/src/lib/libcrypto/conf/conf.h b/src/lib/libcrypto/conf/conf.h
index b7df24e001..e8873f6f75 100644
--- a/src/lib/libcrypto/conf/conf.h
+++ b/src/lib/libcrypto/conf/conf.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: conf.h,v 1.26 2024/08/31 09:53:02 tb Exp $ */ 1/* $OpenBSD: conf.h,v 1.27 2024/08/31 09:54:31 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -139,8 +139,6 @@ void CONF_modules_free(void);
139 139
140char *CONF_get1_default_config_file(void); 140char *CONF_get1_default_config_file(void);
141 141
142void OPENSSL_load_builtin_modules(void);
143
144void ERR_load_CONF_strings(void); 142void ERR_load_CONF_strings(void);
145 143
146/* Error codes for the CONF functions. */ 144/* Error codes for the CONF functions. */
diff --git a/src/lib/libcrypto/conf/conf_local.h b/src/lib/libcrypto/conf/conf_local.h
index 2933240c8e..d7255e1a0c 100644
--- a/src/lib/libcrypto/conf/conf_local.h
+++ b/src/lib/libcrypto/conf/conf_local.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: conf_local.h,v 1.6 2024/08/31 09:53:02 tb Exp $ */ 1/* $OpenBSD: conf_local.h,v 1.7 2024/08/31 09:54:31 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -106,6 +106,8 @@ char *_CONF_get_string(const CONF *conf, const char *section,
106int _CONF_new_data(CONF *conf); 106int _CONF_new_data(CONF *conf);
107void _CONF_free_data(CONF *conf); 107void _CONF_free_data(CONF *conf);
108 108
109void OPENSSL_load_builtin_modules(void);
110
109__END_HIDDEN_DECLS 111__END_HIDDEN_DECLS
110 112
111#endif /* HEADER_CONF_LOCAL_H */ 113#endif /* HEADER_CONF_LOCAL_H */
diff --git a/src/lib/libcrypto/conf/conf_mall.c b/src/lib/libcrypto/conf/conf_mall.c
index 6a3d180f9c..dd1bb6797f 100644
--- a/src/lib/libcrypto/conf/conf_mall.c
+++ b/src/lib/libcrypto/conf/conf_mall.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: conf_mall.c,v 1.12 2024/04/09 13:56:30 beck Exp $ */ 1/* $OpenBSD: conf_mall.c,v 1.13 2024/08/31 09:54:31 tb Exp $ */
2/* Written by Stephen Henson (steve@openssl.org) for the OpenSSL 2/* Written by Stephen Henson (steve@openssl.org) for the OpenSSL
3 * project 2001. 3 * project 2001.
4 */ 4 */
@@ -67,4 +67,3 @@ OPENSSL_load_builtin_modules(void)
67 /* Add builtin modules here */ 67 /* Add builtin modules here */
68 ASN1_add_oid_module(); 68 ASN1_add_oid_module();
69} 69}
70LCRYPTO_ALIAS(OPENSSL_load_builtin_modules);
diff --git a/src/lib/libcrypto/conf/conf_sap.c b/src/lib/libcrypto/conf/conf_sap.c
index 3a0bf96df8..59c90dab49 100644
--- a/src/lib/libcrypto/conf/conf_sap.c
+++ b/src/lib/libcrypto/conf/conf_sap.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: conf_sap.c,v 1.16 2024/04/09 13:56:30 beck Exp $ */ 1/* $OpenBSD: conf_sap.c,v 1.17 2024/08/31 09:54:31 tb Exp $ */
2/* Written by Stephen Henson (steve@openssl.org) for the OpenSSL 2/* Written by Stephen Henson (steve@openssl.org) for the OpenSSL
3 * project 2001. 3 * project 2001.
4 */ 4 */
@@ -67,6 +67,8 @@
67#include <openssl/err.h> 67#include <openssl/err.h>
68#include <openssl/x509.h> 68#include <openssl/x509.h>
69 69
70#include "conf_local.h"
71
70/* This is the automatic configuration loader: it is called automatically by 72/* This is the automatic configuration loader: it is called automatically by
71 * OpenSSL when any of a number of standard initialisation functions are called, 73 * OpenSSL when any of a number of standard initialisation functions are called,
72 * unless this is overridden by calling OPENSSL_no_config() 74 * unless this is overridden by calling OPENSSL_no_config()
diff --git a/src/lib/libcrypto/hidden/openssl/conf.h b/src/lib/libcrypto/hidden/openssl/conf.h
index 29b49e920d..f3780985b8 100644
--- a/src/lib/libcrypto/hidden/openssl/conf.h
+++ b/src/lib/libcrypto/hidden/openssl/conf.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: conf.h,v 1.8 2024/08/31 09:53:02 tb Exp $ */ 1/* $OpenBSD: conf.h,v 1.9 2024/08/31 09:54:31 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2024 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2024 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -40,7 +40,6 @@ LCRYPTO_USED(CONF_modules_unload);
40LCRYPTO_USED(CONF_modules_finish); 40LCRYPTO_USED(CONF_modules_finish);
41LCRYPTO_USED(CONF_modules_free); 41LCRYPTO_USED(CONF_modules_free);
42LCRYPTO_USED(CONF_get1_default_config_file); 42LCRYPTO_USED(CONF_get1_default_config_file);
43LCRYPTO_USED(OPENSSL_load_builtin_modules);
44LCRYPTO_USED(ERR_load_CONF_strings); 43LCRYPTO_USED(ERR_load_CONF_strings);
45 44
46#endif /* _LIBCRYPTO_CONF_H */ 45#endif /* _LIBCRYPTO_CONF_H */