diff options
Diffstat (limited to 'src/lib')
-rw-r--r-- | src/lib/libcrypto/Makefile | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/Symbols.list | 7 | ||||
-rw-r--r-- | src/lib/libcrypto/conf/conf_api.c | 10 | ||||
-rw-r--r-- | src/lib/libcrypto/conf/conf_api.h | 87 | ||||
-rw-r--r-- | src/lib/libcrypto/conf/conf_def.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/conf/conf_lib.c | 3 | ||||
-rw-r--r-- | src/lib/libcrypto/conf/conf_local.h | 14 | ||||
-rw-r--r-- | src/lib/libcrypto/hidden/openssl/conf_api.h | 36 |
8 files changed, 17 insertions, 146 deletions
diff --git a/src/lib/libcrypto/Makefile b/src/lib/libcrypto/Makefile index e71f8b4bf4..090589559e 100644 --- a/src/lib/libcrypto/Makefile +++ b/src/lib/libcrypto/Makefile | |||
@@ -1,4 +1,4 @@ | |||
1 | # $OpenBSD: Makefile,v 1.204 2024/08/31 09:21:44 tb Exp $ | 1 | # $OpenBSD: Makefile,v 1.205 2024/08/31 09:29:03 tb Exp $ |
2 | 2 | ||
3 | LIB= crypto | 3 | LIB= crypto |
4 | LIBREBUILD=y | 4 | LIBREBUILD=y |
@@ -682,7 +682,6 @@ HDRS=\ | |||
682 | ${LCRYPTO_SRC}/cms/cms.h \ | 682 | ${LCRYPTO_SRC}/cms/cms.h \ |
683 | ${LCRYPTO_SRC}/comp/comp.h \ | 683 | ${LCRYPTO_SRC}/comp/comp.h \ |
684 | ${LCRYPTO_SRC}/conf/conf.h \ | 684 | ${LCRYPTO_SRC}/conf/conf.h \ |
685 | ${LCRYPTO_SRC}/conf/conf_api.h \ | ||
686 | ${LCRYPTO_SRC}/crypto.h \ | 685 | ${LCRYPTO_SRC}/crypto.h \ |
687 | ${LCRYPTO_SRC}/ct/ct.h \ | 686 | ${LCRYPTO_SRC}/ct/ct.h \ |
688 | ${LCRYPTO_SRC}/curve25519/curve25519.h \ | 687 | ${LCRYPTO_SRC}/curve25519/curve25519.h \ |
diff --git a/src/lib/libcrypto/Symbols.list b/src/lib/libcrypto/Symbols.list index 20abe2588f..e20601a2cc 100644 --- a/src/lib/libcrypto/Symbols.list +++ b/src/lib/libcrypto/Symbols.list | |||
@@ -2873,13 +2873,6 @@ X509v3_get_ext_by_OBJ | |||
2873 | X509v3_get_ext_by_critical | 2873 | X509v3_get_ext_by_critical |
2874 | X509v3_get_ext_count | 2874 | X509v3_get_ext_count |
2875 | ZLONG_it | 2875 | ZLONG_it |
2876 | _CONF_add_string | ||
2877 | _CONF_free_data | ||
2878 | _CONF_get_section | ||
2879 | _CONF_get_section_values | ||
2880 | _CONF_get_string | ||
2881 | _CONF_new_data | ||
2882 | _CONF_new_section | ||
2883 | a2d_ASN1_OBJECT | 2876 | a2d_ASN1_OBJECT |
2884 | a2i_ASN1_ENUMERATED | 2877 | a2i_ASN1_ENUMERATED |
2885 | a2i_ASN1_INTEGER | 2878 | a2i_ASN1_INTEGER |
diff --git a/src/lib/libcrypto/conf/conf_api.c b/src/lib/libcrypto/conf/conf_api.c index 348c4ff744..d00c698148 100644 --- a/src/lib/libcrypto/conf/conf_api.c +++ b/src/lib/libcrypto/conf/conf_api.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: conf_api.c,v 1.20 2024/08/31 09:21:44 tb Exp $ */ | 1 | /* $OpenBSD: conf_api.c,v 1.21 2024/08/31 09:29:03 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 | * |
@@ -67,7 +67,6 @@ | |||
67 | #include <string.h> | 67 | #include <string.h> |
68 | #include <unistd.h> | 68 | #include <unistd.h> |
69 | #include <openssl/conf.h> | 69 | #include <openssl/conf.h> |
70 | #include <openssl/conf_api.h> | ||
71 | 70 | ||
72 | #include "conf_local.h" | 71 | #include "conf_local.h" |
73 | 72 | ||
@@ -91,7 +90,6 @@ _CONF_get_section(const CONF *conf, const char *section) | |||
91 | v = lh_CONF_VALUE_retrieve(conf->data, &vv); | 90 | v = lh_CONF_VALUE_retrieve(conf->data, &vv); |
92 | return (v); | 91 | return (v); |
93 | } | 92 | } |
94 | LCRYPTO_ALIAS(_CONF_get_section); | ||
95 | 93 | ||
96 | /* Up until OpenSSL 0.9.5a, this was CONF_get_section */ | 94 | /* Up until OpenSSL 0.9.5a, this was CONF_get_section */ |
97 | STACK_OF(CONF_VALUE) * | 95 | STACK_OF(CONF_VALUE) * |
@@ -105,7 +103,6 @@ _CONF_get_section_values(const CONF *conf, const char *section) | |||
105 | else | 103 | else |
106 | return (NULL); | 104 | return (NULL); |
107 | } | 105 | } |
108 | LCRYPTO_ALIAS(_CONF_get_section_values); | ||
109 | 106 | ||
110 | int | 107 | int |
111 | _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value) | 108 | _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value) |
@@ -129,7 +126,6 @@ _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value) | |||
129 | } | 126 | } |
130 | return 1; | 127 | return 1; |
131 | } | 128 | } |
132 | LCRYPTO_ALIAS(_CONF_add_string); | ||
133 | 129 | ||
134 | char * | 130 | char * |
135 | _CONF_get_string(const CONF *conf, const char *section, const char *name) | 131 | _CONF_get_string(const CONF *conf, const char *section, const char *name) |
@@ -156,7 +152,6 @@ _CONF_get_string(const CONF *conf, const char *section, const char *name) | |||
156 | } else | 152 | } else |
157 | return (NULL); | 153 | return (NULL); |
158 | } | 154 | } |
159 | LCRYPTO_ALIAS(_CONF_get_string); | ||
160 | 155 | ||
161 | static unsigned long | 156 | static unsigned long |
162 | conf_value_hash(const CONF_VALUE *v) | 157 | conf_value_hash(const CONF_VALUE *v) |
@@ -199,7 +194,6 @@ _CONF_new_data(CONF *conf) | |||
199 | } | 194 | } |
200 | return 1; | 195 | return 1; |
201 | } | 196 | } |
202 | LCRYPTO_ALIAS(_CONF_new_data); | ||
203 | 197 | ||
204 | void | 198 | void |
205 | _CONF_free_data(CONF *conf) | 199 | _CONF_free_data(CONF *conf) |
@@ -217,7 +211,6 @@ _CONF_free_data(CONF *conf) | |||
217 | lh_CONF_VALUE_doall(conf->data, LHASH_DOALL_FN(value_free_stack)); | 211 | lh_CONF_VALUE_doall(conf->data, LHASH_DOALL_FN(value_free_stack)); |
218 | lh_CONF_VALUE_free(conf->data); | 212 | lh_CONF_VALUE_free(conf->data); |
219 | } | 213 | } |
220 | LCRYPTO_ALIAS(_CONF_free_data); | ||
221 | 214 | ||
222 | static void | 215 | static void |
223 | value_free_hash_doall_arg(CONF_VALUE *a, LHASH_OF(CONF_VALUE) *conf) | 216 | value_free_hash_doall_arg(CONF_VALUE *a, LHASH_OF(CONF_VALUE) *conf) |
@@ -282,4 +275,3 @@ err: | |||
282 | } | 275 | } |
283 | return (v); | 276 | return (v); |
284 | } | 277 | } |
285 | LCRYPTO_ALIAS(_CONF_new_section); | ||
diff --git a/src/lib/libcrypto/conf/conf_api.h b/src/lib/libcrypto/conf/conf_api.h deleted file mode 100644 index 2793e8413b..0000000000 --- a/src/lib/libcrypto/conf/conf_api.h +++ /dev/null | |||
@@ -1,87 +0,0 @@ | |||
1 | /* $OpenBSD: conf_api.h,v 1.5 2024/05/19 07:12:50 jsg Exp $ */ | ||
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | ||
3 | * All rights reserved. | ||
4 | * | ||
5 | * This package is an SSL implementation written | ||
6 | * by Eric Young (eay@cryptsoft.com). | ||
7 | * The implementation was written so as to conform with Netscapes SSL. | ||
8 | * | ||
9 | * This library is free for commercial and non-commercial use as long as | ||
10 | * the following conditions are aheared to. The following conditions | ||
11 | * apply to all code found in this distribution, be it the RC4, RSA, | ||
12 | * lhash, DES, etc., code; not just the SSL code. The SSL documentation | ||
13 | * included with this distribution is covered by the same copyright terms | ||
14 | * except that the holder is Tim Hudson (tjh@cryptsoft.com). | ||
15 | * | ||
16 | * Copyright remains Eric Young's, and as such any Copyright notices in | ||
17 | * the code are not to be removed. | ||
18 | * If this package is used in a product, Eric Young should be given attribution | ||
19 | * as the author of the parts of the library used. | ||
20 | * This can be in the form of a textual message at program startup or | ||
21 | * in documentation (online or textual) provided with the package. | ||
22 | * | ||
23 | * Redistribution and use in source and binary forms, with or without | ||
24 | * modification, are permitted provided that the following conditions | ||
25 | * are met: | ||
26 | * 1. Redistributions of source code must retain the copyright | ||
27 | * notice, this list of conditions and the following disclaimer. | ||
28 | * 2. Redistributions in binary form must reproduce the above copyright | ||
29 | * notice, this list of conditions and the following disclaimer in the | ||
30 | * documentation and/or other materials provided with the distribution. | ||
31 | * 3. All advertising materials mentioning features or use of this software | ||
32 | * must display the following acknowledgement: | ||
33 | * "This product includes cryptographic software written by | ||
34 | * Eric Young (eay@cryptsoft.com)" | ||
35 | * The word 'cryptographic' can be left out if the rouines from the library | ||
36 | * being used are not cryptographic related :-). | ||
37 | * 4. If you include any Windows specific code (or a derivative thereof) from | ||
38 | * the apps directory (application code) you must include an acknowledgement: | ||
39 | * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" | ||
40 | * | ||
41 | * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND | ||
42 | * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE | ||
43 | * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE | ||
44 | * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE | ||
45 | * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
46 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS | ||
47 | * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
48 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
49 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
50 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
51 | * SUCH DAMAGE. | ||
52 | * | ||
53 | * The licence and distribution terms for any publically available version or | ||
54 | * derivative of this code cannot be changed. i.e. this code cannot simply be | ||
55 | * copied and put under another distribution licence | ||
56 | * [including the GNU Public Licence.] | ||
57 | */ | ||
58 | |||
59 | #ifndef HEADER_CONF_API_H | ||
60 | #define HEADER_CONF_API_H | ||
61 | |||
62 | #include <openssl/lhash.h> | ||
63 | #include <openssl/conf.h> | ||
64 | |||
65 | #ifdef __cplusplus | ||
66 | extern "C" { | ||
67 | #endif | ||
68 | |||
69 | /* Up until OpenSSL 0.9.5a, this was new_section */ | ||
70 | CONF_VALUE *_CONF_new_section(CONF *conf, const char *section); | ||
71 | /* Up until OpenSSL 0.9.5a, this was get_section */ | ||
72 | CONF_VALUE *_CONF_get_section(const CONF *conf, const char *section); | ||
73 | /* Up until OpenSSL 0.9.5a, this was CONF_get_section */ | ||
74 | STACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf, | ||
75 | const char *section); | ||
76 | |||
77 | int _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value); | ||
78 | char *_CONF_get_string(const CONF *conf, const char *section, | ||
79 | const char *name); | ||
80 | |||
81 | int _CONF_new_data(CONF *conf); | ||
82 | void _CONF_free_data(CONF *conf); | ||
83 | |||
84 | #ifdef __cplusplus | ||
85 | } | ||
86 | #endif | ||
87 | #endif | ||
diff --git a/src/lib/libcrypto/conf/conf_def.c b/src/lib/libcrypto/conf/conf_def.c index 4c644055a2..d796b8454e 100644 --- a/src/lib/libcrypto/conf/conf_def.c +++ b/src/lib/libcrypto/conf/conf_def.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: conf_def.c,v 1.38 2024/08/31 09:21:44 tb Exp $ */ | 1 | /* $OpenBSD: conf_def.c,v 1.39 2024/08/31 09:29:03 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 | * |
@@ -63,7 +63,6 @@ | |||
63 | 63 | ||
64 | #include <openssl/buffer.h> | 64 | #include <openssl/buffer.h> |
65 | #include <openssl/conf.h> | 65 | #include <openssl/conf.h> |
66 | #include <openssl/conf_api.h> | ||
67 | #include <openssl/err.h> | 66 | #include <openssl/err.h> |
68 | #include <openssl/lhash.h> | 67 | #include <openssl/lhash.h> |
69 | #include <openssl/stack.h> | 68 | #include <openssl/stack.h> |
diff --git a/src/lib/libcrypto/conf/conf_lib.c b/src/lib/libcrypto/conf/conf_lib.c index abeea5588f..ccd09c0258 100644 --- a/src/lib/libcrypto/conf/conf_lib.c +++ b/src/lib/libcrypto/conf/conf_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: conf_lib.c,v 1.20 2024/08/31 09:26:18 tb Exp $ */ | 1 | /* $OpenBSD: conf_lib.c,v 1.21 2024/08/31 09:29:03 tb Exp $ */ |
2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL | 2 | /* Written by Richard Levitte (richard@levitte.org) for the OpenSSL |
3 | * project 2000. | 3 | * project 2000. |
4 | */ | 4 | */ |
@@ -60,7 +60,6 @@ | |||
60 | #include <openssl/crypto.h> | 60 | #include <openssl/crypto.h> |
61 | #include <openssl/err.h> | 61 | #include <openssl/err.h> |
62 | #include <openssl/conf.h> | 62 | #include <openssl/conf.h> |
63 | #include <openssl/conf_api.h> | ||
64 | #include <openssl/lhash.h> | 63 | #include <openssl/lhash.h> |
65 | 64 | ||
66 | #include "conf_local.h" | 65 | #include "conf_local.h" |
diff --git a/src/lib/libcrypto/conf/conf_local.h b/src/lib/libcrypto/conf/conf_local.h index cf5941ed50..c991f0629b 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.2 2024/08/31 09:26:18 tb Exp $ */ | 1 | /* $OpenBSD: conf_local.h,v 1.3 2024/08/31 09:29:03 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 | * |
@@ -90,6 +90,18 @@ void CONF_module_set_usr_data(CONF_MODULE *pmod, void *usr_data); | |||
90 | int CONF_parse_list(const char *list, int sep, int nospc, | 90 | int CONF_parse_list(const char *list, int sep, int nospc, |
91 | int (*list_cb)(const char *elem, int len, void *usr), void *arg); | 91 | int (*list_cb)(const char *elem, int len, void *usr), void *arg); |
92 | 92 | ||
93 | CONF_VALUE *_CONF_new_section(CONF *conf, const char *section); | ||
94 | CONF_VALUE *_CONF_get_section(const CONF *conf, const char *section); | ||
95 | STACK_OF(CONF_VALUE) *_CONF_get_section_values(const CONF *conf, | ||
96 | const char *section); | ||
97 | |||
98 | int _CONF_add_string(CONF *conf, CONF_VALUE *section, CONF_VALUE *value); | ||
99 | char *_CONF_get_string(const CONF *conf, const char *section, | ||
100 | const char *name); | ||
101 | |||
102 | int _CONF_new_data(CONF *conf); | ||
103 | void _CONF_free_data(CONF *conf); | ||
104 | |||
93 | __END_HIDDEN_DECLS | 105 | __END_HIDDEN_DECLS |
94 | 106 | ||
95 | #endif /* HEADER_CONF_LOCAL_H */ | 107 | #endif /* HEADER_CONF_LOCAL_H */ |
diff --git a/src/lib/libcrypto/hidden/openssl/conf_api.h b/src/lib/libcrypto/hidden/openssl/conf_api.h deleted file mode 100644 index 5ff8956616..0000000000 --- a/src/lib/libcrypto/hidden/openssl/conf_api.h +++ /dev/null | |||
@@ -1,36 +0,0 @@ | |||
1 | /* $OpenBSD: conf_api.h,v 1.1 2023/07/08 08:26:26 beck Exp $ */ | ||
2 | /* | ||
3 | * Copyright (c) 2023 Bob Beck <beck@openbsd.org> | ||
4 | * | ||
5 | * Permission to use, copy, modify, and distribute this software for any | ||
6 | * purpose with or without fee is hereby granted, provided that the above | ||
7 | * copyright notice and this permission notice appear in all copies. | ||
8 | * | ||
9 | * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES | ||
10 | * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF | ||
11 | * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR | ||
12 | * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES | ||
13 | * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN | ||
14 | * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF | ||
15 | * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. | ||
16 | */ | ||
17 | |||
18 | #ifndef _LIBCRYPTO_CONF_API_H | ||
19 | #define _LIBCRYPTO_CONF_API_H | ||
20 | |||
21 | #ifndef _MSC_VER | ||
22 | #include_next <openssl/conf_api.h> | ||
23 | #else | ||
24 | #include "../include/openssl/conf_api.h" | ||
25 | #endif | ||
26 | #include "crypto_namespace.h" | ||
27 | |||
28 | LCRYPTO_USED(_CONF_new_section); | ||
29 | LCRYPTO_USED(_CONF_get_section); | ||
30 | LCRYPTO_USED(_CONF_get_section_values); | ||
31 | LCRYPTO_USED(_CONF_add_string); | ||
32 | LCRYPTO_USED(_CONF_get_string); | ||
33 | LCRYPTO_USED(_CONF_new_data); | ||
34 | LCRYPTO_USED(_CONF_free_data); | ||
35 | |||
36 | #endif /* _LIBCRYPTO_CONF_API_H */ | ||