diff options
author | tb <> | 2024-03-02 09:02:04 +0000 |
---|---|---|
committer | tb <> | 2024-03-02 09:02:04 +0000 |
commit | a73fc18db0f7a430051a0c4c25c3154278ae50a0 (patch) | |
tree | 6f9ab12d823fbc202f3891db15ef302e73bf7fb9 | |
parent | c65895af2c2fed4774618ef4358bbb36943f0dde (diff) | |
download | openbsd-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.list | 1 | ||||
-rw-r--r-- | src/lib/libcrypto/Symbols.namespace | 1 | ||||
-rw-r--r-- | src/lib/libcrypto/asn1/asn1.h | 4 | ||||
-rw-r--r-- | src/lib/libcrypto/asn1/asn_moid.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/conf/conf_mall.c | 10 | ||||
-rw-r--r-- | src/lib/libcrypto/hidden/openssl/asn1.h | 3 |
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 | |||
173 | ASN1_VISIBLESTRING_free | 173 | ASN1_VISIBLESTRING_free |
174 | ASN1_VISIBLESTRING_it | 174 | ASN1_VISIBLESTRING_it |
175 | ASN1_VISIBLESTRING_new | 175 | ASN1_VISIBLESTRING_new |
176 | ASN1_add_oid_module | ||
177 | ASN1_d2i_bio | 176 | ASN1_d2i_bio |
178 | ASN1_d2i_fp | 177 | ASN1_d2i_fp |
179 | ASN1_dup | 178 | ASN1_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); |
841 | int ASN1_item_i2d(ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it); | 841 | int ASN1_item_i2d(ASN1_VALUE *val, unsigned char **out, const ASN1_ITEM *it); |
842 | 842 | ||
843 | void ASN1_add_oid_module(void); | ||
844 | |||
845 | ASN1_TYPE *ASN1_generate_nconf(const char *str, CONF *nconf); | 843 | ASN1_TYPE *ASN1_generate_nconf(const char *str, CONF *nconf); |
846 | ASN1_TYPE *ASN1_generate_v3(const char *str, X509V3_CTX *cnf); | 844 | ASN1_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 | } |
108 | LCRYPTO_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 */ |
62 | void ASN1_add_oid_module(void); | ||
69 | 63 | ||
70 | void | 64 | void |
71 | OPENSSL_load_builtin_modules(void) | 65 | OPENSSL_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); | |||
226 | LCRYPTO_USED(ASN1_item_free); | 226 | LCRYPTO_USED(ASN1_item_free); |
227 | LCRYPTO_USED(ASN1_item_d2i); | 227 | LCRYPTO_USED(ASN1_item_d2i); |
228 | LCRYPTO_USED(ASN1_item_i2d); | 228 | LCRYPTO_USED(ASN1_item_i2d); |
229 | LCRYPTO_USED(ASN1_add_oid_module); | ||
230 | LCRYPTO_USED(ASN1_generate_nconf); | 229 | LCRYPTO_USED(ASN1_generate_nconf); |
231 | LCRYPTO_USED(ASN1_generate_v3); | 230 | LCRYPTO_USED(ASN1_generate_v3); |
232 | LCRYPTO_USED(ASN1_item_print); | 231 | LCRYPTO_USED(ASN1_item_print); |