summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortb <>2024-03-02 09:02:04 +0000
committertb <>2024-03-02 09:02:04 +0000
commita73fc18db0f7a430051a0c4c25c3154278ae50a0 (patch)
tree6f9ab12d823fbc202f3891db15ef302e73bf7fb9
parentc65895af2c2fed4774618ef4358bbb36943f0dde (diff)
downloadopenbsd-a73fc18db0f7a430051a0c4c25c3154278ae50a0.tar.gz
openbsd-a73fc18db0f7a430051a0c4c25c3154278ae50a0.tar.bz2
openbsd-a73fc18db0f7a430051a0c4c25c3154278ae50a0.zip
Make ASN1_add_oid_module internal
ok jsing
-rw-r--r--src/lib/libcrypto/Symbols.list1
-rw-r--r--src/lib/libcrypto/Symbols.namespace1
-rw-r--r--src/lib/libcrypto/asn1/asn1.h4
-rw-r--r--src/lib/libcrypto/asn1/asn_moid.c3
-rw-r--r--src/lib/libcrypto/conf/conf_mall.c10
-rw-r--r--src/lib/libcrypto/hidden/openssl/asn1.h3
6 files changed, 5 insertions, 17 deletions
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list
index e23944d189..0e0a2eefa1 100644
--- a/src/lib/libcrypto/Symbols.list
+++ b/src/lib/libcrypto/Symbols.list
@@ -173,7 +173,6 @@ ASN1_UTF8STRING_new
173ASN1_VISIBLESTRING_free 173ASN1_VISIBLESTRING_free
174ASN1_VISIBLESTRING_it 174ASN1_VISIBLESTRING_it
175ASN1_VISIBLESTRING_new 175ASN1_VISIBLESTRING_new
176ASN1_add_oid_module
177ASN1_d2i_bio 176ASN1_d2i_bio
178ASN1_d2i_fp 177ASN1_d2i_fp
179ASN1_dup 178ASN1_dup
diff --git a/src/lib/libcrypto/Symbols.namespace b/src/lib/libcrypto/Symbols.namespace
index d99d58bddc..611165ec17 100644
--- a/src/lib/libcrypto/Symbols.namespace
+++ b/src/lib/libcrypto/Symbols.namespace
@@ -1097,7 +1097,6 @@ _libre_ASN1_item_new
1097_libre_ASN1_item_free 1097_libre_ASN1_item_free
1098_libre_ASN1_item_d2i 1098_libre_ASN1_item_d2i
1099_libre_ASN1_item_i2d 1099_libre_ASN1_item_i2d
1100_libre_ASN1_add_oid_module
1101_libre_ASN1_generate_nconf 1100_libre_ASN1_generate_nconf
1102_libre_ASN1_generate_v3 1101_libre_ASN1_generate_v3
1103_libre_ASN1_item_print 1102_libre_ASN1_item_print
diff --git a/src/lib/libcrypto/asn1/asn1.h b/src/lib/libcrypto/asn1/asn1.h
index 15b0e3995a..c44f85113b 100644
--- a/src/lib/libcrypto/asn1/asn1.h
+++ b/src/lib/libcrypto/asn1/asn1.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1.h,v 1.88 2024/03/02 09:00:07 tb Exp $ */ 1/* $OpenBSD: asn1.h,v 1.89 2024/03/02 09:02:04 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 *
@@ -840,8 +840,6 @@ ASN1_VALUE *ASN1_item_d2i(ASN1_VALUE **val, const unsigned char **in,
840 long len, const ASN1_ITEM *it); 840 long len, const ASN1_ITEM *it);
841int ASN1_item_i2d(ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it); 841int ASN1_item_i2d(ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it);
842 842
843void ASN1_add_oid_module(void);
844
845ASN1_TYPE *ASN1_generate_nconf(const char *str, CONF *nconf); 843ASN1_TYPE *ASN1_generate_nconf(const char *str, CONF *nconf);
846ASN1_TYPE *ASN1_generate_v3(const char *str, X509V3_CTX *cnf); 844ASN1_TYPE *ASN1_generate_v3(const char *str, X509V3_CTX *cnf);
847 845
diff --git a/src/lib/libcrypto/asn1/asn_moid.c b/src/lib/libcrypto/asn1/asn_moid.c
index 4da35c0e06..6874980463 100644
--- a/src/lib/libcrypto/asn1/asn_moid.c
+++ b/src/lib/libcrypto/asn1/asn_moid.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn_moid.c,v 1.16 2023/07/05 21:23:36 beck Exp $ */ 1/* $OpenBSD: asn_moid.c,v 1.17 2024/03/02 09:02:04 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 */
@@ -105,7 +105,6 @@ ASN1_add_oid_module(void)
105{ 105{
106 CONF_module_add("oid_section", oid_module_init, oid_module_finish); 106 CONF_module_add("oid_section", oid_module_init, oid_module_finish);
107} 107}
108LCRYPTO_ALIAS(ASN1_add_oid_module);
109 108
110/* Create an OID based on a name value pair. Accept two formats. 109/* Create an OID based on a name value pair. Accept two formats.
111 * shortname = 1.2.3.4 110 * shortname = 1.2.3.4
diff --git a/src/lib/libcrypto/conf/conf_mall.c b/src/lib/libcrypto/conf/conf_mall.c
index e2a1d2db07..141c0abefd 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.10 2023/11/19 15:46:09 tb Exp $ */ 1/* $OpenBSD: conf_mall.c,v 1.11 2024/03/02 09:02:04 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 */
@@ -56,16 +56,10 @@
56 * 56 *
57 */ 57 */
58 58
59#include <stdio.h>
60
61#include <openssl/opensslconf.h>
62
63#include <openssl/asn1.h>
64#include <openssl/conf.h> 59#include <openssl/conf.h>
65#include <openssl/crypto.h>
66#include <openssl/x509.h>
67 60
68/* Load all OpenSSL builtin modules */ 61/* Load all OpenSSL builtin modules */
62void ASN1_add_oid_module(void);
69 63
70void 64void
71OPENSSL_load_builtin_modules(void) 65OPENSSL_load_builtin_modules(void)
diff --git a/src/lib/libcrypto/hidden/openssl/asn1.h b/src/lib/libcrypto/hidden/openssl/asn1.h
index 39cb9ec685..34790e31fa 100644
--- a/src/lib/libcrypto/hidden/openssl/asn1.h
+++ b/src/lib/libcrypto/hidden/openssl/asn1.h
@@ -1,4 +1,4 @@
1/* $OpenBSD: asn1.h,v 1.9 2024/03/02 08:54:02 tb Exp $ */ 1/* $OpenBSD: asn1.h,v 1.10 2024/03/02 09:02:04 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2023 Bob Beck <beck@openbsd.org> 3 * Copyright (c) 2023 Bob Beck <beck@openbsd.org>
4 * 4 *
@@ -226,7 +226,6 @@ LCRYPTO_USED(ASN1_item_new);
226LCRYPTO_USED(ASN1_item_free); 226LCRYPTO_USED(ASN1_item_free);
227LCRYPTO_USED(ASN1_item_d2i); 227LCRYPTO_USED(ASN1_item_d2i);
228LCRYPTO_USED(ASN1_item_i2d); 228LCRYPTO_USED(ASN1_item_i2d);
229LCRYPTO_USED(ASN1_add_oid_module);
230LCRYPTO_USED(ASN1_generate_nconf); 229LCRYPTO_USED(ASN1_generate_nconf);
231LCRYPTO_USED(ASN1_generate_v3); 230LCRYPTO_USED(ASN1_generate_v3);
232LCRYPTO_USED(ASN1_item_print); 231LCRYPTO_USED(ASN1_item_print);