summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/hidden/openssl
diff options
context:
space:
mode:
authorcvs2svn <admin@example.com>2025-04-14 17:32:06 +0000
committercvs2svn <admin@example.com>2025-04-14 17:32:06 +0000
commiteb8dd9dca1228af0cd132f515509051ecfabf6f6 (patch)
treeedb6da6af7e865d488dc1a29309f1e1ec226e603 /src/lib/libcrypto/hidden/openssl
parent247f0352e0ed72a4f476db9dc91f4d982bc83eb2 (diff)
downloadopenbsd-tb_20250414.tar.gz
openbsd-tb_20250414.tar.bz2
openbsd-tb_20250414.zip
This commit was manufactured by cvs2git to create tag 'tb_20250414'.tb_20250414
Diffstat (limited to 'src/lib/libcrypto/hidden/openssl')
-rw-r--r--src/lib/libcrypto/hidden/openssl/aes.h43
-rw-r--r--src/lib/libcrypto/hidden/openssl/asn1.h262
-rw-r--r--src/lib/libcrypto/hidden/openssl/asn1t.h40
-rw-r--r--src/lib/libcrypto/hidden/openssl/bio.h142
-rw-r--r--src/lib/libcrypto/hidden/openssl/blowfish.h36
-rw-r--r--src/lib/libcrypto/hidden/openssl/bn.h145
-rw-r--r--src/lib/libcrypto/hidden/openssl/buffer.h34
-rw-r--r--src/lib/libcrypto/hidden/openssl/camellia.h39
-rw-r--r--src/lib/libcrypto/hidden/openssl/cast.h36
-rw-r--r--src/lib/libcrypto/hidden/openssl/chacha.h35
-rw-r--r--src/lib/libcrypto/hidden/openssl/cmac.h37
-rw-r--r--src/lib/libcrypto/hidden/openssl/cms.h161
-rw-r--r--src/lib/libcrypto/hidden/openssl/conf.h45
-rw-r--r--src/lib/libcrypto/hidden/openssl/crypto.h81
-rw-r--r--src/lib/libcrypto/hidden/openssl/ct.h85
-rw-r--r--src/lib/libcrypto/hidden/openssl/curve25519.h34
-rw-r--r--src/lib/libcrypto/hidden/openssl/des.h65
-rw-r--r--src/lib/libcrypto/hidden/openssl/dh.h74
-rw-r--r--src/lib/libcrypto/hidden/openssl/dsa.h98
-rw-r--r--src/lib/libcrypto/hidden/openssl/ec.h161
-rw-r--r--src/lib/libcrypto/hidden/openssl/engine.h48
-rw-r--r--src/lib/libcrypto/hidden/openssl/err.h60
-rw-r--r--src/lib/libcrypto/hidden/openssl/evp.h379
-rw-r--r--src/lib/libcrypto/hidden/openssl/hkdf.h32
-rw-r--r--src/lib/libcrypto/hidden/openssl/hmac.h39
-rw-r--r--src/lib/libcrypto/hidden/openssl/idea.h36
-rw-r--r--src/lib/libcrypto/hidden/openssl/lhash.h39
-rw-r--r--src/lib/libcrypto/hidden/openssl/md4.h34
-rw-r--r--src/lib/libcrypto/hidden/openssl/md5.h34
-rw-r--r--src/lib/libcrypto/hidden/openssl/mlkem.h49
-rw-r--r--src/lib/libcrypto/hidden/openssl/modes.h57
-rw-r--r--src/lib/libcrypto/hidden/openssl/objects.h51
-rw-r--r--src/lib/libcrypto/hidden/openssl/ocsp.h208
-rw-r--r--src/lib/libcrypto/hidden/openssl/pem.h149
-rw-r--r--src/lib/libcrypto/hidden/openssl/pkcs12.h76
-rw-r--r--src/lib/libcrypto/hidden/openssl/pkcs7.h143
-rw-r--r--src/lib/libcrypto/hidden/openssl/poly1305.h32
-rw-r--r--src/lib/libcrypto/hidden/openssl/posix_time.h32
-rw-r--r--src/lib/libcrypto/hidden/openssl/rand.h43
-rw-r--r--src/lib/libcrypto/hidden/openssl/rc2.h36
-rw-r--r--src/lib/libcrypto/hidden/openssl/rc4.h31
-rw-r--r--src/lib/libcrypto/hidden/openssl/ripemd.h34
-rw-r--r--src/lib/libcrypto/hidden/openssl/rsa.h147
-rw-r--r--src/lib/libcrypto/hidden/openssl/sha.h52
-rw-r--r--src/lib/libcrypto/hidden/openssl/sm3.h32
-rw-r--r--src/lib/libcrypto/hidden/openssl/sm4.h32
-rw-r--r--src/lib/libcrypto/hidden/openssl/stack.h49
-rw-r--r--src/lib/libcrypto/hidden/openssl/ts.h217
-rw-r--r--src/lib/libcrypto/hidden/openssl/txt_db.h35
-rw-r--r--src/lib/libcrypto/hidden/openssl/ui.h81
-rw-r--r--src/lib/libcrypto/hidden/openssl/x509.h468
-rw-r--r--src/lib/libcrypto/hidden/openssl/x509_vfy.h148
-rw-r--r--src/lib/libcrypto/hidden/openssl/x509v3.h276
53 files changed, 0 insertions, 4832 deletions
diff --git a/src/lib/libcrypto/hidden/openssl/aes.h b/src/lib/libcrypto/hidden/openssl/aes.h
deleted file mode 100644
index 0ec5a8d544..0000000000
--- a/src/lib/libcrypto/hidden/openssl/aes.h
+++ /dev/null
@@ -1,43 +0,0 @@
1/* $OpenBSD: aes.h,v 1.1 2024/03/30 05:14:12 joshua Exp $ */
2/*
3 * Copyright (c) 2024 Joshua Sing <joshua@joshuasing.dev>
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_AES_H
19#define _LIBCRYPTO_AES_H
20
21#ifndef _MSC_VER
22#include_next <openssl/aes.h>
23#else
24#include "../include/openssl/aes.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(AES_set_encrypt_key);
29LCRYPTO_USED(AES_set_decrypt_key);
30LCRYPTO_USED(AES_encrypt);
31LCRYPTO_USED(AES_decrypt);
32LCRYPTO_USED(AES_ecb_encrypt);
33LCRYPTO_USED(AES_cbc_encrypt);
34LCRYPTO_USED(AES_cfb128_encrypt);
35LCRYPTO_USED(AES_cfb1_encrypt);
36LCRYPTO_USED(AES_cfb8_encrypt);
37LCRYPTO_USED(AES_ofb128_encrypt);
38LCRYPTO_USED(AES_ctr128_encrypt);
39LCRYPTO_USED(AES_ige_encrypt);
40LCRYPTO_USED(AES_wrap_key);
41LCRYPTO_USED(AES_unwrap_key);
42
43#endif /* _LIBCRYPTO_AES_H */
diff --git a/src/lib/libcrypto/hidden/openssl/asn1.h b/src/lib/libcrypto/hidden/openssl/asn1.h
deleted file mode 100644
index 3325cf4bef..0000000000
--- a/src/lib/libcrypto/hidden/openssl/asn1.h
+++ /dev/null
@@ -1,262 +0,0 @@
1/* $OpenBSD: asn1.h,v 1.15 2024/07/08 17:01:54 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_ASN1_H
19#define _LIBCRYPTO_ASN1_H
20
21#ifndef _MSC_VER
22#include_next <openssl/asn1.h>
23#else
24#include "../include/openssl/asn1.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(d2i_ASN1_SEQUENCE_ANY);
29LCRYPTO_USED(i2d_ASN1_SEQUENCE_ANY);
30LCRYPTO_USED(d2i_ASN1_SET_ANY);
31LCRYPTO_USED(i2d_ASN1_SET_ANY);
32LCRYPTO_USED(ASN1_TYPE_new);
33LCRYPTO_USED(ASN1_TYPE_free);
34LCRYPTO_USED(d2i_ASN1_TYPE);
35LCRYPTO_USED(i2d_ASN1_TYPE);
36LCRYPTO_USED(ASN1_TYPE_get);
37LCRYPTO_USED(ASN1_TYPE_set);
38LCRYPTO_USED(ASN1_TYPE_set1);
39LCRYPTO_USED(ASN1_TYPE_cmp);
40LCRYPTO_USED(ASN1_OBJECT_new);
41LCRYPTO_USED(ASN1_OBJECT_free);
42LCRYPTO_USED(i2d_ASN1_OBJECT);
43LCRYPTO_USED(d2i_ASN1_OBJECT);
44LCRYPTO_USED(ASN1_STRING_new);
45LCRYPTO_USED(ASN1_STRING_free);
46LCRYPTO_USED(ASN1_STRING_copy);
47LCRYPTO_USED(ASN1_STRING_dup);
48LCRYPTO_USED(ASN1_STRING_type_new);
49LCRYPTO_USED(ASN1_STRING_cmp);
50LCRYPTO_USED(ASN1_STRING_set);
51LCRYPTO_USED(ASN1_STRING_set0);
52LCRYPTO_USED(ASN1_STRING_length);
53LCRYPTO_USED(ASN1_STRING_length_set);
54LCRYPTO_USED(ASN1_STRING_type);
55LCRYPTO_USED(ASN1_STRING_data);
56LCRYPTO_USED(ASN1_STRING_get0_data);
57LCRYPTO_USED(ASN1_BIT_STRING_new);
58LCRYPTO_USED(ASN1_BIT_STRING_free);
59LCRYPTO_USED(d2i_ASN1_BIT_STRING);
60LCRYPTO_USED(i2d_ASN1_BIT_STRING);
61LCRYPTO_USED(ASN1_BIT_STRING_set);
62LCRYPTO_USED(ASN1_BIT_STRING_set_bit);
63LCRYPTO_USED(ASN1_BIT_STRING_get_bit);
64LCRYPTO_USED(ASN1_INTEGER_new);
65LCRYPTO_USED(ASN1_INTEGER_free);
66LCRYPTO_USED(d2i_ASN1_INTEGER);
67LCRYPTO_USED(i2d_ASN1_INTEGER);
68LCRYPTO_USED(d2i_ASN1_UINTEGER);
69LCRYPTO_USED(ASN1_INTEGER_dup);
70LCRYPTO_USED(ASN1_INTEGER_cmp);
71LCRYPTO_USED(ASN1_ENUMERATED_new);
72LCRYPTO_USED(ASN1_ENUMERATED_free);
73LCRYPTO_USED(d2i_ASN1_ENUMERATED);
74LCRYPTO_USED(i2d_ASN1_ENUMERATED);
75LCRYPTO_USED(ASN1_UTCTIME_check);
76LCRYPTO_USED(ASN1_UTCTIME_set);
77LCRYPTO_USED(ASN1_UTCTIME_adj);
78LCRYPTO_USED(ASN1_UTCTIME_set_string);
79LCRYPTO_USED(ASN1_GENERALIZEDTIME_check);
80LCRYPTO_USED(ASN1_GENERALIZEDTIME_set);
81LCRYPTO_USED(ASN1_GENERALIZEDTIME_adj);
82LCRYPTO_USED(ASN1_GENERALIZEDTIME_set_string);
83LCRYPTO_USED(ASN1_OCTET_STRING_new);
84LCRYPTO_USED(ASN1_OCTET_STRING_free);
85LCRYPTO_USED(d2i_ASN1_OCTET_STRING);
86LCRYPTO_USED(i2d_ASN1_OCTET_STRING);
87LCRYPTO_USED(ASN1_OCTET_STRING_dup);
88LCRYPTO_USED(ASN1_OCTET_STRING_cmp);
89LCRYPTO_USED(ASN1_OCTET_STRING_set);
90LCRYPTO_USED(ASN1_VISIBLESTRING_new);
91LCRYPTO_USED(ASN1_VISIBLESTRING_free);
92LCRYPTO_USED(d2i_ASN1_VISIBLESTRING);
93LCRYPTO_USED(i2d_ASN1_VISIBLESTRING);
94LCRYPTO_USED(ASN1_UNIVERSALSTRING_new);
95LCRYPTO_USED(ASN1_UNIVERSALSTRING_free);
96LCRYPTO_USED(d2i_ASN1_UNIVERSALSTRING);
97LCRYPTO_USED(i2d_ASN1_UNIVERSALSTRING);
98LCRYPTO_USED(ASN1_UTF8STRING_new);
99LCRYPTO_USED(ASN1_UTF8STRING_free);
100LCRYPTO_USED(d2i_ASN1_UTF8STRING);
101LCRYPTO_USED(i2d_ASN1_UTF8STRING);
102LCRYPTO_USED(ASN1_NULL_new);
103LCRYPTO_USED(ASN1_NULL_free);
104LCRYPTO_USED(d2i_ASN1_NULL);
105LCRYPTO_USED(i2d_ASN1_NULL);
106LCRYPTO_USED(ASN1_BMPSTRING_new);
107LCRYPTO_USED(ASN1_BMPSTRING_free);
108LCRYPTO_USED(d2i_ASN1_BMPSTRING);
109LCRYPTO_USED(i2d_ASN1_BMPSTRING);
110LCRYPTO_USED(ASN1_PRINTABLE_new);
111LCRYPTO_USED(ASN1_PRINTABLE_free);
112LCRYPTO_USED(d2i_ASN1_PRINTABLE);
113LCRYPTO_USED(i2d_ASN1_PRINTABLE);
114LCRYPTO_USED(DIRECTORYSTRING_new);
115LCRYPTO_USED(DIRECTORYSTRING_free);
116LCRYPTO_USED(d2i_DIRECTORYSTRING);
117LCRYPTO_USED(i2d_DIRECTORYSTRING);
118LCRYPTO_USED(DISPLAYTEXT_new);
119LCRYPTO_USED(DISPLAYTEXT_free);
120LCRYPTO_USED(d2i_DISPLAYTEXT);
121LCRYPTO_USED(i2d_DISPLAYTEXT);
122LCRYPTO_USED(ASN1_PRINTABLESTRING_new);
123LCRYPTO_USED(ASN1_PRINTABLESTRING_free);
124LCRYPTO_USED(d2i_ASN1_PRINTABLESTRING);
125LCRYPTO_USED(i2d_ASN1_PRINTABLESTRING);
126LCRYPTO_USED(ASN1_T61STRING_new);
127LCRYPTO_USED(ASN1_T61STRING_free);
128LCRYPTO_USED(d2i_ASN1_T61STRING);
129LCRYPTO_USED(i2d_ASN1_T61STRING);
130LCRYPTO_USED(ASN1_IA5STRING_new);
131LCRYPTO_USED(ASN1_IA5STRING_free);
132LCRYPTO_USED(d2i_ASN1_IA5STRING);
133LCRYPTO_USED(i2d_ASN1_IA5STRING);
134LCRYPTO_USED(ASN1_GENERALSTRING_new);
135LCRYPTO_USED(ASN1_GENERALSTRING_free);
136LCRYPTO_USED(d2i_ASN1_GENERALSTRING);
137LCRYPTO_USED(i2d_ASN1_GENERALSTRING);
138LCRYPTO_USED(ASN1_UTCTIME_new);
139LCRYPTO_USED(ASN1_UTCTIME_free);
140LCRYPTO_USED(d2i_ASN1_UTCTIME);
141LCRYPTO_USED(i2d_ASN1_UTCTIME);
142LCRYPTO_USED(ASN1_GENERALIZEDTIME_new);
143LCRYPTO_USED(ASN1_GENERALIZEDTIME_free);
144LCRYPTO_USED(d2i_ASN1_GENERALIZEDTIME);
145LCRYPTO_USED(i2d_ASN1_GENERALIZEDTIME);
146LCRYPTO_USED(ASN1_TIME_new);
147LCRYPTO_USED(ASN1_TIME_free);
148LCRYPTO_USED(d2i_ASN1_TIME);
149LCRYPTO_USED(i2d_ASN1_TIME);
150LCRYPTO_USED(ASN1_TIME_to_tm);
151LCRYPTO_USED(ASN1_TIME_compare);
152LCRYPTO_USED(ASN1_TIME_cmp_time_t);
153LCRYPTO_USED(ASN1_TIME_normalize);
154LCRYPTO_USED(ASN1_TIME_set_string_X509);
155LCRYPTO_USED(ASN1_TIME_diff);
156LCRYPTO_USED(ASN1_TIME_set);
157LCRYPTO_USED(ASN1_TIME_adj);
158LCRYPTO_USED(ASN1_TIME_check);
159LCRYPTO_USED(ASN1_TIME_to_generalizedtime);
160LCRYPTO_USED(ASN1_TIME_set_string);
161LCRYPTO_USED(i2a_ASN1_INTEGER);
162LCRYPTO_USED(a2i_ASN1_INTEGER);
163LCRYPTO_USED(i2a_ASN1_ENUMERATED);
164LCRYPTO_USED(a2i_ASN1_ENUMERATED);
165LCRYPTO_USED(i2a_ASN1_OBJECT);
166LCRYPTO_USED(a2i_ASN1_STRING);
167LCRYPTO_USED(i2a_ASN1_STRING);
168LCRYPTO_USED(i2t_ASN1_OBJECT);
169LCRYPTO_USED(a2d_ASN1_OBJECT);
170LCRYPTO_USED(ASN1_OBJECT_create);
171LCRYPTO_USED(ASN1_INTEGER_get_uint64);
172LCRYPTO_USED(ASN1_INTEGER_set_uint64);
173LCRYPTO_USED(ASN1_INTEGER_get_int64);
174LCRYPTO_USED(ASN1_INTEGER_set_int64);
175LCRYPTO_USED(ASN1_INTEGER_set);
176LCRYPTO_USED(ASN1_INTEGER_get);
177LCRYPTO_USED(BN_to_ASN1_INTEGER);
178LCRYPTO_USED(ASN1_INTEGER_to_BN);
179LCRYPTO_USED(ASN1_ENUMERATED_get_int64);
180LCRYPTO_USED(ASN1_ENUMERATED_set_int64);
181LCRYPTO_USED(ASN1_ENUMERATED_set);
182LCRYPTO_USED(ASN1_ENUMERATED_get);
183LCRYPTO_USED(BN_to_ASN1_ENUMERATED);
184LCRYPTO_USED(ASN1_ENUMERATED_to_BN);
185LCRYPTO_USED(ASN1_PRINTABLE_type);
186LCRYPTO_USED(ASN1_get_object);
187LCRYPTO_USED(ASN1_put_object);
188LCRYPTO_USED(ASN1_put_eoc);
189LCRYPTO_USED(ASN1_object_size);
190LCRYPTO_USED(ASN1_item_dup);
191LCRYPTO_USED(ASN1_d2i_fp);
192LCRYPTO_USED(ASN1_item_d2i_fp);
193LCRYPTO_USED(ASN1_i2d_fp);
194LCRYPTO_USED(ASN1_item_i2d_fp);
195LCRYPTO_USED(ASN1_STRING_print_ex_fp);
196LCRYPTO_USED(ASN1_STRING_to_UTF8);
197LCRYPTO_USED(ASN1_d2i_bio);
198LCRYPTO_USED(ASN1_item_d2i_bio);
199LCRYPTO_USED(ASN1_i2d_bio);
200LCRYPTO_USED(ASN1_item_i2d_bio);
201LCRYPTO_USED(ASN1_UTCTIME_print);
202LCRYPTO_USED(ASN1_GENERALIZEDTIME_print);
203LCRYPTO_USED(ASN1_TIME_print);
204LCRYPTO_USED(ASN1_STRING_print);
205LCRYPTO_USED(ASN1_STRING_print_ex);
206LCRYPTO_USED(ASN1_parse);
207LCRYPTO_USED(ASN1_parse_dump);
208LCRYPTO_USED(ASN1_tag2bit);
209LCRYPTO_USED(ASN1_tag2str);
210LCRYPTO_USED(ASN1_UNIVERSALSTRING_to_string);
211LCRYPTO_USED(ASN1_TYPE_set_octetstring);
212LCRYPTO_USED(ASN1_TYPE_get_octetstring);
213LCRYPTO_USED(ASN1_TYPE_set_int_octetstring);
214LCRYPTO_USED(ASN1_TYPE_get_int_octetstring);
215LCRYPTO_USED(ASN1_item_pack);
216LCRYPTO_USED(ASN1_item_unpack);
217LCRYPTO_USED(ASN1_STRING_set_default_mask);
218LCRYPTO_USED(ASN1_STRING_set_default_mask_asc);
219LCRYPTO_USED(ASN1_STRING_get_default_mask);
220LCRYPTO_USED(ASN1_mbstring_copy);
221LCRYPTO_USED(ASN1_mbstring_ncopy);
222LCRYPTO_USED(ASN1_STRING_set_by_NID);
223LCRYPTO_USED(ASN1_STRING_TABLE_get);
224LCRYPTO_USED(ASN1_item_new);
225LCRYPTO_USED(ASN1_item_free);
226LCRYPTO_USED(ASN1_item_d2i);
227LCRYPTO_USED(ASN1_item_i2d);
228LCRYPTO_USED(ASN1_generate_nconf);
229LCRYPTO_USED(ASN1_generate_v3);
230LCRYPTO_USED(ASN1_item_print);
231LCRYPTO_USED(SMIME_crlf_copy);
232LCRYPTO_USED(SMIME_text);
233LCRYPTO_USED(ERR_load_ASN1_strings);
234LCRYPTO_UNUSED(ASN1_UTCTIME_cmp_time_t);
235LCRYPTO_UNUSED(ASN1_dup);
236#if defined(LIBRESSL_NAMESPACE)
237extern LCRYPTO_USED(ASN1_SEQUENCE_ANY_it);
238extern LCRYPTO_USED(ASN1_SET_ANY_it);
239extern LCRYPTO_USED(ASN1_ANY_it);
240extern LCRYPTO_USED(ASN1_OBJECT_it);
241extern LCRYPTO_USED(ASN1_BIT_STRING_it);
242extern LCRYPTO_USED(ASN1_INTEGER_it);
243extern LCRYPTO_USED(ASN1_ENUMERATED_it);
244extern LCRYPTO_USED(ASN1_OCTET_STRING_it);
245extern LCRYPTO_USED(ASN1_VISIBLESTRING_it);
246extern LCRYPTO_USED(ASN1_UNIVERSALSTRING_it);
247extern LCRYPTO_USED(ASN1_UTF8STRING_it);
248extern LCRYPTO_USED(ASN1_NULL_it);
249extern LCRYPTO_USED(ASN1_BMPSTRING_it);
250extern LCRYPTO_USED(ASN1_PRINTABLE_it);
251extern LCRYPTO_USED(DIRECTORYSTRING_it);
252extern LCRYPTO_USED(DISPLAYTEXT_it);
253extern LCRYPTO_USED(ASN1_PRINTABLESTRING_it);
254extern LCRYPTO_USED(ASN1_T61STRING_it);
255extern LCRYPTO_USED(ASN1_IA5STRING_it);
256extern LCRYPTO_USED(ASN1_GENERALSTRING_it);
257extern LCRYPTO_USED(ASN1_UTCTIME_it);
258extern LCRYPTO_USED(ASN1_GENERALIZEDTIME_it);
259extern LCRYPTO_USED(ASN1_TIME_it);
260#endif
261
262#endif /* _LIBCRYPTO_ASN1_H */
diff --git a/src/lib/libcrypto/hidden/openssl/asn1t.h b/src/lib/libcrypto/hidden/openssl/asn1t.h
deleted file mode 100644
index 17bcb4e453..0000000000
--- a/src/lib/libcrypto/hidden/openssl/asn1t.h
+++ /dev/null
@@ -1,40 +0,0 @@
1/* $OpenBSD: asn1t.h,v 1.5 2024/07/08 17:01:54 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_ASN1T_H
19#define _LIBCRYPTO_ASN1T_H
20
21#ifndef _MSC_VER
22#include_next <openssl/asn1t.h>
23#else
24#include "../include/openssl/asn1t.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(ASN1_item_ex_new);
29LCRYPTO_USED(ASN1_item_ex_free);
30LCRYPTO_USED(ASN1_item_ex_d2i);
31LCRYPTO_USED(ASN1_item_ex_i2d);
32#if defined(LIBRESSL_NAMESPACE)
33extern LCRYPTO_USED(ASN1_SEQUENCE_it);
34extern LCRYPTO_USED(BIGNUM_it);
35extern LCRYPTO_USED(LONG_it);
36extern LCRYPTO_USED(ZLONG_it);
37extern LCRYPTO_UNUSED(CBIGNUM_it);
38#endif
39
40#endif /* _LIBCRYPTO_ASN1T_H */
diff --git a/src/lib/libcrypto/hidden/openssl/bio.h b/src/lib/libcrypto/hidden/openssl/bio.h
deleted file mode 100644
index 03da75a795..0000000000
--- a/src/lib/libcrypto/hidden/openssl/bio.h
+++ /dev/null
@@ -1,142 +0,0 @@
1/* $OpenBSD: bio.h,v 1.8 2024/07/09 06:14:59 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_BIO_H
19#define _LIBCRYPTO_BIO_H
20
21#ifndef _MSC_VER
22#include_next <openssl/bio.h>
23#else
24#include "../include/openssl/bio.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(BIO_set_flags);
29LCRYPTO_USED(BIO_test_flags);
30LCRYPTO_USED(BIO_clear_flags);
31LCRYPTO_USED(BIO_get_callback);
32LCRYPTO_USED(BIO_set_callback);
33LCRYPTO_USED(BIO_get_callback_ex);
34LCRYPTO_USED(BIO_set_callback_ex);
35LCRYPTO_USED(BIO_get_callback_arg);
36LCRYPTO_USED(BIO_set_callback_arg);
37LCRYPTO_USED(BIO_method_name);
38LCRYPTO_USED(BIO_method_type);
39LCRYPTO_USED(BIO_meth_new);
40LCRYPTO_USED(BIO_meth_free);
41LCRYPTO_USED(BIO_meth_get_write);
42LCRYPTO_USED(BIO_meth_set_write);
43LCRYPTO_USED(BIO_meth_get_read);
44LCRYPTO_USED(BIO_meth_set_read);
45LCRYPTO_USED(BIO_meth_get_puts);
46LCRYPTO_USED(BIO_meth_set_puts);
47LCRYPTO_USED(BIO_meth_get_gets);
48LCRYPTO_USED(BIO_meth_set_gets);
49LCRYPTO_USED(BIO_meth_get_ctrl);
50LCRYPTO_USED(BIO_meth_set_ctrl);
51LCRYPTO_USED(BIO_meth_get_create);
52LCRYPTO_USED(BIO_meth_set_create);
53LCRYPTO_USED(BIO_meth_get_destroy);
54LCRYPTO_USED(BIO_meth_set_destroy);
55LCRYPTO_USED(BIO_meth_get_callback_ctrl);
56LCRYPTO_USED(BIO_meth_set_callback_ctrl);
57LCRYPTO_USED(BIO_ctrl_pending);
58LCRYPTO_USED(BIO_ctrl_wpending);
59LCRYPTO_USED(BIO_ctrl_get_write_guarantee);
60LCRYPTO_USED(BIO_ctrl_get_read_request);
61LCRYPTO_USED(BIO_ctrl_reset_read_request);
62LCRYPTO_USED(BIO_set_ex_data);
63LCRYPTO_USED(BIO_get_ex_data);
64LCRYPTO_USED(BIO_number_read);
65LCRYPTO_USED(BIO_number_written);
66LCRYPTO_USED(BIO_get_new_index);
67LCRYPTO_USED(BIO_s_file);
68LCRYPTO_USED(BIO_new_file);
69LCRYPTO_USED(BIO_new_fp);
70LCRYPTO_USED(BIO_new);
71LCRYPTO_USED(BIO_free);
72LCRYPTO_USED(BIO_up_ref);
73LCRYPTO_USED(BIO_get_data);
74LCRYPTO_USED(BIO_set_data);
75LCRYPTO_USED(BIO_get_init);
76LCRYPTO_USED(BIO_set_init);
77LCRYPTO_USED(BIO_get_shutdown);
78LCRYPTO_USED(BIO_set_shutdown);
79LCRYPTO_USED(BIO_vfree);
80LCRYPTO_USED(BIO_read);
81LCRYPTO_USED(BIO_gets);
82LCRYPTO_USED(BIO_write);
83LCRYPTO_USED(BIO_puts);
84LCRYPTO_USED(BIO_indent);
85LCRYPTO_USED(BIO_ctrl);
86LCRYPTO_USED(BIO_callback_ctrl);
87LCRYPTO_USED(BIO_ptr_ctrl);
88LCRYPTO_USED(BIO_int_ctrl);
89LCRYPTO_USED(BIO_push);
90LCRYPTO_USED(BIO_pop);
91LCRYPTO_USED(BIO_free_all);
92LCRYPTO_USED(BIO_find_type);
93LCRYPTO_USED(BIO_next);
94LCRYPTO_USED(BIO_set_next);
95LCRYPTO_USED(BIO_get_retry_BIO);
96LCRYPTO_USED(BIO_get_retry_reason);
97LCRYPTO_USED(BIO_set_retry_reason);
98LCRYPTO_USED(BIO_dup_chain);
99LCRYPTO_USED(BIO_debug_callback);
100LCRYPTO_USED(BIO_s_mem);
101LCRYPTO_USED(BIO_new_mem_buf);
102LCRYPTO_USED(BIO_s_socket);
103LCRYPTO_USED(BIO_s_connect);
104LCRYPTO_USED(BIO_s_accept);
105LCRYPTO_USED(BIO_s_fd);
106LCRYPTO_USED(BIO_s_log);
107LCRYPTO_USED(BIO_s_bio);
108LCRYPTO_USED(BIO_s_null);
109LCRYPTO_USED(BIO_f_null);
110LCRYPTO_USED(BIO_f_buffer);
111LCRYPTO_USED(BIO_f_nbio_test);
112LCRYPTO_USED(BIO_s_datagram);
113LCRYPTO_USED(BIO_sock_should_retry);
114LCRYPTO_USED(BIO_sock_non_fatal_error);
115LCRYPTO_USED(BIO_dgram_non_fatal_error);
116LCRYPTO_USED(BIO_fd_should_retry);
117LCRYPTO_USED(BIO_fd_non_fatal_error);
118LCRYPTO_USED(BIO_dump);
119LCRYPTO_USED(BIO_dump_indent);
120LCRYPTO_USED(BIO_gethostbyname);
121LCRYPTO_USED(BIO_sock_error);
122LCRYPTO_USED(BIO_socket_ioctl);
123LCRYPTO_USED(BIO_socket_nbio);
124LCRYPTO_USED(BIO_get_port);
125LCRYPTO_USED(BIO_get_host_ip);
126LCRYPTO_USED(BIO_get_accept_socket);
127LCRYPTO_USED(BIO_accept);
128LCRYPTO_USED(BIO_sock_init);
129LCRYPTO_USED(BIO_sock_cleanup);
130LCRYPTO_USED(BIO_set_tcp_ndelay);
131LCRYPTO_USED(BIO_new_socket);
132LCRYPTO_USED(BIO_new_dgram);
133LCRYPTO_USED(BIO_new_fd);
134LCRYPTO_USED(BIO_new_connect);
135LCRYPTO_USED(BIO_new_accept);
136LCRYPTO_USED(BIO_copy_next_retry);
137LCRYPTO_USED(BIO_printf);
138LCRYPTO_USED(ERR_load_BIO_strings);
139LCRYPTO_USED(BIO_get_ex_new_index);
140LCRYPTO_USED(BIO_new_bio_pair);
141
142#endif /* _LIBCRYPTO_BIO_H */
diff --git a/src/lib/libcrypto/hidden/openssl/blowfish.h b/src/lib/libcrypto/hidden/openssl/blowfish.h
deleted file mode 100644
index e9a0d98fe8..0000000000
--- a/src/lib/libcrypto/hidden/openssl/blowfish.h
+++ /dev/null
@@ -1,36 +0,0 @@
1/* $OpenBSD: blowfish.h,v 1.1 2024/03/29 02:37:20 joshua Exp $ */
2/*
3 * Copyright (c) 2024 Joshua Sing <joshua@joshuasing.dev>
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_BLOWFISH_H
19#define _LIBCRYPTO_BLOWFISH_H
20
21#ifndef _MSC_VER
22#include_next <openssl/blowfish.h>
23#else
24#include "../include/openssl/blowfish.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(BF_set_key);
29LCRYPTO_USED(BF_encrypt);
30LCRYPTO_USED(BF_decrypt);
31LCRYPTO_USED(BF_ecb_encrypt);
32LCRYPTO_USED(BF_cbc_encrypt);
33LCRYPTO_USED(BF_cfb64_encrypt);
34LCRYPTO_USED(BF_ofb64_encrypt);
35
36#endif /* _LIBCRYPTO_BLOWFISH_H */
diff --git a/src/lib/libcrypto/hidden/openssl/bn.h b/src/lib/libcrypto/hidden/openssl/bn.h
deleted file mode 100644
index af3465c790..0000000000
--- a/src/lib/libcrypto/hidden/openssl/bn.h
+++ /dev/null
@@ -1,145 +0,0 @@
1/* $OpenBSD: bn.h,v 1.7 2024/04/10 14:58:06 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_BN_H
19#define _LIBCRYPTO_BN_H
20
21#ifndef _MSC_VER
22#include_next <openssl/bn.h>
23#else
24#include "../include/openssl/bn.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(BN_set_flags);
29LCRYPTO_USED(BN_get_flags);
30LCRYPTO_USED(BN_with_flags);
31LCRYPTO_USED(BN_GENCB_new);
32LCRYPTO_USED(BN_GENCB_free);
33LCRYPTO_USED(BN_GENCB_call);
34LCRYPTO_USED(BN_GENCB_set_old);
35LCRYPTO_USED(BN_GENCB_set);
36LCRYPTO_USED(BN_GENCB_get_arg);
37LCRYPTO_USED(BN_abs_is_word);
38LCRYPTO_USED(BN_is_zero);
39LCRYPTO_USED(BN_is_one);
40LCRYPTO_USED(BN_is_word);
41LCRYPTO_USED(BN_is_odd);
42LCRYPTO_USED(BN_zero);
43LCRYPTO_USED(BN_one);
44LCRYPTO_USED(BN_value_one);
45LCRYPTO_USED(BN_CTX_new);
46LCRYPTO_USED(BN_CTX_free);
47LCRYPTO_USED(BN_CTX_start);
48LCRYPTO_USED(BN_CTX_get);
49LCRYPTO_USED(BN_CTX_end);
50LCRYPTO_USED(BN_rand);
51LCRYPTO_USED(BN_pseudo_rand);
52LCRYPTO_USED(BN_rand_range);
53LCRYPTO_USED(BN_pseudo_rand_range);
54LCRYPTO_USED(BN_num_bits);
55LCRYPTO_USED(BN_num_bits_word);
56LCRYPTO_USED(BN_new);
57LCRYPTO_USED(BN_clear_free);
58LCRYPTO_USED(BN_copy);
59LCRYPTO_USED(BN_swap);
60LCRYPTO_USED(BN_bin2bn);
61LCRYPTO_USED(BN_bn2bin);
62LCRYPTO_USED(BN_bn2binpad);
63LCRYPTO_USED(BN_lebin2bn);
64LCRYPTO_USED(BN_bn2lebinpad);
65LCRYPTO_USED(BN_mpi2bn);
66LCRYPTO_USED(BN_bn2mpi);
67LCRYPTO_USED(BN_sub);
68LCRYPTO_USED(BN_usub);
69LCRYPTO_USED(BN_uadd);
70LCRYPTO_USED(BN_add);
71LCRYPTO_USED(BN_mul);
72LCRYPTO_USED(BN_sqr);
73LCRYPTO_USED(BN_set_negative);
74LCRYPTO_USED(BN_is_negative);
75LCRYPTO_USED(BN_nnmod);
76LCRYPTO_USED(BN_mod_add);
77LCRYPTO_USED(BN_mod_add_quick);
78LCRYPTO_USED(BN_mod_sub);
79LCRYPTO_USED(BN_mod_sub_quick);
80LCRYPTO_USED(BN_mod_mul);
81LCRYPTO_USED(BN_mod_sqr);
82LCRYPTO_USED(BN_mod_lshift1);
83LCRYPTO_USED(BN_mod_lshift1_quick);
84LCRYPTO_USED(BN_mod_lshift);
85LCRYPTO_USED(BN_mod_lshift_quick);
86LCRYPTO_USED(BN_mod_word);
87LCRYPTO_USED(BN_div_word);
88LCRYPTO_USED(BN_mul_word);
89LCRYPTO_USED(BN_add_word);
90LCRYPTO_USED(BN_sub_word);
91LCRYPTO_USED(BN_set_word);
92LCRYPTO_USED(BN_get_word);
93LCRYPTO_USED(BN_cmp);
94LCRYPTO_USED(BN_free);
95LCRYPTO_USED(BN_is_bit_set);
96LCRYPTO_USED(BN_lshift);
97LCRYPTO_USED(BN_lshift1);
98LCRYPTO_USED(BN_exp);
99LCRYPTO_USED(BN_mod_exp_mont_consttime);
100LCRYPTO_USED(BN_mask_bits);
101LCRYPTO_USED(BN_print_fp);
102LCRYPTO_USED(BN_print);
103LCRYPTO_USED(BN_rshift);
104LCRYPTO_USED(BN_rshift1);
105LCRYPTO_USED(BN_clear);
106LCRYPTO_USED(BN_dup);
107LCRYPTO_USED(BN_ucmp);
108LCRYPTO_USED(BN_set_bit);
109LCRYPTO_USED(BN_clear_bit);
110LCRYPTO_USED(BN_bn2hex);
111LCRYPTO_USED(BN_bn2dec);
112LCRYPTO_USED(BN_hex2bn);
113LCRYPTO_USED(BN_dec2bn);
114LCRYPTO_USED(BN_asc2bn);
115LCRYPTO_USED(BN_kronecker);
116LCRYPTO_USED(BN_mod_sqrt);
117LCRYPTO_USED(BN_consttime_swap);
118LCRYPTO_USED(BN_security_bits);
119LCRYPTO_USED(BN_generate_prime_ex);
120LCRYPTO_USED(BN_is_prime_ex);
121LCRYPTO_USED(BN_is_prime_fasttest_ex);
122LCRYPTO_USED(BN_MONT_CTX_new);
123LCRYPTO_USED(BN_mod_mul_montgomery);
124LCRYPTO_USED(BN_to_montgomery);
125LCRYPTO_USED(BN_from_montgomery);
126LCRYPTO_USED(BN_MONT_CTX_free);
127LCRYPTO_USED(BN_MONT_CTX_set);
128LCRYPTO_USED(BN_MONT_CTX_copy);
129LCRYPTO_USED(BN_MONT_CTX_set_locked);
130LCRYPTO_USED(BN_get_rfc2409_prime_768);
131LCRYPTO_USED(BN_get_rfc2409_prime_1024);
132LCRYPTO_USED(BN_get_rfc3526_prime_1536);
133LCRYPTO_USED(BN_get_rfc3526_prime_2048);
134LCRYPTO_USED(BN_get_rfc3526_prime_3072);
135LCRYPTO_USED(BN_get_rfc3526_prime_4096);
136LCRYPTO_USED(BN_get_rfc3526_prime_6144);
137LCRYPTO_USED(BN_get_rfc3526_prime_8192);
138LCRYPTO_USED(ERR_load_BN_strings);
139LCRYPTO_UNUSED(BN_div);
140LCRYPTO_UNUSED(BN_mod_exp);
141LCRYPTO_UNUSED(BN_mod_exp_mont);
142LCRYPTO_UNUSED(BN_gcd);
143LCRYPTO_UNUSED(BN_mod_inverse);
144
145#endif /* _LIBCRYPTO_BN_H */
diff --git a/src/lib/libcrypto/hidden/openssl/buffer.h b/src/lib/libcrypto/hidden/openssl/buffer.h
deleted file mode 100644
index 8dd86277f6..0000000000
--- a/src/lib/libcrypto/hidden/openssl/buffer.h
+++ /dev/null
@@ -1,34 +0,0 @@
1/* $OpenBSD: buffer.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_BUFFER_H
19#define _LIBCRYPTO_BUFFER_H
20
21#ifndef _MSC_VER
22#include_next <openssl/buffer.h>
23#else
24#include "../include/openssl/buffer.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(BUF_MEM_new);
29LCRYPTO_USED(BUF_MEM_free);
30LCRYPTO_USED(BUF_MEM_grow);
31LCRYPTO_USED(BUF_MEM_grow_clean);
32LCRYPTO_USED(ERR_load_BUF_strings);
33
34#endif /* _LIBCRYPTO_BUFFER_H */
diff --git a/src/lib/libcrypto/hidden/openssl/camellia.h b/src/lib/libcrypto/hidden/openssl/camellia.h
deleted file mode 100644
index bf7f43b1b3..0000000000
--- a/src/lib/libcrypto/hidden/openssl/camellia.h
+++ /dev/null
@@ -1,39 +0,0 @@
1/* $OpenBSD: camellia.h,v 1.1 2024/03/30 04:58:12 joshua Exp $ */
2/*
3 * Copyright (c) 2024 Joshua Sing <joshua@joshuasing.dev>
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_CAMELLIA_H
19#define _LIBCRYPTO_CAMELLIA_H
20
21#ifndef _MSC_VER
22#include_next <openssl/camellia.h>
23#else
24#include "../include/openssl/camellia.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(Camellia_set_key);
29LCRYPTO_USED(Camellia_encrypt);
30LCRYPTO_USED(Camellia_decrypt);
31LCRYPTO_USED(Camellia_ecb_encrypt);
32LCRYPTO_USED(Camellia_cbc_encrypt);
33LCRYPTO_USED(Camellia_cfb128_encrypt);
34LCRYPTO_USED(Camellia_cfb1_encrypt);
35LCRYPTO_USED(Camellia_cfb8_encrypt);
36LCRYPTO_USED(Camellia_ofb128_encrypt);
37LCRYPTO_USED(Camellia_ctr128_encrypt);
38
39#endif /* _LIBCRYPTO_CAMELLIA_H */
diff --git a/src/lib/libcrypto/hidden/openssl/cast.h b/src/lib/libcrypto/hidden/openssl/cast.h
deleted file mode 100644
index 68cf618266..0000000000
--- a/src/lib/libcrypto/hidden/openssl/cast.h
+++ /dev/null
@@ -1,36 +0,0 @@
1/* $OpenBSD: cast.h,v 1.1 2023/07/08 10:44:00 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_CAST_H
19#define _LIBCRYPTO_CAST_H
20
21#ifndef _MSC_VER
22#include_next <openssl/cast.h>
23#else
24#include "../include/openssl/cast.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(CAST_set_key);
29LCRYPTO_USED(CAST_ecb_encrypt);
30LCRYPTO_USED(CAST_encrypt);
31LCRYPTO_USED(CAST_decrypt);
32LCRYPTO_USED(CAST_cbc_encrypt);
33LCRYPTO_USED(CAST_cfb64_encrypt);
34LCRYPTO_USED(CAST_ofb64_encrypt);
35
36#endif /* _LIBCRYPTO_CAST_H */
diff --git a/src/lib/libcrypto/hidden/openssl/chacha.h b/src/lib/libcrypto/hidden/openssl/chacha.h
deleted file mode 100644
index a9f3b7e908..0000000000
--- a/src/lib/libcrypto/hidden/openssl/chacha.h
+++ /dev/null
@@ -1,35 +0,0 @@
1/* $OpenBSD: chacha.h,v 1.3 2023/07/07 19:37:54 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_CHACHA_H
19#define _LIBCRYPTO_CHACHA_H
20
21#ifndef _MSC_VER
22#include_next <openssl/chacha.h>
23#else
24#include "../include/openssl/chacha.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(ChaCha_set_key);
29LCRYPTO_USED(ChaCha_set_iv);
30LCRYPTO_USED(ChaCha);
31LCRYPTO_USED(CRYPTO_chacha_20);
32LCRYPTO_USED(CRYPTO_xchacha_20);
33LCRYPTO_USED(CRYPTO_hchacha_20);
34
35#endif /* _LIBCRYPTO_CHACHA_H */
diff --git a/src/lib/libcrypto/hidden/openssl/cmac.h b/src/lib/libcrypto/hidden/openssl/cmac.h
deleted file mode 100644
index 1e802aa887..0000000000
--- a/src/lib/libcrypto/hidden/openssl/cmac.h
+++ /dev/null
@@ -1,37 +0,0 @@
1/* $OpenBSD: cmac.h,v 1.2 2024/03/02 09:30:21 tb 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_CMAC_H
19#define _LIBCRYPTO_CMAC_H
20
21#ifndef _MSC_VER
22#include_next <openssl/cmac.h>
23#else
24#include "../include/openssl/cmac.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(CMAC_CTX_new);
29LCRYPTO_USED(CMAC_CTX_cleanup);
30LCRYPTO_USED(CMAC_CTX_free);
31LCRYPTO_USED(CMAC_CTX_get0_cipher_ctx);
32LCRYPTO_USED(CMAC_CTX_copy);
33LCRYPTO_USED(CMAC_Init);
34LCRYPTO_USED(CMAC_Update);
35LCRYPTO_USED(CMAC_Final);
36
37#endif /* _LIBCRYPTO_CMAC_H */
diff --git a/src/lib/libcrypto/hidden/openssl/cms.h b/src/lib/libcrypto/hidden/openssl/cms.h
deleted file mode 100644
index a99c977755..0000000000
--- a/src/lib/libcrypto/hidden/openssl/cms.h
+++ /dev/null
@@ -1,161 +0,0 @@
1/* $OpenBSD: cms.h,v 1.4 2024/07/09 06:12:45 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_CMS_H
19#define _LIBCRYPTO_CMS_H
20
21#ifndef _MSC_VER
22#include_next <openssl/cms.h>
23#else
24#include "../include/openssl/cms.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(CMS_ContentInfo_new);
29LCRYPTO_USED(CMS_ContentInfo_free);
30LCRYPTO_USED(d2i_CMS_ContentInfo);
31LCRYPTO_USED(i2d_CMS_ContentInfo);
32LCRYPTO_USED(CMS_ReceiptRequest_new);
33LCRYPTO_USED(CMS_ReceiptRequest_free);
34LCRYPTO_USED(d2i_CMS_ReceiptRequest);
35LCRYPTO_USED(i2d_CMS_ReceiptRequest);
36LCRYPTO_USED(CMS_ContentInfo_print_ctx);
37LCRYPTO_USED(CMS_get0_type);
38LCRYPTO_USED(CMS_get_version);
39LCRYPTO_USED(CMS_SignerInfo_get_version);
40LCRYPTO_USED(CMS_dataInit);
41LCRYPTO_USED(CMS_dataFinal);
42LCRYPTO_USED(CMS_get0_content);
43LCRYPTO_USED(CMS_is_detached);
44LCRYPTO_USED(CMS_set_detached);
45LCRYPTO_USED(PEM_read_bio_CMS);
46LCRYPTO_USED(PEM_read_CMS);
47LCRYPTO_USED(PEM_write_bio_CMS);
48LCRYPTO_USED(PEM_write_CMS);
49LCRYPTO_USED(CMS_stream);
50LCRYPTO_USED(d2i_CMS_bio);
51LCRYPTO_USED(i2d_CMS_bio);
52LCRYPTO_USED(BIO_new_CMS);
53LCRYPTO_USED(i2d_CMS_bio_stream);
54LCRYPTO_USED(PEM_write_bio_CMS_stream);
55LCRYPTO_USED(SMIME_read_CMS);
56LCRYPTO_USED(SMIME_write_CMS);
57LCRYPTO_USED(CMS_final);
58LCRYPTO_USED(CMS_sign);
59LCRYPTO_USED(CMS_sign_receipt);
60LCRYPTO_USED(CMS_data);
61LCRYPTO_USED(CMS_data_create);
62LCRYPTO_USED(CMS_digest_verify);
63LCRYPTO_USED(CMS_digest_create);
64LCRYPTO_USED(CMS_EncryptedData_decrypt);
65LCRYPTO_USED(CMS_EncryptedData_encrypt);
66LCRYPTO_USED(CMS_EncryptedData_set1_key);
67LCRYPTO_USED(CMS_verify);
68LCRYPTO_USED(CMS_verify_receipt);
69LCRYPTO_USED(CMS_get0_signers);
70LCRYPTO_USED(CMS_encrypt);
71LCRYPTO_USED(CMS_decrypt);
72LCRYPTO_USED(CMS_decrypt_set1_pkey);
73LCRYPTO_USED(CMS_decrypt_set1_key);
74LCRYPTO_USED(CMS_decrypt_set1_password);
75LCRYPTO_USED(CMS_get0_RecipientInfos);
76LCRYPTO_USED(CMS_RecipientInfo_type);
77LCRYPTO_USED(CMS_RecipientInfo_get0_pkey_ctx);
78LCRYPTO_USED(CMS_EnvelopedData_create);
79LCRYPTO_USED(CMS_add1_recipient_cert);
80LCRYPTO_USED(CMS_RecipientInfo_set0_pkey);
81LCRYPTO_USED(CMS_RecipientInfo_ktri_cert_cmp);
82LCRYPTO_USED(CMS_RecipientInfo_ktri_get0_algs);
83LCRYPTO_USED(CMS_RecipientInfo_ktri_get0_signer_id);
84LCRYPTO_USED(CMS_add0_recipient_key);
85LCRYPTO_USED(CMS_RecipientInfo_kekri_get0_id);
86LCRYPTO_USED(CMS_RecipientInfo_set0_key);
87LCRYPTO_USED(CMS_RecipientInfo_kekri_id_cmp);
88LCRYPTO_USED(CMS_RecipientInfo_set0_password);
89LCRYPTO_USED(CMS_add0_recipient_password);
90LCRYPTO_USED(CMS_RecipientInfo_decrypt);
91LCRYPTO_USED(CMS_RecipientInfo_encrypt);
92LCRYPTO_USED(CMS_uncompress);
93LCRYPTO_USED(CMS_compress);
94LCRYPTO_USED(CMS_set1_eContentType);
95LCRYPTO_USED(CMS_get0_eContentType);
96LCRYPTO_USED(CMS_add0_CertificateChoices);
97LCRYPTO_USED(CMS_add0_cert);
98LCRYPTO_USED(CMS_add1_cert);
99LCRYPTO_USED(CMS_get1_certs);
100LCRYPTO_USED(CMS_add0_RevocationInfoChoice);
101LCRYPTO_USED(CMS_add0_crl);
102LCRYPTO_USED(CMS_add1_crl);
103LCRYPTO_USED(CMS_get1_crls);
104LCRYPTO_USED(CMS_SignedData_init);
105LCRYPTO_USED(CMS_add1_signer);
106LCRYPTO_USED(CMS_SignerInfo_get0_pkey_ctx);
107LCRYPTO_USED(CMS_SignerInfo_get0_md_ctx);
108LCRYPTO_USED(CMS_get0_SignerInfos);
109LCRYPTO_USED(CMS_SignerInfo_set1_signer_cert);
110LCRYPTO_USED(CMS_SignerInfo_get0_signer_id);
111LCRYPTO_USED(CMS_SignerInfo_cert_cmp);
112LCRYPTO_USED(CMS_set1_signers_certs);
113LCRYPTO_USED(CMS_SignerInfo_get0_algs);
114LCRYPTO_USED(CMS_SignerInfo_get0_signature);
115LCRYPTO_USED(CMS_SignerInfo_sign);
116LCRYPTO_USED(CMS_SignerInfo_verify);
117LCRYPTO_USED(CMS_SignerInfo_verify_content);
118LCRYPTO_USED(CMS_add_smimecap);
119LCRYPTO_USED(CMS_add_simple_smimecap);
120LCRYPTO_USED(CMS_add_standard_smimecap);
121LCRYPTO_USED(CMS_signed_get_attr_count);
122LCRYPTO_USED(CMS_signed_get_attr_by_NID);
123LCRYPTO_USED(CMS_signed_get_attr_by_OBJ);
124LCRYPTO_USED(CMS_signed_get_attr);
125LCRYPTO_USED(CMS_signed_delete_attr);
126LCRYPTO_USED(CMS_signed_add1_attr);
127LCRYPTO_USED(CMS_signed_add1_attr_by_OBJ);
128LCRYPTO_USED(CMS_signed_add1_attr_by_NID);
129LCRYPTO_USED(CMS_signed_add1_attr_by_txt);
130LCRYPTO_USED(CMS_signed_get0_data_by_OBJ);
131LCRYPTO_USED(CMS_unsigned_get_attr_count);
132LCRYPTO_USED(CMS_unsigned_get_attr_by_NID);
133LCRYPTO_USED(CMS_unsigned_get_attr_by_OBJ);
134LCRYPTO_USED(CMS_unsigned_get_attr);
135LCRYPTO_USED(CMS_unsigned_delete_attr);
136LCRYPTO_USED(CMS_unsigned_add1_attr);
137LCRYPTO_USED(CMS_unsigned_add1_attr_by_OBJ);
138LCRYPTO_USED(CMS_unsigned_add1_attr_by_NID);
139LCRYPTO_USED(CMS_unsigned_add1_attr_by_txt);
140LCRYPTO_USED(CMS_unsigned_get0_data_by_OBJ);
141LCRYPTO_USED(CMS_get1_ReceiptRequest);
142LCRYPTO_USED(CMS_ReceiptRequest_create0);
143LCRYPTO_USED(CMS_add1_ReceiptRequest);
144LCRYPTO_USED(CMS_ReceiptRequest_get0_values);
145LCRYPTO_USED(CMS_RecipientInfo_kari_get0_alg);
146LCRYPTO_USED(CMS_RecipientInfo_kari_get0_reks);
147LCRYPTO_USED(CMS_RecipientInfo_kari_get0_orig_id);
148LCRYPTO_USED(CMS_RecipientInfo_kari_orig_id_cmp);
149LCRYPTO_USED(CMS_RecipientEncryptedKey_get0_id);
150LCRYPTO_USED(CMS_RecipientEncryptedKey_cert_cmp);
151LCRYPTO_USED(CMS_RecipientInfo_kari_set0_pkey);
152LCRYPTO_USED(CMS_RecipientInfo_kari_get0_ctx);
153LCRYPTO_USED(CMS_RecipientInfo_kari_decrypt);
154LCRYPTO_USED(CMS_SharedInfo_encode);
155LCRYPTO_USED(ERR_load_CMS_strings);
156#if defined(LIBRESSL_NAMESPACE)
157extern LCRYPTO_USED(CMS_ContentInfo_it);
158extern LCRYPTO_USED(CMS_ReceiptRequest_it);
159#endif
160
161#endif /* _LIBCRYPTO_CMS_H */
diff --git a/src/lib/libcrypto/hidden/openssl/conf.h b/src/lib/libcrypto/hidden/openssl/conf.h
deleted file mode 100644
index f3780985b8..0000000000
--- a/src/lib/libcrypto/hidden/openssl/conf.h
+++ /dev/null
@@ -1,45 +0,0 @@
1/* $OpenBSD: conf.h,v 1.9 2024/08/31 09:54:31 tb Exp $ */
2/*
3 * Copyright (c) 2024 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_H
19#define _LIBCRYPTO_CONF_H
20
21#ifndef _MSC_VER
22#include_next <openssl/conf.h>
23#else
24#include "../include/openssl/conf.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(OPENSSL_config);
29LCRYPTO_USED(OPENSSL_no_config);
30LCRYPTO_USED(NCONF_new);
31LCRYPTO_USED(NCONF_free);
32LCRYPTO_USED(NCONF_load);
33LCRYPTO_USED(NCONF_load_bio);
34LCRYPTO_USED(NCONF_get_section);
35LCRYPTO_USED(NCONF_get_string);
36LCRYPTO_USED(NCONF_get_number_e);
37LCRYPTO_USED(CONF_modules_load);
38LCRYPTO_USED(CONF_modules_load_file);
39LCRYPTO_USED(CONF_modules_unload);
40LCRYPTO_USED(CONF_modules_finish);
41LCRYPTO_USED(CONF_modules_free);
42LCRYPTO_USED(CONF_get1_default_config_file);
43LCRYPTO_USED(ERR_load_CONF_strings);
44
45#endif /* _LIBCRYPTO_CONF_H */
diff --git a/src/lib/libcrypto/hidden/openssl/crypto.h b/src/lib/libcrypto/hidden/openssl/crypto.h
deleted file mode 100644
index fcaea05d48..0000000000
--- a/src/lib/libcrypto/hidden/openssl/crypto.h
+++ /dev/null
@@ -1,81 +0,0 @@
1/* $OpenBSD: crypto.h,v 1.9 2025/03/09 15:29:56 tb 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_CRYPTO_H
19#define _LIBCRYPTO_CRYPTO_H
20
21#ifndef _MSC_VER
22#include_next <openssl/crypto.h>
23#else
24#include "../include/openssl/crypto.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(OpenSSL_version);
29LCRYPTO_USED(OpenSSL_version_num);
30LCRYPTO_USED(SSLeay_version);
31LCRYPTO_USED(SSLeay);
32LCRYPTO_USED(CRYPTO_get_ex_new_index);
33LCRYPTO_USED(CRYPTO_new_ex_data);
34LCRYPTO_USED(CRYPTO_dup_ex_data);
35LCRYPTO_USED(CRYPTO_free_ex_data);
36LCRYPTO_USED(CRYPTO_set_ex_data);
37LCRYPTO_USED(CRYPTO_get_ex_data);
38LCRYPTO_USED(CRYPTO_cleanup_all_ex_data);
39LCRYPTO_USED(CRYPTO_lock);
40LCRYPTO_USED(CRYPTO_add_lock);
41LCRYPTO_USED(CRYPTO_set_mem_functions);
42LCRYPTO_USED(OpenSSLDie);
43LCRYPTO_USED(OPENSSL_cpu_caps);
44LCRYPTO_USED(OPENSSL_init_crypto);
45LCRYPTO_USED(OPENSSL_cleanup);
46LCRYPTO_USED(OPENSSL_gmtime);
47LCRYPTO_USED(ERR_load_CRYPTO_strings);
48LCRYPTO_UNUSED(CRYPTO_mem_ctrl);
49LCRYPTO_UNUSED(CRYPTO_set_id_callback);
50LCRYPTO_UNUSED(CRYPTO_get_id_callback);
51LCRYPTO_UNUSED(CRYPTO_thread_id);
52LCRYPTO_UNUSED(CRYPTO_get_new_lockid);
53LCRYPTO_UNUSED(CRYPTO_get_lock_name);
54LCRYPTO_UNUSED(CRYPTO_num_locks);
55LCRYPTO_UNUSED(CRYPTO_set_locking_callback);
56LCRYPTO_UNUSED(CRYPTO_get_locking_callback);
57LCRYPTO_UNUSED(CRYPTO_set_add_lock_callback);
58LCRYPTO_UNUSED(CRYPTO_get_add_lock_callback);
59LCRYPTO_UNUSED(CRYPTO_THREADID_set_numeric);
60LCRYPTO_UNUSED(CRYPTO_THREADID_set_pointer);
61LCRYPTO_UNUSED(CRYPTO_THREADID_set_callback);
62LCRYPTO_UNUSED(CRYPTO_THREADID_get_callback);
63LCRYPTO_UNUSED(CRYPTO_get_new_dynlockid);
64LCRYPTO_UNUSED(CRYPTO_destroy_dynlockid);
65LCRYPTO_UNUSED(CRYPTO_get_dynlock_value);
66LCRYPTO_UNUSED(CRYPTO_set_dynlock_create_callback);
67LCRYPTO_UNUSED(CRYPTO_set_dynlock_lock_callback);
68LCRYPTO_UNUSED(CRYPTO_set_dynlock_destroy_callback);
69LCRYPTO_UNUSED(CRYPTO_get_dynlock_lock_callback);
70LCRYPTO_UNUSED(CRYPTO_get_dynlock_destroy_callback);
71LCRYPTO_UNUSED(CRYPTO_get_dynlock_create_callback);
72LCRYPTO_UNUSED(CRYPTO_malloc);
73LCRYPTO_UNUSED(CRYPTO_strdup);
74LCRYPTO_UNUSED(CRYPTO_free);
75LCRYPTO_UNUSED(OPENSSL_cleanse);
76LCRYPTO_UNUSED(FIPS_mode);
77LCRYPTO_UNUSED(FIPS_mode_set);
78LCRYPTO_UNUSED(OPENSSL_init);
79LCRYPTO_UNUSED(CRYPTO_memcmp);
80
81#endif /* _LIBCRYPTO_CRYPTO_H */
diff --git a/src/lib/libcrypto/hidden/openssl/ct.h b/src/lib/libcrypto/hidden/openssl/ct.h
deleted file mode 100644
index a1c9b338ec..0000000000
--- a/src/lib/libcrypto/hidden/openssl/ct.h
+++ /dev/null
@@ -1,85 +0,0 @@
1/* $OpenBSD: ct.h,v 1.1 2023/07/08 07:22:58 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_CT_H
19#define _LIBCRYPTO_CT_H
20
21#ifndef _MSC_VER
22#include_next <openssl/ct.h>
23#else
24#include "../include/openssl/ct.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(CT_POLICY_EVAL_CTX_new);
29LCRYPTO_USED(CT_POLICY_EVAL_CTX_free);
30LCRYPTO_USED(CT_POLICY_EVAL_CTX_get0_cert);
31LCRYPTO_USED(CT_POLICY_EVAL_CTX_set1_cert);
32LCRYPTO_USED(CT_POLICY_EVAL_CTX_get0_issuer);
33LCRYPTO_USED(CT_POLICY_EVAL_CTX_set1_issuer);
34LCRYPTO_USED(CT_POLICY_EVAL_CTX_get0_log_store);
35LCRYPTO_USED(CT_POLICY_EVAL_CTX_set_shared_CTLOG_STORE);
36LCRYPTO_USED(CT_POLICY_EVAL_CTX_get_time);
37LCRYPTO_USED(CT_POLICY_EVAL_CTX_set_time);
38LCRYPTO_USED(SCT_new);
39LCRYPTO_USED(SCT_new_from_base64);
40LCRYPTO_USED(SCT_free);
41LCRYPTO_USED(SCT_LIST_free);
42LCRYPTO_USED(SCT_get_version);
43LCRYPTO_USED(SCT_set_version);
44LCRYPTO_USED(SCT_get_log_entry_type);
45LCRYPTO_USED(SCT_set_log_entry_type);
46LCRYPTO_USED(SCT_get0_log_id);
47LCRYPTO_USED(SCT_set0_log_id);
48LCRYPTO_USED(SCT_set1_log_id);
49LCRYPTO_USED(SCT_get_timestamp);
50LCRYPTO_USED(SCT_set_timestamp);
51LCRYPTO_USED(SCT_get_signature_nid);
52LCRYPTO_USED(SCT_set_signature_nid);
53LCRYPTO_USED(SCT_get0_extensions);
54LCRYPTO_USED(SCT_set0_extensions);
55LCRYPTO_USED(SCT_set1_extensions);
56LCRYPTO_USED(SCT_get0_signature);
57LCRYPTO_USED(SCT_set0_signature);
58LCRYPTO_USED(SCT_set1_signature);
59LCRYPTO_USED(SCT_get_source);
60LCRYPTO_USED(SCT_set_source);
61LCRYPTO_USED(SCT_validation_status_string);
62LCRYPTO_USED(SCT_print);
63LCRYPTO_USED(SCT_LIST_print);
64LCRYPTO_USED(SCT_get_validation_status);
65LCRYPTO_USED(SCT_validate);
66LCRYPTO_USED(SCT_LIST_validate);
67LCRYPTO_USED(i2o_SCT_LIST);
68LCRYPTO_USED(o2i_SCT_LIST);
69LCRYPTO_USED(i2d_SCT_LIST);
70LCRYPTO_USED(d2i_SCT_LIST);
71LCRYPTO_USED(i2o_SCT);
72LCRYPTO_USED(o2i_SCT);
73LCRYPTO_USED(CTLOG_new);
74LCRYPTO_USED(CTLOG_new_from_base64);
75LCRYPTO_USED(CTLOG_free);
76LCRYPTO_USED(CTLOG_get0_name);
77LCRYPTO_USED(CTLOG_get0_log_id);
78LCRYPTO_USED(CTLOG_get0_public_key);
79LCRYPTO_USED(CTLOG_STORE_new);
80LCRYPTO_USED(CTLOG_STORE_free);
81LCRYPTO_USED(CTLOG_STORE_get0_log_by_id);
82LCRYPTO_USED(CTLOG_STORE_load_file);
83LCRYPTO_USED(CTLOG_STORE_load_default_file);
84
85#endif /* _LIBCRYPTO_CT_H */
diff --git a/src/lib/libcrypto/hidden/openssl/curve25519.h b/src/lib/libcrypto/hidden/openssl/curve25519.h
deleted file mode 100644
index 3afa324e0a..0000000000
--- a/src/lib/libcrypto/hidden/openssl/curve25519.h
+++ /dev/null
@@ -1,34 +0,0 @@
1/* $OpenBSD: curve25519.h,v 1.1 2023/07/08 15:12:49 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_CURVE25519_H
19#define _LIBCRYPTO_CURVE25519_H
20
21#ifndef _MSC_VER
22#include_next <openssl/curve25519.h>
23#else
24#include "../include/openssl/curve25519.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(X25519_keypair);
29LCRYPTO_USED(X25519);
30LCRYPTO_USED(ED25519_keypair);
31LCRYPTO_USED(ED25519_sign);
32LCRYPTO_USED(ED25519_verify);
33
34#endif /* _LIBCRYPTO_CURVE25519_H */
diff --git a/src/lib/libcrypto/hidden/openssl/des.h b/src/lib/libcrypto/hidden/openssl/des.h
deleted file mode 100644
index 645181199b..0000000000
--- a/src/lib/libcrypto/hidden/openssl/des.h
+++ /dev/null
@@ -1,65 +0,0 @@
1/* $OpenBSD: des.h,v 1.3 2024/08/31 10:30:16 tb Exp $ */
2/*
3 * Copyright (c) 2024 Joshua Sing <joshua@joshuasing.dev>
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_DES_H
19#define _LIBCRYPTO_DES_H
20
21#ifndef _MSC_VER
22#include_next <openssl/des.h>
23#else
24#include "../include/openssl/des.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(DES_ecb3_encrypt);
29LCRYPTO_USED(DES_cbc_cksum);
30LCRYPTO_USED(DES_cbc_encrypt);
31LCRYPTO_USED(DES_ncbc_encrypt);
32LCRYPTO_USED(DES_xcbc_encrypt);
33LCRYPTO_USED(DES_cfb_encrypt);
34LCRYPTO_USED(DES_ecb_encrypt);
35LCRYPTO_USED(DES_encrypt1);
36LCRYPTO_USED(DES_encrypt2);
37LCRYPTO_USED(DES_encrypt3);
38LCRYPTO_USED(DES_decrypt3);
39LCRYPTO_USED(DES_ede3_cbc_encrypt);
40LCRYPTO_USED(DES_ede3_cbcm_encrypt);
41LCRYPTO_USED(DES_ede3_cfb64_encrypt);
42LCRYPTO_USED(DES_ede3_cfb_encrypt);
43LCRYPTO_USED(DES_ede3_ofb64_encrypt);
44LCRYPTO_USED(DES_fcrypt);
45LCRYPTO_USED(DES_crypt);
46LCRYPTO_USED(DES_ofb_encrypt);
47LCRYPTO_USED(DES_pcbc_encrypt);
48LCRYPTO_USED(DES_quad_cksum);
49LCRYPTO_USED(DES_random_key);
50LCRYPTO_USED(DES_set_odd_parity);
51LCRYPTO_USED(DES_check_key_parity);
52LCRYPTO_USED(DES_is_weak_key);
53LCRYPTO_USED(DES_set_key);
54LCRYPTO_USED(DES_key_sched);
55LCRYPTO_USED(DES_set_key_checked);
56LCRYPTO_USED(DES_set_key_unchecked);
57LCRYPTO_USED(DES_string_to_key);
58LCRYPTO_USED(DES_string_to_2keys);
59LCRYPTO_USED(DES_cfb64_encrypt);
60LCRYPTO_USED(DES_ofb64_encrypt);
61#if defined(LIBRESSL_NAMESPACE)
62extern LCRYPTO_USED(DES_check_key);
63#endif
64
65#endif /* _LIBCRYPTO_DES_H */
diff --git a/src/lib/libcrypto/hidden/openssl/dh.h b/src/lib/libcrypto/hidden/openssl/dh.h
deleted file mode 100644
index 7e6d578151..0000000000
--- a/src/lib/libcrypto/hidden/openssl/dh.h
+++ /dev/null
@@ -1,74 +0,0 @@
1/* $OpenBSD: dh.h,v 1.1 2023/07/08 15:29:04 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_DH_H
19#define _LIBCRYPTO_DH_H
20
21#ifndef _MSC_VER
22#include_next <openssl/dh.h>
23#else
24#include "../include/openssl/dh.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(d2i_DHparams_bio);
29LCRYPTO_USED(i2d_DHparams_bio);
30LCRYPTO_USED(d2i_DHparams_fp);
31LCRYPTO_USED(i2d_DHparams_fp);
32LCRYPTO_USED(DHparams_dup);
33LCRYPTO_USED(DH_OpenSSL);
34LCRYPTO_USED(DH_set_default_method);
35LCRYPTO_USED(DH_get_default_method);
36LCRYPTO_USED(DH_set_method);
37LCRYPTO_USED(DH_new_method);
38LCRYPTO_USED(DH_new);
39LCRYPTO_USED(DH_free);
40LCRYPTO_USED(DH_up_ref);
41LCRYPTO_USED(DH_size);
42LCRYPTO_USED(DH_bits);
43LCRYPTO_USED(DH_get_ex_new_index);
44LCRYPTO_USED(DH_set_ex_data);
45LCRYPTO_USED(DH_get_ex_data);
46LCRYPTO_USED(DH_security_bits);
47LCRYPTO_USED(DH_get0_engine);
48LCRYPTO_USED(DH_get0_pqg);
49LCRYPTO_USED(DH_set0_pqg);
50LCRYPTO_USED(DH_get0_key);
51LCRYPTO_USED(DH_set0_key);
52LCRYPTO_USED(DH_get0_p);
53LCRYPTO_USED(DH_get0_q);
54LCRYPTO_USED(DH_get0_g);
55LCRYPTO_USED(DH_get0_priv_key);
56LCRYPTO_USED(DH_get0_pub_key);
57LCRYPTO_USED(DH_clear_flags);
58LCRYPTO_USED(DH_test_flags);
59LCRYPTO_USED(DH_set_flags);
60LCRYPTO_USED(DH_get_length);
61LCRYPTO_USED(DH_set_length);
62LCRYPTO_USED(DH_generate_parameters);
63LCRYPTO_USED(DH_generate_parameters_ex);
64LCRYPTO_USED(DH_check);
65LCRYPTO_USED(DH_check_pub_key);
66LCRYPTO_USED(DH_generate_key);
67LCRYPTO_USED(DH_compute_key);
68LCRYPTO_USED(d2i_DHparams);
69LCRYPTO_USED(i2d_DHparams);
70LCRYPTO_USED(DHparams_print_fp);
71LCRYPTO_USED(DHparams_print);
72LCRYPTO_USED(ERR_load_DH_strings);
73
74#endif /* _LIBCRYPTO_DH_H */
diff --git a/src/lib/libcrypto/hidden/openssl/dsa.h b/src/lib/libcrypto/hidden/openssl/dsa.h
deleted file mode 100644
index c00c0af6df..0000000000
--- a/src/lib/libcrypto/hidden/openssl/dsa.h
+++ /dev/null
@@ -1,98 +0,0 @@
1/* $OpenBSD: dsa.h,v 1.3 2024/07/08 17:11:05 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_DSA_H
19#define _LIBCRYPTO_DSA_H
20
21#ifndef _MSC_VER
22#include_next <openssl/dsa.h>
23#else
24#include "../include/openssl/dsa.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(d2i_DSAparams_bio);
29LCRYPTO_USED(i2d_DSAparams_bio);
30LCRYPTO_USED(d2i_DSAparams_fp);
31LCRYPTO_USED(i2d_DSAparams_fp);
32LCRYPTO_USED(DSAparams_dup);
33LCRYPTO_USED(DSA_SIG_new);
34LCRYPTO_USED(DSA_SIG_free);
35LCRYPTO_USED(i2d_DSA_SIG);
36LCRYPTO_USED(d2i_DSA_SIG);
37LCRYPTO_USED(DSA_SIG_get0);
38LCRYPTO_USED(DSA_SIG_set0);
39LCRYPTO_USED(DSA_do_sign);
40LCRYPTO_USED(DSA_do_verify);
41LCRYPTO_USED(DSA_OpenSSL);
42LCRYPTO_USED(DSA_set_default_method);
43LCRYPTO_USED(DSA_get_default_method);
44LCRYPTO_USED(DSA_set_method);
45LCRYPTO_USED(DSA_new);
46LCRYPTO_USED(DSA_new_method);
47LCRYPTO_USED(DSA_free);
48LCRYPTO_USED(DSA_up_ref);
49LCRYPTO_USED(DSA_size);
50LCRYPTO_USED(DSA_bits);
51LCRYPTO_USED(DSA_sign_setup);
52LCRYPTO_USED(DSA_sign);
53LCRYPTO_USED(DSA_verify);
54LCRYPTO_USED(DSA_get_ex_new_index);
55LCRYPTO_USED(DSA_set_ex_data);
56LCRYPTO_USED(DSA_get_ex_data);
57LCRYPTO_USED(DSA_security_bits);
58LCRYPTO_USED(d2i_DSAPublicKey);
59LCRYPTO_USED(i2d_DSAPublicKey);
60LCRYPTO_USED(d2i_DSAPrivateKey);
61LCRYPTO_USED(i2d_DSAPrivateKey);
62LCRYPTO_USED(d2i_DSAparams);
63LCRYPTO_USED(i2d_DSAparams);
64LCRYPTO_USED(DSA_generate_parameters_ex);
65LCRYPTO_USED(DSA_generate_key);
66LCRYPTO_USED(DSAparams_print);
67LCRYPTO_USED(DSA_print);
68LCRYPTO_USED(DSAparams_print_fp);
69LCRYPTO_USED(DSA_print_fp);
70LCRYPTO_USED(DSA_dup_DH);
71LCRYPTO_USED(DSA_get0_pqg);
72LCRYPTO_USED(DSA_set0_pqg);
73LCRYPTO_USED(DSA_get0_key);
74LCRYPTO_USED(DSA_set0_key);
75LCRYPTO_USED(DSA_get0_p);
76LCRYPTO_USED(DSA_get0_q);
77LCRYPTO_USED(DSA_get0_g);
78LCRYPTO_USED(DSA_get0_pub_key);
79LCRYPTO_USED(DSA_get0_priv_key);
80LCRYPTO_USED(DSA_clear_flags);
81LCRYPTO_USED(DSA_test_flags);
82LCRYPTO_USED(DSA_set_flags);
83LCRYPTO_USED(DSA_get0_engine);
84LCRYPTO_USED(DSA_meth_new);
85LCRYPTO_USED(DSA_meth_free);
86LCRYPTO_USED(DSA_meth_dup);
87LCRYPTO_USED(DSA_meth_get0_name);
88LCRYPTO_USED(DSA_meth_set1_name);
89LCRYPTO_USED(DSA_meth_set_sign);
90LCRYPTO_USED(DSA_meth_set_finish);
91LCRYPTO_USED(ERR_load_DSA_strings);
92#if defined(LIBRESSL_NAMESPACE)
93extern LCRYPTO_USED(DSAPublicKey_it);
94extern LCRYPTO_USED(DSAPrivateKey_it);
95extern LCRYPTO_USED(DSAparams_it);
96#endif
97
98#endif /* _LIBCRYPTO_DSA_H */
diff --git a/src/lib/libcrypto/hidden/openssl/ec.h b/src/lib/libcrypto/hidden/openssl/ec.h
deleted file mode 100644
index 31ca83f147..0000000000
--- a/src/lib/libcrypto/hidden/openssl/ec.h
+++ /dev/null
@@ -1,161 +0,0 @@
1/* $OpenBSD: ec.h,v 1.12 2025/03/09 15:42:19 tb 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_EC_H
19#define _LIBCRYPTO_EC_H
20
21#ifndef _MSC_VER
22#include_next <openssl/ec.h>
23#else
24#include "../include/openssl/ec.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(EC_GROUP_free);
29LCRYPTO_USED(EC_GROUP_dup);
30LCRYPTO_USED(EC_GROUP_set_generator);
31LCRYPTO_USED(EC_GROUP_get0_generator);
32LCRYPTO_USED(EC_GROUP_get_order);
33LCRYPTO_USED(EC_GROUP_order_bits);
34LCRYPTO_USED(EC_GROUP_get_cofactor);
35LCRYPTO_USED(EC_GROUP_set_curve_name);
36LCRYPTO_USED(EC_GROUP_get_curve_name);
37LCRYPTO_USED(EC_GROUP_set_asn1_flag);
38LCRYPTO_USED(EC_GROUP_get_asn1_flag);
39LCRYPTO_USED(EC_GROUP_set_point_conversion_form);
40LCRYPTO_USED(EC_GROUP_get_point_conversion_form);
41LCRYPTO_USED(EC_GROUP_get0_seed);
42LCRYPTO_USED(EC_GROUP_get_seed_len);
43LCRYPTO_USED(EC_GROUP_set_seed);
44LCRYPTO_USED(EC_GROUP_set_curve);
45LCRYPTO_USED(EC_GROUP_get_curve);
46LCRYPTO_USED(EC_GROUP_get_degree);
47LCRYPTO_USED(EC_GROUP_check);
48LCRYPTO_USED(EC_GROUP_check_discriminant);
49LCRYPTO_USED(EC_GROUP_cmp);
50LCRYPTO_USED(EC_GROUP_new_curve_GFp);
51LCRYPTO_USED(EC_GROUP_new_by_curve_name);
52LCRYPTO_USED(EC_get_builtin_curves);
53LCRYPTO_USED(EC_curve_nid2nist);
54LCRYPTO_USED(EC_curve_nist2nid);
55LCRYPTO_USED(EC_POINT_new);
56LCRYPTO_USED(EC_POINT_free);
57LCRYPTO_USED(EC_POINT_copy);
58LCRYPTO_USED(EC_POINT_dup);
59LCRYPTO_USED(EC_POINT_set_to_infinity);
60LCRYPTO_USED(EC_POINT_set_affine_coordinates);
61LCRYPTO_USED(EC_POINT_get_affine_coordinates);
62LCRYPTO_USED(EC_POINT_set_compressed_coordinates);
63LCRYPTO_USED(EC_POINT_point2oct);
64LCRYPTO_USED(EC_POINT_oct2point);
65LCRYPTO_USED(EC_POINT_point2bn);
66LCRYPTO_USED(EC_POINT_bn2point);
67LCRYPTO_USED(EC_POINT_point2hex);
68LCRYPTO_USED(EC_POINT_hex2point);
69LCRYPTO_USED(EC_POINT_add);
70LCRYPTO_USED(EC_POINT_dbl);
71LCRYPTO_USED(EC_POINT_invert);
72LCRYPTO_USED(EC_POINT_is_at_infinity);
73LCRYPTO_USED(EC_POINT_is_on_curve);
74LCRYPTO_USED(EC_POINT_cmp);
75LCRYPTO_USED(EC_POINT_make_affine);
76LCRYPTO_USED(EC_POINT_mul);
77LCRYPTO_USED(EC_GROUP_get_basis_type);
78LCRYPTO_USED(d2i_ECPKParameters);
79LCRYPTO_USED(i2d_ECPKParameters);
80LCRYPTO_USED(ECPKParameters_print);
81LCRYPTO_USED(ECPKParameters_print_fp);
82LCRYPTO_USED(EC_KEY_new);
83LCRYPTO_USED(EC_KEY_get_flags);
84LCRYPTO_USED(EC_KEY_set_flags);
85LCRYPTO_USED(EC_KEY_clear_flags);
86LCRYPTO_USED(EC_KEY_new_by_curve_name);
87LCRYPTO_USED(EC_KEY_free);
88LCRYPTO_USED(EC_KEY_copy);
89LCRYPTO_USED(EC_KEY_dup);
90LCRYPTO_USED(EC_KEY_up_ref);
91LCRYPTO_USED(EC_KEY_get0_group);
92LCRYPTO_USED(EC_KEY_set_group);
93LCRYPTO_USED(EC_KEY_get0_private_key);
94LCRYPTO_USED(EC_KEY_set_private_key);
95LCRYPTO_USED(EC_KEY_get0_public_key);
96LCRYPTO_USED(EC_KEY_set_public_key);
97LCRYPTO_USED(EC_KEY_get_enc_flags);
98LCRYPTO_USED(EC_KEY_set_enc_flags);
99LCRYPTO_USED(EC_KEY_get_conv_form);
100LCRYPTO_USED(EC_KEY_set_conv_form);
101LCRYPTO_USED(EC_KEY_set_asn1_flag);
102LCRYPTO_USED(EC_KEY_precompute_mult);
103LCRYPTO_USED(EC_KEY_generate_key);
104LCRYPTO_USED(EC_KEY_check_key);
105LCRYPTO_USED(EC_KEY_set_public_key_affine_coordinates);
106LCRYPTO_USED(d2i_ECPrivateKey);
107LCRYPTO_USED(i2d_ECPrivateKey);
108LCRYPTO_USED(d2i_ECParameters);
109LCRYPTO_USED(i2d_ECParameters);
110LCRYPTO_USED(o2i_ECPublicKey);
111LCRYPTO_USED(i2o_ECPublicKey);
112LCRYPTO_USED(ECParameters_print);
113LCRYPTO_USED(EC_KEY_print);
114LCRYPTO_USED(ECParameters_print_fp);
115LCRYPTO_USED(EC_KEY_print_fp);
116LCRYPTO_USED(EC_KEY_set_ex_data);
117LCRYPTO_USED(EC_KEY_get_ex_data);
118LCRYPTO_USED(EC_KEY_OpenSSL);
119LCRYPTO_USED(EC_KEY_get_default_method);
120LCRYPTO_USED(EC_KEY_set_default_method);
121LCRYPTO_USED(EC_KEY_get_method);
122LCRYPTO_USED(EC_KEY_set_method);
123LCRYPTO_USED(EC_KEY_new_method);
124LCRYPTO_USED(ECDH_size);
125LCRYPTO_USED(ECDH_compute_key);
126LCRYPTO_USED(ECDSA_SIG_new);
127LCRYPTO_USED(ECDSA_SIG_free);
128LCRYPTO_USED(i2d_ECDSA_SIG);
129LCRYPTO_USED(d2i_ECDSA_SIG);
130LCRYPTO_USED(ECDSA_SIG_get0_r);
131LCRYPTO_USED(ECDSA_SIG_get0_s);
132LCRYPTO_USED(ECDSA_SIG_get0);
133LCRYPTO_USED(ECDSA_SIG_set0);
134LCRYPTO_USED(ECDSA_size);
135LCRYPTO_USED(ECDSA_do_sign);
136LCRYPTO_USED(ECDSA_do_verify);
137LCRYPTO_USED(ECDSA_sign);
138LCRYPTO_USED(ECDSA_verify);
139LCRYPTO_USED(EC_KEY_METHOD_new);
140LCRYPTO_USED(EC_KEY_METHOD_free);
141LCRYPTO_USED(EC_KEY_METHOD_set_init);
142LCRYPTO_USED(EC_KEY_METHOD_set_keygen);
143LCRYPTO_USED(EC_KEY_METHOD_set_compute_key);
144LCRYPTO_USED(EC_KEY_METHOD_set_sign);
145LCRYPTO_USED(EC_KEY_METHOD_set_verify);
146LCRYPTO_USED(EC_KEY_METHOD_get_init);
147LCRYPTO_USED(EC_KEY_METHOD_get_keygen);
148LCRYPTO_USED(EC_KEY_METHOD_get_compute_key);
149LCRYPTO_USED(EC_KEY_METHOD_get_sign);
150LCRYPTO_USED(EC_KEY_METHOD_get_verify);
151LCRYPTO_USED(ECParameters_dup);
152LCRYPTO_USED(ERR_load_EC_strings);
153LCRYPTO_UNUSED(EC_GROUP_clear_free);
154LCRYPTO_UNUSED(EC_GROUP_set_curve_GFp);
155LCRYPTO_UNUSED(EC_GROUP_get_curve_GFp);
156LCRYPTO_UNUSED(EC_POINT_clear_free);
157LCRYPTO_UNUSED(EC_POINT_set_affine_coordinates_GFp);
158LCRYPTO_UNUSED(EC_POINT_get_affine_coordinates_GFp);
159LCRYPTO_UNUSED(EC_POINT_set_compressed_coordinates_GFp);
160
161#endif /* _LIBCRYPTO_EC_H */
diff --git a/src/lib/libcrypto/hidden/openssl/engine.h b/src/lib/libcrypto/hidden/openssl/engine.h
deleted file mode 100644
index 78334779b1..0000000000
--- a/src/lib/libcrypto/hidden/openssl/engine.h
+++ /dev/null
@@ -1,48 +0,0 @@
1/* $OpenBSD: engine.h,v 1.1 2024/03/27 06:08:45 tb Exp $ */
2/*
3 * Copyright (c) 2024 Theo Buehler <tb@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_ENGINE_H
19#define _LIBCRYPTO_ENGINE_H
20
21#ifndef _MSC_VER
22#include_next <openssl/engine.h>
23#else
24#include "../include/openssl/engine.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(ENGINE_load_builtin_engines);
29LCRYPTO_USED(ENGINE_load_dynamic);
30LCRYPTO_USED(ENGINE_load_openssl);
31LCRYPTO_USED(ENGINE_register_all_complete);
32LCRYPTO_USED(ENGINE_cleanup);
33LCRYPTO_USED(ENGINE_new);
34LCRYPTO_USED(ENGINE_free);
35LCRYPTO_USED(ENGINE_init);
36LCRYPTO_USED(ENGINE_finish);
37LCRYPTO_USED(ENGINE_by_id);
38LCRYPTO_USED(ENGINE_get_id);
39LCRYPTO_USED(ENGINE_get_name);
40LCRYPTO_USED(ENGINE_set_default);
41LCRYPTO_USED(ENGINE_get_default_RSA);
42LCRYPTO_USED(ENGINE_set_default_RSA);
43LCRYPTO_USED(ENGINE_ctrl_cmd);
44LCRYPTO_USED(ENGINE_ctrl_cmd_string);
45LCRYPTO_USED(ENGINE_load_private_key);
46LCRYPTO_USED(ENGINE_load_public_key);
47
48#endif /* _LIBCRYPTO_ENGINE_H */
diff --git a/src/lib/libcrypto/hidden/openssl/err.h b/src/lib/libcrypto/hidden/openssl/err.h
deleted file mode 100644
index 026c18a545..0000000000
--- a/src/lib/libcrypto/hidden/openssl/err.h
+++ /dev/null
@@ -1,60 +0,0 @@
1/* $OpenBSD: err.h,v 1.7 2024/08/31 10:09:15 tb 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_ERR_H
19#define _LIBCRYPTO_ERR_H
20
21#ifndef _MSC_VER
22#include_next <openssl/err.h>
23#else
24#include "../include/openssl/err.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(ERR_put_error);
29LCRYPTO_USED(ERR_set_error_data);
30LCRYPTO_USED(ERR_get_error);
31LCRYPTO_USED(ERR_get_error_line);
32LCRYPTO_USED(ERR_get_error_line_data);
33LCRYPTO_USED(ERR_peek_error);
34LCRYPTO_USED(ERR_peek_error_line);
35LCRYPTO_USED(ERR_peek_error_line_data);
36LCRYPTO_USED(ERR_peek_last_error);
37LCRYPTO_USED(ERR_peek_last_error_line);
38LCRYPTO_USED(ERR_peek_last_error_line_data);
39LCRYPTO_USED(ERR_clear_error);
40LCRYPTO_USED(ERR_error_string);
41LCRYPTO_USED(ERR_error_string_n);
42LCRYPTO_USED(ERR_lib_error_string);
43LCRYPTO_USED(ERR_func_error_string);
44LCRYPTO_USED(ERR_reason_error_string);
45LCRYPTO_USED(ERR_print_errors_cb);
46LCRYPTO_USED(ERR_print_errors_fp);
47LCRYPTO_USED(ERR_print_errors);
48LCRYPTO_USED(ERR_asprintf_error_data);
49LCRYPTO_USED(ERR_load_strings);
50LCRYPTO_USED(ERR_unload_strings);
51LCRYPTO_USED(ERR_load_ERR_strings);
52LCRYPTO_USED(ERR_load_crypto_strings);
53LCRYPTO_USED(ERR_free_strings);
54LCRYPTO_USED(ERR_remove_thread_state);
55LCRYPTO_USED(ERR_remove_state);
56LCRYPTO_USED(ERR_get_next_error_library);
57LCRYPTO_USED(ERR_set_mark);
58LCRYPTO_USED(ERR_pop_to_mark);
59
60#endif /* _LIBCRYPTO_ERR_H */
diff --git a/src/lib/libcrypto/hidden/openssl/evp.h b/src/lib/libcrypto/hidden/openssl/evp.h
deleted file mode 100644
index 644ba683a5..0000000000
--- a/src/lib/libcrypto/hidden/openssl/evp.h
+++ /dev/null
@@ -1,379 +0,0 @@
1/* $OpenBSD: evp.h,v 1.6 2024/08/31 10:38:49 tb Exp $ */
2/*
3 * Copyright (c) 2024 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_EVP_H
19#define _LIBCRYPTO_EVP_H
20
21#ifndef _MSC_VER
22#include_next <openssl/evp.h>
23#else
24#include "../include/openssl/evp.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(EVP_MD_type);
29LCRYPTO_USED(EVP_MD_pkey_type);
30LCRYPTO_USED(EVP_MD_size);
31LCRYPTO_USED(EVP_MD_block_size);
32LCRYPTO_USED(EVP_MD_flags);
33LCRYPTO_USED(EVP_MD_CTX_md);
34LCRYPTO_USED(EVP_MD_CTX_md_data);
35LCRYPTO_USED(EVP_MD_CTX_pkey_ctx);
36LCRYPTO_USED(EVP_MD_CTX_set_pkey_ctx);
37LCRYPTO_USED(EVP_CIPHER_nid);
38LCRYPTO_USED(EVP_CIPHER_block_size);
39LCRYPTO_USED(EVP_CIPHER_key_length);
40LCRYPTO_USED(EVP_CIPHER_iv_length);
41LCRYPTO_USED(EVP_CIPHER_flags);
42LCRYPTO_USED(EVP_CIPHER_CTX_cipher);
43LCRYPTO_USED(EVP_CIPHER_CTX_encrypting);
44LCRYPTO_USED(EVP_CIPHER_CTX_nid);
45LCRYPTO_USED(EVP_CIPHER_CTX_block_size);
46LCRYPTO_USED(EVP_CIPHER_CTX_key_length);
47LCRYPTO_USED(EVP_CIPHER_CTX_iv_length);
48LCRYPTO_USED(EVP_CIPHER_CTX_get_iv);
49LCRYPTO_USED(EVP_CIPHER_CTX_set_iv);
50LCRYPTO_USED(EVP_CIPHER_CTX_copy);
51LCRYPTO_USED(EVP_CIPHER_CTX_get_app_data);
52LCRYPTO_USED(EVP_CIPHER_CTX_set_app_data);
53LCRYPTO_USED(EVP_CIPHER_CTX_get_cipher_data);
54LCRYPTO_USED(EVP_CIPHER_CTX_set_cipher_data);
55LCRYPTO_USED(EVP_CIPHER_CTX_buf_noconst);
56LCRYPTO_USED(EVP_CIPHER_CTX_flags);
57LCRYPTO_USED(EVP_CIPHER_meth_new);
58LCRYPTO_USED(EVP_CIPHER_meth_dup);
59LCRYPTO_USED(EVP_CIPHER_meth_free);
60LCRYPTO_USED(EVP_CIPHER_meth_set_iv_length);
61LCRYPTO_USED(EVP_CIPHER_meth_set_flags);
62LCRYPTO_USED(EVP_CIPHER_meth_set_impl_ctx_size);
63LCRYPTO_USED(EVP_CIPHER_meth_set_init);
64LCRYPTO_USED(EVP_CIPHER_meth_set_do_cipher);
65LCRYPTO_USED(EVP_CIPHER_meth_set_cleanup);
66LCRYPTO_USED(EVP_CIPHER_meth_set_set_asn1_params);
67LCRYPTO_USED(EVP_CIPHER_meth_set_get_asn1_params);
68LCRYPTO_USED(EVP_CIPHER_meth_set_ctrl);
69LCRYPTO_USED(EVP_PKEY_new_raw_private_key);
70LCRYPTO_USED(EVP_PKEY_new_raw_public_key);
71LCRYPTO_USED(EVP_PKEY_get_raw_private_key);
72LCRYPTO_USED(EVP_PKEY_get_raw_public_key);
73LCRYPTO_USED(EVP_Cipher);
74LCRYPTO_USED(EVP_MD_CTX_new);
75LCRYPTO_USED(EVP_MD_CTX_free);
76LCRYPTO_USED(EVP_MD_CTX_reset);
77LCRYPTO_USED(EVP_MD_CTX_create);
78LCRYPTO_USED(EVP_MD_CTX_destroy);
79LCRYPTO_USED(EVP_MD_CTX_cleanup);
80LCRYPTO_USED(EVP_MD_CTX_copy_ex);
81LCRYPTO_USED(EVP_MD_CTX_set_flags);
82LCRYPTO_USED(EVP_MD_CTX_clear_flags);
83LCRYPTO_USED(EVP_MD_CTX_ctrl);
84LCRYPTO_USED(EVP_MD_CTX_test_flags);
85LCRYPTO_USED(EVP_DigestInit_ex);
86LCRYPTO_USED(EVP_DigestUpdate);
87LCRYPTO_USED(EVP_DigestFinal_ex);
88LCRYPTO_USED(EVP_Digest);
89LCRYPTO_USED(EVP_MD_CTX_copy);
90LCRYPTO_USED(EVP_DigestInit);
91LCRYPTO_USED(EVP_DigestFinal);
92LCRYPTO_USED(EVP_read_pw_string);
93LCRYPTO_USED(EVP_read_pw_string_min);
94LCRYPTO_USED(EVP_set_pw_prompt);
95LCRYPTO_USED(EVP_get_pw_prompt);
96LCRYPTO_USED(EVP_BytesToKey);
97LCRYPTO_USED(EVP_CIPHER_CTX_set_flags);
98LCRYPTO_USED(EVP_CIPHER_CTX_clear_flags);
99LCRYPTO_USED(EVP_CIPHER_CTX_test_flags);
100LCRYPTO_USED(EVP_EncryptInit);
101LCRYPTO_USED(EVP_EncryptInit_ex);
102LCRYPTO_USED(EVP_EncryptUpdate);
103LCRYPTO_USED(EVP_EncryptFinal_ex);
104LCRYPTO_USED(EVP_DecryptInit);
105LCRYPTO_USED(EVP_DecryptInit_ex);
106LCRYPTO_USED(EVP_DecryptUpdate);
107LCRYPTO_USED(EVP_DecryptFinal_ex);
108LCRYPTO_USED(EVP_CipherInit);
109LCRYPTO_USED(EVP_CipherInit_ex);
110LCRYPTO_USED(EVP_CipherUpdate);
111LCRYPTO_USED(EVP_CipherFinal_ex);
112LCRYPTO_USED(EVP_SignFinal);
113LCRYPTO_USED(EVP_VerifyFinal);
114LCRYPTO_USED(EVP_DigestSignInit);
115LCRYPTO_USED(EVP_DigestSignFinal);
116LCRYPTO_USED(EVP_DigestSign);
117LCRYPTO_USED(EVP_DigestVerifyInit);
118LCRYPTO_USED(EVP_DigestVerifyFinal);
119LCRYPTO_USED(EVP_DigestVerify);
120LCRYPTO_USED(EVP_OpenInit);
121LCRYPTO_USED(EVP_OpenFinal);
122LCRYPTO_USED(EVP_SealInit);
123LCRYPTO_USED(EVP_SealFinal);
124LCRYPTO_USED(EVP_ENCODE_CTX_new);
125LCRYPTO_USED(EVP_ENCODE_CTX_free);
126LCRYPTO_USED(EVP_EncodeInit);
127LCRYPTO_USED(EVP_EncodeUpdate);
128LCRYPTO_USED(EVP_EncodeFinal);
129LCRYPTO_USED(EVP_EncodeBlock);
130LCRYPTO_USED(EVP_DecodeInit);
131LCRYPTO_USED(EVP_DecodeUpdate);
132LCRYPTO_USED(EVP_DecodeFinal);
133LCRYPTO_USED(EVP_DecodeBlock);
134LCRYPTO_USED(EVP_CIPHER_CTX_cleanup);
135LCRYPTO_USED(EVP_CIPHER_CTX_new);
136LCRYPTO_USED(EVP_CIPHER_CTX_free);
137LCRYPTO_USED(EVP_CIPHER_CTX_reset);
138LCRYPTO_USED(EVP_CIPHER_CTX_set_key_length);
139LCRYPTO_USED(EVP_CIPHER_CTX_set_padding);
140LCRYPTO_USED(EVP_CIPHER_CTX_ctrl);
141LCRYPTO_USED(EVP_CIPHER_CTX_rand_key);
142LCRYPTO_USED(BIO_f_md);
143LCRYPTO_USED(BIO_f_base64);
144LCRYPTO_USED(BIO_f_cipher);
145LCRYPTO_USED(BIO_set_cipher);
146LCRYPTO_USED(EVP_md_null);
147LCRYPTO_USED(EVP_md4);
148LCRYPTO_USED(EVP_md5);
149LCRYPTO_USED(EVP_md5_sha1);
150LCRYPTO_USED(EVP_sha1);
151LCRYPTO_USED(EVP_sha224);
152LCRYPTO_USED(EVP_sha256);
153LCRYPTO_USED(EVP_sha384);
154LCRYPTO_USED(EVP_sha512);
155LCRYPTO_USED(EVP_sha512_224);
156LCRYPTO_USED(EVP_sha512_256);
157LCRYPTO_USED(EVP_sha3_224);
158LCRYPTO_USED(EVP_sha3_256);
159LCRYPTO_USED(EVP_sha3_384);
160LCRYPTO_USED(EVP_sha3_512);
161LCRYPTO_USED(EVP_sm3);
162LCRYPTO_USED(EVP_ripemd160);
163LCRYPTO_USED(EVP_enc_null);
164LCRYPTO_USED(EVP_des_ecb);
165LCRYPTO_USED(EVP_des_ede);
166LCRYPTO_USED(EVP_des_ede3);
167LCRYPTO_USED(EVP_des_ede_ecb);
168LCRYPTO_USED(EVP_des_ede3_ecb);
169LCRYPTO_USED(EVP_des_cfb64);
170LCRYPTO_USED(EVP_des_cfb1);
171LCRYPTO_USED(EVP_des_cfb8);
172LCRYPTO_USED(EVP_des_ede_cfb64);
173LCRYPTO_USED(EVP_des_ede3_cfb64);
174LCRYPTO_USED(EVP_des_ede3_cfb1);
175LCRYPTO_USED(EVP_des_ede3_cfb8);
176LCRYPTO_USED(EVP_des_ofb);
177LCRYPTO_USED(EVP_des_ede_ofb);
178LCRYPTO_USED(EVP_des_ede3_ofb);
179LCRYPTO_USED(EVP_des_cbc);
180LCRYPTO_USED(EVP_des_ede_cbc);
181LCRYPTO_USED(EVP_des_ede3_cbc);
182LCRYPTO_USED(EVP_desx_cbc);
183LCRYPTO_USED(EVP_rc4);
184LCRYPTO_USED(EVP_rc4_40);
185LCRYPTO_USED(EVP_idea_ecb);
186LCRYPTO_USED(EVP_idea_cfb64);
187LCRYPTO_USED(EVP_idea_ofb);
188LCRYPTO_USED(EVP_idea_cbc);
189LCRYPTO_USED(EVP_rc2_ecb);
190LCRYPTO_USED(EVP_rc2_cbc);
191LCRYPTO_USED(EVP_rc2_40_cbc);
192LCRYPTO_USED(EVP_rc2_64_cbc);
193LCRYPTO_USED(EVP_rc2_cfb64);
194LCRYPTO_USED(EVP_rc2_ofb);
195LCRYPTO_USED(EVP_bf_ecb);
196LCRYPTO_USED(EVP_bf_cbc);
197LCRYPTO_USED(EVP_bf_cfb64);
198LCRYPTO_USED(EVP_bf_ofb);
199LCRYPTO_USED(EVP_cast5_ecb);
200LCRYPTO_USED(EVP_cast5_cbc);
201LCRYPTO_USED(EVP_cast5_cfb64);
202LCRYPTO_USED(EVP_cast5_ofb);
203LCRYPTO_USED(EVP_aes_128_ecb);
204LCRYPTO_USED(EVP_aes_128_cbc);
205LCRYPTO_USED(EVP_aes_128_cfb1);
206LCRYPTO_USED(EVP_aes_128_cfb8);
207LCRYPTO_USED(EVP_aes_128_cfb128);
208LCRYPTO_USED(EVP_aes_128_ofb);
209LCRYPTO_USED(EVP_aes_128_ctr);
210LCRYPTO_USED(EVP_aes_128_ccm);
211LCRYPTO_USED(EVP_aes_128_gcm);
212LCRYPTO_USED(EVP_aes_128_wrap);
213LCRYPTO_USED(EVP_aes_128_xts);
214LCRYPTO_USED(EVP_aes_192_ecb);
215LCRYPTO_USED(EVP_aes_192_cbc);
216LCRYPTO_USED(EVP_aes_192_cfb1);
217LCRYPTO_USED(EVP_aes_192_cfb8);
218LCRYPTO_USED(EVP_aes_192_cfb128);
219LCRYPTO_USED(EVP_aes_192_ofb);
220LCRYPTO_USED(EVP_aes_192_ctr);
221LCRYPTO_USED(EVP_aes_192_ccm);
222LCRYPTO_USED(EVP_aes_192_gcm);
223LCRYPTO_USED(EVP_aes_192_wrap);
224LCRYPTO_USED(EVP_aes_256_ecb);
225LCRYPTO_USED(EVP_aes_256_cbc);
226LCRYPTO_USED(EVP_aes_256_cfb1);
227LCRYPTO_USED(EVP_aes_256_cfb8);
228LCRYPTO_USED(EVP_aes_256_cfb128);
229LCRYPTO_USED(EVP_aes_256_ofb);
230LCRYPTO_USED(EVP_aes_256_ctr);
231LCRYPTO_USED(EVP_aes_256_ccm);
232LCRYPTO_USED(EVP_aes_256_gcm);
233LCRYPTO_USED(EVP_aes_256_wrap);
234LCRYPTO_USED(EVP_aes_256_xts);
235LCRYPTO_USED(EVP_chacha20_poly1305);
236LCRYPTO_USED(EVP_camellia_128_ecb);
237LCRYPTO_USED(EVP_camellia_128_cbc);
238LCRYPTO_USED(EVP_camellia_128_cfb1);
239LCRYPTO_USED(EVP_camellia_128_cfb8);
240LCRYPTO_USED(EVP_camellia_128_cfb128);
241LCRYPTO_USED(EVP_camellia_128_ofb);
242LCRYPTO_USED(EVP_camellia_192_ecb);
243LCRYPTO_USED(EVP_camellia_192_cbc);
244LCRYPTO_USED(EVP_camellia_192_cfb1);
245LCRYPTO_USED(EVP_camellia_192_cfb8);
246LCRYPTO_USED(EVP_camellia_192_cfb128);
247LCRYPTO_USED(EVP_camellia_192_ofb);
248LCRYPTO_USED(EVP_camellia_256_ecb);
249LCRYPTO_USED(EVP_camellia_256_cbc);
250LCRYPTO_USED(EVP_camellia_256_cfb1);
251LCRYPTO_USED(EVP_camellia_256_cfb8);
252LCRYPTO_USED(EVP_camellia_256_cfb128);
253LCRYPTO_USED(EVP_camellia_256_ofb);
254LCRYPTO_USED(EVP_chacha20);
255LCRYPTO_USED(EVP_sm4_ecb);
256LCRYPTO_USED(EVP_sm4_cbc);
257LCRYPTO_USED(EVP_sm4_cfb128);
258LCRYPTO_USED(EVP_sm4_ofb);
259LCRYPTO_USED(EVP_sm4_ctr);
260LCRYPTO_USED(OPENSSL_add_all_algorithms_noconf);
261LCRYPTO_USED(OPENSSL_add_all_algorithms_conf);
262LCRYPTO_USED(OpenSSL_add_all_ciphers);
263LCRYPTO_USED(OpenSSL_add_all_digests);
264LCRYPTO_USED(EVP_get_cipherbyname);
265LCRYPTO_USED(EVP_get_digestbyname);
266LCRYPTO_USED(EVP_cleanup);
267LCRYPTO_USED(EVP_CIPHER_do_all);
268LCRYPTO_USED(EVP_CIPHER_do_all_sorted);
269LCRYPTO_USED(EVP_MD_do_all);
270LCRYPTO_USED(EVP_MD_do_all_sorted);
271LCRYPTO_USED(EVP_PKEY_decrypt_old);
272LCRYPTO_USED(EVP_PKEY_encrypt_old);
273LCRYPTO_USED(EVP_PKEY_type);
274LCRYPTO_USED(EVP_PKEY_id);
275LCRYPTO_USED(EVP_PKEY_base_id);
276LCRYPTO_USED(EVP_PKEY_bits);
277LCRYPTO_USED(EVP_PKEY_security_bits);
278LCRYPTO_USED(EVP_PKEY_size);
279LCRYPTO_USED(EVP_PKEY_set_type);
280LCRYPTO_USED(EVP_PKEY_set_type_str);
281LCRYPTO_USED(EVP_PKEY_assign);
282LCRYPTO_USED(EVP_PKEY_get0);
283LCRYPTO_USED(EVP_PKEY_get0_hmac);
284LCRYPTO_USED(EVP_PKEY_get0_RSA);
285LCRYPTO_USED(EVP_PKEY_get1_RSA);
286LCRYPTO_USED(EVP_PKEY_set1_RSA);
287LCRYPTO_USED(EVP_PKEY_get0_DSA);
288LCRYPTO_USED(EVP_PKEY_get1_DSA);
289LCRYPTO_USED(EVP_PKEY_set1_DSA);
290LCRYPTO_USED(EVP_PKEY_get0_DH);
291LCRYPTO_USED(EVP_PKEY_get1_DH);
292LCRYPTO_USED(EVP_PKEY_set1_DH);
293LCRYPTO_USED(EVP_PKEY_get0_EC_KEY);
294LCRYPTO_USED(EVP_PKEY_get1_EC_KEY);
295LCRYPTO_USED(EVP_PKEY_set1_EC_KEY);
296LCRYPTO_USED(EVP_PKEY_new);
297LCRYPTO_USED(EVP_PKEY_free);
298LCRYPTO_USED(EVP_PKEY_up_ref);
299LCRYPTO_USED(d2i_PublicKey);
300LCRYPTO_USED(i2d_PublicKey);
301LCRYPTO_USED(d2i_PrivateKey);
302LCRYPTO_USED(d2i_AutoPrivateKey);
303LCRYPTO_USED(i2d_PrivateKey);
304LCRYPTO_USED(EVP_PKEY_copy_parameters);
305LCRYPTO_USED(EVP_PKEY_missing_parameters);
306LCRYPTO_USED(EVP_PKEY_save_parameters);
307LCRYPTO_USED(EVP_PKEY_cmp_parameters);
308LCRYPTO_USED(EVP_PKEY_cmp);
309LCRYPTO_USED(EVP_PKEY_print_public);
310LCRYPTO_USED(EVP_PKEY_print_private);
311LCRYPTO_USED(EVP_PKEY_print_params);
312LCRYPTO_USED(EVP_PKEY_get_default_digest_nid);
313LCRYPTO_USED(EVP_CIPHER_type);
314LCRYPTO_USED(PKCS5_PBKDF2_HMAC_SHA1);
315LCRYPTO_USED(PKCS5_PBKDF2_HMAC);
316LCRYPTO_USED(EVP_PKEY_asn1_get_count);
317LCRYPTO_USED(EVP_PKEY_asn1_get0);
318LCRYPTO_USED(EVP_PKEY_asn1_find);
319LCRYPTO_USED(EVP_PKEY_asn1_find_str);
320LCRYPTO_USED(EVP_PKEY_asn1_get0_info);
321LCRYPTO_USED(EVP_PKEY_get0_asn1);
322LCRYPTO_USED(EVP_PKEY_CTX_new);
323LCRYPTO_USED(EVP_PKEY_CTX_new_id);
324LCRYPTO_USED(EVP_PKEY_CTX_dup);
325LCRYPTO_USED(EVP_PKEY_CTX_free);
326LCRYPTO_USED(EVP_PKEY_CTX_ctrl);
327LCRYPTO_USED(EVP_PKEY_CTX_ctrl_str);
328LCRYPTO_USED(EVP_PKEY_CTX_get_operation);
329LCRYPTO_USED(EVP_PKEY_CTX_set0_keygen_info);
330LCRYPTO_USED(EVP_PKEY_new_mac_key);
331LCRYPTO_USED(EVP_PKEY_new_CMAC_key);
332LCRYPTO_USED(EVP_PKEY_CTX_set_data);
333LCRYPTO_USED(EVP_PKEY_CTX_get_data);
334LCRYPTO_USED(EVP_PKEY_CTX_get0_pkey);
335LCRYPTO_USED(EVP_PKEY_CTX_get0_peerkey);
336LCRYPTO_USED(EVP_PKEY_CTX_set_app_data);
337LCRYPTO_USED(EVP_PKEY_CTX_get_app_data);
338LCRYPTO_USED(EVP_PKEY_sign_init);
339LCRYPTO_USED(EVP_PKEY_sign);
340LCRYPTO_USED(EVP_PKEY_verify_init);
341LCRYPTO_USED(EVP_PKEY_verify);
342LCRYPTO_USED(EVP_PKEY_verify_recover_init);
343LCRYPTO_USED(EVP_PKEY_verify_recover);
344LCRYPTO_USED(EVP_PKEY_encrypt_init);
345LCRYPTO_USED(EVP_PKEY_encrypt);
346LCRYPTO_USED(EVP_PKEY_decrypt_init);
347LCRYPTO_USED(EVP_PKEY_decrypt);
348LCRYPTO_USED(EVP_PKEY_derive_init);
349LCRYPTO_USED(EVP_PKEY_derive_set_peer);
350LCRYPTO_USED(EVP_PKEY_derive);
351LCRYPTO_USED(EVP_PKEY_paramgen_init);
352LCRYPTO_USED(EVP_PKEY_paramgen);
353LCRYPTO_USED(EVP_PKEY_keygen_init);
354LCRYPTO_USED(EVP_PKEY_keygen);
355LCRYPTO_USED(EVP_PKEY_CTX_set_cb);
356LCRYPTO_USED(EVP_PKEY_CTX_get_cb);
357LCRYPTO_USED(EVP_PKEY_CTX_get_keygen_info);
358LCRYPTO_USED(EVP_aead_aes_128_gcm);
359LCRYPTO_USED(EVP_aead_aes_256_gcm);
360LCRYPTO_USED(EVP_aead_chacha20_poly1305);
361LCRYPTO_USED(EVP_aead_xchacha20_poly1305);
362LCRYPTO_USED(EVP_AEAD_key_length);
363LCRYPTO_USED(EVP_AEAD_nonce_length);
364LCRYPTO_USED(EVP_AEAD_max_overhead);
365LCRYPTO_USED(EVP_AEAD_max_tag_len);
366LCRYPTO_USED(EVP_AEAD_CTX_new);
367LCRYPTO_USED(EVP_AEAD_CTX_free);
368LCRYPTO_USED(EVP_AEAD_CTX_init);
369LCRYPTO_USED(EVP_AEAD_CTX_cleanup);
370LCRYPTO_USED(EVP_AEAD_CTX_seal);
371LCRYPTO_USED(EVP_AEAD_CTX_open);
372LCRYPTO_USED(ERR_load_EVP_strings);
373LCRYPTO_UNUSED(EVP_MD_CTX_init);
374LCRYPTO_UNUSED(EVP_EncryptFinal);
375LCRYPTO_UNUSED(EVP_DecryptFinal);
376LCRYPTO_UNUSED(EVP_CipherFinal);
377LCRYPTO_UNUSED(EVP_CIPHER_CTX_init);
378
379#endif /* _LIBCRYPTO_EVP_H */
diff --git a/src/lib/libcrypto/hidden/openssl/hkdf.h b/src/lib/libcrypto/hidden/openssl/hkdf.h
deleted file mode 100644
index 0c01cf3e6b..0000000000
--- a/src/lib/libcrypto/hidden/openssl/hkdf.h
+++ /dev/null
@@ -1,32 +0,0 @@
1/* $OpenBSD: hkdf.h,v 1.2 2023/07/07 19:37:54 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_HKDF_H
19#define _LIBCRYPTO_HKDF_H
20
21#ifndef _MSC_VER
22#include_next <openssl/hkdf.h>
23#else
24#include "../include/openssl/hkdf.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(HKDF);
29LCRYPTO_USED(HKDF_extract);
30LCRYPTO_USED(HKDF_expand);
31
32#endif /* _LIBCRYPTO_HKDF_H */
diff --git a/src/lib/libcrypto/hidden/openssl/hmac.h b/src/lib/libcrypto/hidden/openssl/hmac.h
deleted file mode 100644
index ef8d2187bb..0000000000
--- a/src/lib/libcrypto/hidden/openssl/hmac.h
+++ /dev/null
@@ -1,39 +0,0 @@
1/* $OpenBSD: hmac.h,v 1.3 2024/08/31 10:42:21 tb Exp $ */
2/*
3 * Copyright (c) 2016 Philip Guenther <guenther@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_HMAC_H_
19#define _LIBCRYPTO_HMAC_H_
20
21#ifndef _MSC_VER
22#include_next <openssl/hmac.h>
23#else
24#include "../include/openssl/hmac.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(HMAC_CTX_new);
29LCRYPTO_USED(HMAC_CTX_free);
30LCRYPTO_UNUSED(HMAC_CTX_reset);
31LCRYPTO_USED(HMAC_Init_ex);
32LCRYPTO_USED(HMAC_Update);
33LCRYPTO_USED(HMAC_Final);
34LCRYPTO_USED(HMAC);
35LCRYPTO_USED(HMAC_CTX_copy);
36LCRYPTO_USED(HMAC_CTX_set_flags);
37LCRYPTO_USED(HMAC_CTX_get_md);
38
39#endif /* _LIBCRYPTO_HMAC_H_ */
diff --git a/src/lib/libcrypto/hidden/openssl/idea.h b/src/lib/libcrypto/hidden/openssl/idea.h
deleted file mode 100644
index 93b20a9cc6..0000000000
--- a/src/lib/libcrypto/hidden/openssl/idea.h
+++ /dev/null
@@ -1,36 +0,0 @@
1/* $OpenBSD: idea.h,v 1.2 2023/07/29 03:13:38 tb 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_IDEA_H
19#define _LIBCRYPTO_IDEA_H
20
21#ifndef _MSC_VER
22#include_next <openssl/idea.h>
23#else
24#include "../include/openssl/idea.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(idea_ecb_encrypt);
29LCRYPTO_USED(idea_set_encrypt_key);
30LCRYPTO_USED(idea_set_decrypt_key);
31LCRYPTO_USED(idea_cbc_encrypt);
32LCRYPTO_USED(idea_cfb64_encrypt);
33LCRYPTO_USED(idea_ofb64_encrypt);
34LCRYPTO_USED(idea_encrypt);
35
36#endif /* _LIBCRYPTO_IDEA_H */
diff --git a/src/lib/libcrypto/hidden/openssl/lhash.h b/src/lib/libcrypto/hidden/openssl/lhash.h
deleted file mode 100644
index 2cf5b2dc5a..0000000000
--- a/src/lib/libcrypto/hidden/openssl/lhash.h
+++ /dev/null
@@ -1,39 +0,0 @@
1/* $OpenBSD: lhash.h,v 1.4 2024/03/02 11:11:11 tb 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_LHASH_H
19#define _LIBCRYPTO_LHASH_H
20
21#ifndef _MSC_VER
22#include_next <openssl/lhash.h>
23#else
24#include "../include/openssl/lhash.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(lh_new);
29LCRYPTO_USED(lh_free);
30LCRYPTO_USED(lh_error);
31LCRYPTO_USED(lh_insert);
32LCRYPTO_USED(lh_delete);
33LCRYPTO_USED(lh_retrieve);
34LCRYPTO_USED(lh_doall);
35LCRYPTO_USED(lh_doall_arg);
36LCRYPTO_USED(lh_strhash);
37LCRYPTO_USED(lh_num_items);
38
39#endif /* _LIBCRYPTO_LHASH_H */
diff --git a/src/lib/libcrypto/hidden/openssl/md4.h b/src/lib/libcrypto/hidden/openssl/md4.h
deleted file mode 100644
index c5fc22c47e..0000000000
--- a/src/lib/libcrypto/hidden/openssl/md4.h
+++ /dev/null
@@ -1,34 +0,0 @@
1/* $OpenBSD: md4.h,v 1.1 2023/07/08 10:45:57 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_MD4_H
19#define _LIBCRYPTO_MD4_H
20
21#ifndef _MSC_VER
22#include_next <openssl/md4.h>
23#else
24#include "../include/openssl/md4.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(MD4_Init);
29LCRYPTO_USED(MD4_Update);
30LCRYPTO_USED(MD4_Final);
31LCRYPTO_USED(MD4);
32LCRYPTO_USED(MD4_Transform);
33
34#endif /* _LIBCRYPTO_MD4_H */
diff --git a/src/lib/libcrypto/hidden/openssl/md5.h b/src/lib/libcrypto/hidden/openssl/md5.h
deleted file mode 100644
index 3dfade7f7c..0000000000
--- a/src/lib/libcrypto/hidden/openssl/md5.h
+++ /dev/null
@@ -1,34 +0,0 @@
1/* $OpenBSD: md5.h,v 1.1 2023/07/08 10:45:57 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_MD5_H
19#define _LIBCRYPTO_MD5_H
20
21#ifndef _MSC_VER
22#include_next <openssl/md5.h>
23#else
24#include "../include/openssl/md5.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(MD5_Init);
29LCRYPTO_USED(MD5_Update);
30LCRYPTO_USED(MD5_Final);
31LCRYPTO_USED(MD5);
32LCRYPTO_USED(MD5_Transform);
33
34#endif /* _LIBCRYPTO_MD5_H */
diff --git a/src/lib/libcrypto/hidden/openssl/mlkem.h b/src/lib/libcrypto/hidden/openssl/mlkem.h
deleted file mode 100644
index 8cd80eb3af..0000000000
--- a/src/lib/libcrypto/hidden/openssl/mlkem.h
+++ /dev/null
@@ -1,49 +0,0 @@
1/* $OpenBSD: mlkem.h,v 1.4 2024/12/20 15:10:31 tb Exp $ */
2/*
3 * Copyright (c) 2024 Bob Beck <beck@obtuse.com>
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_MLKEM_H
19#define _LIBCRYPTO_MLKEM_H
20
21/* Undo when making public */
22#ifdef LIBRESSL_HAS_MLKEM
23
24#ifndef _MSC_VER
25#include_next <openssl/mlkem.h>
26#else
27#include "../include/openssl/mlkem.h"
28#endif
29#include "crypto_namespace.h"
30
31LCRYPTO_USED(MLKEM768_generate_key);
32LCRYPTO_USED(MLKEM768_public_from_private);
33LCRYPTO_USED(MLKEM768_encap);
34LCRYPTO_USED(MLKEM768_decap);
35LCRYPTO_USED(MLKEM768_marshal_public_key);
36LCRYPTO_USED(MLKEM768_parse_public_key);
37LCRYPTO_USED(MLKEM768_private_key_from_seed);
38LCRYPTO_USED(MLKEM768_parse_private_key);
39LCRYPTO_USED(MLKEM1024_generate_key);
40LCRYPTO_USED(MLKEM1024_public_from_private);
41LCRYPTO_USED(MLKEM1024_encap);
42LCRYPTO_USED(MLKEM1024_decap);
43LCRYPTO_USED(MLKEM1024_marshal_public_key);
44LCRYPTO_USED(MLKEM1024_parse_public_key);
45LCRYPTO_USED(MLKEM1024_private_key_from_seed);
46LCRYPTO_USED(MLKEM1024_parse_private_key);
47#endif /* LIBRESSL_HAS_MLKEM */
48
49#endif /* _LIBCRYPTO_MLKEM_H */
diff --git a/src/lib/libcrypto/hidden/openssl/modes.h b/src/lib/libcrypto/hidden/openssl/modes.h
deleted file mode 100644
index 4162861beb..0000000000
--- a/src/lib/libcrypto/hidden/openssl/modes.h
+++ /dev/null
@@ -1,57 +0,0 @@
1/* $OpenBSD: modes.h,v 1.1 2023/07/08 14:56:54 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_MODES_H
19#define _LIBCRYPTO_MODES_H
20
21#ifndef _MSC_VER
22#include_next <openssl/modes.h>
23#else
24#include "../include/openssl/modes.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(CRYPTO_cbc128_encrypt);
29LCRYPTO_USED(CRYPTO_cbc128_decrypt);
30LCRYPTO_USED(CRYPTO_ctr128_encrypt);
31LCRYPTO_USED(CRYPTO_ctr128_encrypt_ctr32);
32LCRYPTO_USED(CRYPTO_ofb128_encrypt);
33LCRYPTO_USED(CRYPTO_cfb128_encrypt);
34LCRYPTO_USED(CRYPTO_cfb128_8_encrypt);
35LCRYPTO_USED(CRYPTO_cfb128_1_encrypt);
36LCRYPTO_USED(CRYPTO_gcm128_new);
37LCRYPTO_USED(CRYPTO_gcm128_init);
38LCRYPTO_USED(CRYPTO_gcm128_setiv);
39LCRYPTO_USED(CRYPTO_gcm128_aad);
40LCRYPTO_USED(CRYPTO_gcm128_encrypt);
41LCRYPTO_USED(CRYPTO_gcm128_decrypt);
42LCRYPTO_USED(CRYPTO_gcm128_encrypt_ctr32);
43LCRYPTO_USED(CRYPTO_gcm128_decrypt_ctr32);
44LCRYPTO_USED(CRYPTO_gcm128_finish);
45LCRYPTO_USED(CRYPTO_gcm128_tag);
46LCRYPTO_USED(CRYPTO_gcm128_release);
47LCRYPTO_USED(CRYPTO_ccm128_init);
48LCRYPTO_USED(CRYPTO_ccm128_setiv);
49LCRYPTO_USED(CRYPTO_ccm128_aad);
50LCRYPTO_USED(CRYPTO_ccm128_encrypt);
51LCRYPTO_USED(CRYPTO_ccm128_decrypt);
52LCRYPTO_USED(CRYPTO_ccm128_encrypt_ccm64);
53LCRYPTO_USED(CRYPTO_ccm128_decrypt_ccm64);
54LCRYPTO_USED(CRYPTO_ccm128_tag);
55LCRYPTO_USED(CRYPTO_xts128_encrypt);
56
57#endif /* _LIBCRYPTO_MODES_H */
diff --git a/src/lib/libcrypto/hidden/openssl/objects.h b/src/lib/libcrypto/hidden/openssl/objects.h
deleted file mode 100644
index c2db51a6c9..0000000000
--- a/src/lib/libcrypto/hidden/openssl/objects.h
+++ /dev/null
@@ -1,51 +0,0 @@
1/* $OpenBSD: objects.h,v 1.5 2024/03/02 09:49:45 tb 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_OBJECTS_H
19#define _LIBCRYPTO_OBJECTS_H
20
21#ifndef _MSC_VER
22#include_next <openssl/objects.h>
23#else
24#include "../include/openssl/objects.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(OBJ_NAME_do_all);
29LCRYPTO_USED(OBJ_NAME_do_all_sorted);
30LCRYPTO_USED(OBJ_dup);
31LCRYPTO_USED(OBJ_nid2obj);
32LCRYPTO_USED(OBJ_nid2ln);
33LCRYPTO_USED(OBJ_nid2sn);
34LCRYPTO_USED(OBJ_obj2nid);
35LCRYPTO_USED(OBJ_txt2obj);
36LCRYPTO_USED(OBJ_obj2txt);
37LCRYPTO_USED(OBJ_txt2nid);
38LCRYPTO_USED(OBJ_ln2nid);
39LCRYPTO_USED(OBJ_sn2nid);
40LCRYPTO_USED(OBJ_cmp);
41LCRYPTO_USED(OBJ_new_nid);
42LCRYPTO_USED(OBJ_create);
43LCRYPTO_USED(OBJ_cleanup);
44LCRYPTO_USED(OBJ_create_objects);
45LCRYPTO_USED(OBJ_length);
46LCRYPTO_USED(OBJ_get0_data);
47LCRYPTO_USED(OBJ_find_sigid_algs);
48LCRYPTO_USED(OBJ_find_sigid_by_algs);
49LCRYPTO_USED(ERR_load_OBJ_strings);
50
51#endif /* _LIBCRYPTO_OBJECTS_H */
diff --git a/src/lib/libcrypto/hidden/openssl/ocsp.h b/src/lib/libcrypto/hidden/openssl/ocsp.h
deleted file mode 100644
index fa19c28612..0000000000
--- a/src/lib/libcrypto/hidden/openssl/ocsp.h
+++ /dev/null
@@ -1,208 +0,0 @@
1/* $OpenBSD: ocsp.h,v 1.3 2024/07/08 17:01:54 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_OCSP_H
19#define _LIBCRYPTO_OCSP_H
20
21#ifndef _MSC_VER
22#include_next <openssl/ocsp.h>
23#else
24#include "../include/openssl/ocsp.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(OCSP_RESPID_new);
29LCRYPTO_USED(OCSP_RESPID_free);
30LCRYPTO_USED(d2i_OCSP_RESPID);
31LCRYPTO_USED(i2d_OCSP_RESPID);
32LCRYPTO_USED(OCSP_CERTID_dup);
33LCRYPTO_USED(OCSP_sendreq_bio);
34LCRYPTO_USED(OCSP_sendreq_new);
35LCRYPTO_USED(OCSP_sendreq_nbio);
36LCRYPTO_USED(OCSP_REQ_CTX_free);
37LCRYPTO_USED(OCSP_REQ_CTX_set1_req);
38LCRYPTO_USED(OCSP_REQ_CTX_add1_header);
39LCRYPTO_USED(OCSP_cert_to_id);
40LCRYPTO_USED(OCSP_cert_id_new);
41LCRYPTO_USED(OCSP_request_add0_id);
42LCRYPTO_USED(OCSP_request_add1_nonce);
43LCRYPTO_USED(OCSP_basic_add1_nonce);
44LCRYPTO_USED(OCSP_check_nonce);
45LCRYPTO_USED(OCSP_copy_nonce);
46LCRYPTO_USED(OCSP_request_set1_name);
47LCRYPTO_USED(OCSP_request_add1_cert);
48LCRYPTO_USED(OCSP_request_sign);
49LCRYPTO_USED(OCSP_response_status);
50LCRYPTO_USED(OCSP_response_get1_basic);
51LCRYPTO_USED(OCSP_resp_get0_signature);
52LCRYPTO_USED(OCSP_resp_get0_tbs_sigalg);
53LCRYPTO_USED(OCSP_resp_get0_respdata);
54LCRYPTO_USED(OCSP_resp_get0_signer);
55LCRYPTO_USED(OCSP_resp_count);
56LCRYPTO_USED(OCSP_resp_get0);
57LCRYPTO_USED(OCSP_resp_get0_produced_at);
58LCRYPTO_USED(OCSP_resp_get0_certs);
59LCRYPTO_USED(OCSP_resp_get0_id);
60LCRYPTO_USED(OCSP_resp_find);
61LCRYPTO_USED(OCSP_single_get0_status);
62LCRYPTO_USED(OCSP_resp_find_status);
63LCRYPTO_USED(OCSP_check_validity);
64LCRYPTO_USED(OCSP_request_verify);
65LCRYPTO_USED(OCSP_parse_url);
66LCRYPTO_USED(OCSP_id_issuer_cmp);
67LCRYPTO_USED(OCSP_id_cmp);
68LCRYPTO_USED(OCSP_request_onereq_count);
69LCRYPTO_USED(OCSP_request_onereq_get0);
70LCRYPTO_USED(OCSP_onereq_get0_id);
71LCRYPTO_USED(OCSP_id_get0_info);
72LCRYPTO_USED(OCSP_request_is_signed);
73LCRYPTO_USED(OCSP_response_create);
74LCRYPTO_USED(OCSP_basic_add1_status);
75LCRYPTO_USED(OCSP_basic_add1_cert);
76LCRYPTO_USED(OCSP_basic_sign);
77LCRYPTO_USED(OCSP_crlID_new);
78LCRYPTO_USED(OCSP_accept_responses_new);
79LCRYPTO_USED(OCSP_archive_cutoff_new);
80LCRYPTO_USED(OCSP_url_svcloc_new);
81LCRYPTO_USED(OCSP_REQUEST_get_ext_count);
82LCRYPTO_USED(OCSP_REQUEST_get_ext_by_NID);
83LCRYPTO_USED(OCSP_REQUEST_get_ext_by_OBJ);
84LCRYPTO_USED(OCSP_REQUEST_get_ext_by_critical);
85LCRYPTO_USED(OCSP_REQUEST_get_ext);
86LCRYPTO_USED(OCSP_REQUEST_delete_ext);
87LCRYPTO_USED(OCSP_REQUEST_get1_ext_d2i);
88LCRYPTO_USED(OCSP_REQUEST_add1_ext_i2d);
89LCRYPTO_USED(OCSP_REQUEST_add_ext);
90LCRYPTO_USED(OCSP_ONEREQ_get_ext_count);
91LCRYPTO_USED(OCSP_ONEREQ_get_ext_by_NID);
92LCRYPTO_USED(OCSP_ONEREQ_get_ext_by_OBJ);
93LCRYPTO_USED(OCSP_ONEREQ_get_ext_by_critical);
94LCRYPTO_USED(OCSP_ONEREQ_get_ext);
95LCRYPTO_USED(OCSP_ONEREQ_delete_ext);
96LCRYPTO_USED(OCSP_ONEREQ_get1_ext_d2i);
97LCRYPTO_USED(OCSP_ONEREQ_add1_ext_i2d);
98LCRYPTO_USED(OCSP_ONEREQ_add_ext);
99LCRYPTO_USED(OCSP_BASICRESP_get_ext_count);
100LCRYPTO_USED(OCSP_BASICRESP_get_ext_by_NID);
101LCRYPTO_USED(OCSP_BASICRESP_get_ext_by_OBJ);
102LCRYPTO_USED(OCSP_BASICRESP_get_ext_by_critical);
103LCRYPTO_USED(OCSP_BASICRESP_get_ext);
104LCRYPTO_USED(OCSP_BASICRESP_delete_ext);
105LCRYPTO_USED(OCSP_BASICRESP_get1_ext_d2i);
106LCRYPTO_USED(OCSP_BASICRESP_add1_ext_i2d);
107LCRYPTO_USED(OCSP_BASICRESP_add_ext);
108LCRYPTO_USED(OCSP_SINGLERESP_get_ext_count);
109LCRYPTO_USED(OCSP_SINGLERESP_get_ext_by_NID);
110LCRYPTO_USED(OCSP_SINGLERESP_get_ext_by_OBJ);
111LCRYPTO_USED(OCSP_SINGLERESP_get_ext_by_critical);
112LCRYPTO_USED(OCSP_SINGLERESP_get_ext);
113LCRYPTO_USED(OCSP_SINGLERESP_delete_ext);
114LCRYPTO_USED(OCSP_SINGLERESP_get1_ext_d2i);
115LCRYPTO_USED(OCSP_SINGLERESP_add1_ext_i2d);
116LCRYPTO_USED(OCSP_SINGLERESP_add_ext);
117LCRYPTO_USED(OCSP_SINGLERESP_get0_id);
118LCRYPTO_USED(OCSP_SINGLERESP_new);
119LCRYPTO_USED(OCSP_SINGLERESP_free);
120LCRYPTO_USED(d2i_OCSP_SINGLERESP);
121LCRYPTO_USED(i2d_OCSP_SINGLERESP);
122LCRYPTO_USED(OCSP_CERTSTATUS_new);
123LCRYPTO_USED(OCSP_CERTSTATUS_free);
124LCRYPTO_USED(d2i_OCSP_CERTSTATUS);
125LCRYPTO_USED(i2d_OCSP_CERTSTATUS);
126LCRYPTO_USED(OCSP_REVOKEDINFO_new);
127LCRYPTO_USED(OCSP_REVOKEDINFO_free);
128LCRYPTO_USED(d2i_OCSP_REVOKEDINFO);
129LCRYPTO_USED(i2d_OCSP_REVOKEDINFO);
130LCRYPTO_USED(OCSP_BASICRESP_new);
131LCRYPTO_USED(OCSP_BASICRESP_free);
132LCRYPTO_USED(d2i_OCSP_BASICRESP);
133LCRYPTO_USED(i2d_OCSP_BASICRESP);
134LCRYPTO_USED(OCSP_RESPDATA_new);
135LCRYPTO_USED(OCSP_RESPDATA_free);
136LCRYPTO_USED(d2i_OCSP_RESPDATA);
137LCRYPTO_USED(i2d_OCSP_RESPDATA);
138LCRYPTO_USED(OCSP_RESPID_new);
139LCRYPTO_USED(OCSP_RESPID_free);
140LCRYPTO_USED(d2i_OCSP_RESPID);
141LCRYPTO_USED(i2d_OCSP_RESPID);
142LCRYPTO_USED(OCSP_RESPONSE_new);
143LCRYPTO_USED(OCSP_RESPONSE_free);
144LCRYPTO_USED(d2i_OCSP_RESPONSE);
145LCRYPTO_USED(i2d_OCSP_RESPONSE);
146LCRYPTO_USED(d2i_OCSP_RESPONSE_bio);
147LCRYPTO_USED(i2d_OCSP_RESPONSE_bio);
148LCRYPTO_USED(OCSP_RESPBYTES_new);
149LCRYPTO_USED(OCSP_RESPBYTES_free);
150LCRYPTO_USED(d2i_OCSP_RESPBYTES);
151LCRYPTO_USED(i2d_OCSP_RESPBYTES);
152LCRYPTO_USED(OCSP_ONEREQ_new);
153LCRYPTO_USED(OCSP_ONEREQ_free);
154LCRYPTO_USED(d2i_OCSP_ONEREQ);
155LCRYPTO_USED(i2d_OCSP_ONEREQ);
156LCRYPTO_USED(OCSP_CERTID_new);
157LCRYPTO_USED(OCSP_CERTID_free);
158LCRYPTO_USED(d2i_OCSP_CERTID);
159LCRYPTO_USED(i2d_OCSP_CERTID);
160LCRYPTO_USED(OCSP_REQUEST_new);
161LCRYPTO_USED(OCSP_REQUEST_free);
162LCRYPTO_USED(d2i_OCSP_REQUEST);
163LCRYPTO_USED(i2d_OCSP_REQUEST);
164LCRYPTO_USED(d2i_OCSP_REQUEST_bio);
165LCRYPTO_USED(i2d_OCSP_REQUEST_bio);
166LCRYPTO_USED(OCSP_SIGNATURE_new);
167LCRYPTO_USED(OCSP_SIGNATURE_free);
168LCRYPTO_USED(d2i_OCSP_SIGNATURE);
169LCRYPTO_USED(i2d_OCSP_SIGNATURE);
170LCRYPTO_USED(OCSP_REQINFO_new);
171LCRYPTO_USED(OCSP_REQINFO_free);
172LCRYPTO_USED(d2i_OCSP_REQINFO);
173LCRYPTO_USED(i2d_OCSP_REQINFO);
174LCRYPTO_USED(OCSP_CRLID_new);
175LCRYPTO_USED(OCSP_CRLID_free);
176LCRYPTO_USED(d2i_OCSP_CRLID);
177LCRYPTO_USED(i2d_OCSP_CRLID);
178LCRYPTO_USED(OCSP_SERVICELOC_new);
179LCRYPTO_USED(OCSP_SERVICELOC_free);
180LCRYPTO_USED(d2i_OCSP_SERVICELOC);
181LCRYPTO_USED(i2d_OCSP_SERVICELOC);
182LCRYPTO_USED(OCSP_response_status_str);
183LCRYPTO_USED(OCSP_cert_status_str);
184LCRYPTO_USED(OCSP_crl_reason_str);
185LCRYPTO_USED(OCSP_REQUEST_print);
186LCRYPTO_USED(OCSP_RESPONSE_print);
187LCRYPTO_USED(OCSP_basic_verify);
188LCRYPTO_USED(ERR_load_OCSP_strings);
189#if defined(LIBRESSL_NAMESPACE)
190extern LCRYPTO_USED(OCSP_RESPID_it);
191extern LCRYPTO_USED(OCSP_SINGLERESP_it);
192extern LCRYPTO_USED(OCSP_CERTSTATUS_it);
193extern LCRYPTO_USED(OCSP_REVOKEDINFO_it);
194extern LCRYPTO_USED(OCSP_BASICRESP_it);
195extern LCRYPTO_USED(OCSP_RESPDATA_it);
196extern LCRYPTO_USED(OCSP_RESPID_it);
197extern LCRYPTO_USED(OCSP_RESPONSE_it);
198extern LCRYPTO_USED(OCSP_RESPBYTES_it);
199extern LCRYPTO_USED(OCSP_ONEREQ_it);
200extern LCRYPTO_USED(OCSP_CERTID_it);
201extern LCRYPTO_USED(OCSP_REQUEST_it);
202extern LCRYPTO_USED(OCSP_SIGNATURE_it);
203extern LCRYPTO_USED(OCSP_REQINFO_it);
204extern LCRYPTO_USED(OCSP_CRLID_it);
205extern LCRYPTO_USED(OCSP_SERVICELOC_it);
206#endif
207
208#endif /* _LIBCRYPTO_OCSP_H */
diff --git a/src/lib/libcrypto/hidden/openssl/pem.h b/src/lib/libcrypto/hidden/openssl/pem.h
deleted file mode 100644
index 5838f07f4d..0000000000
--- a/src/lib/libcrypto/hidden/openssl/pem.h
+++ /dev/null
@@ -1,149 +0,0 @@
1/* $OpenBSD: pem.h,v 1.2 2023/07/07 19:37:54 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_PEM_H
19#define _LIBCRYPTO_PEM_H
20
21#ifndef _MSC_VER
22#include_next <openssl/pem.h>
23#else
24#include "../include/openssl/pem.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(PEM_get_EVP_CIPHER_INFO);
29LCRYPTO_USED(PEM_do_header);
30LCRYPTO_USED(PEM_read_bio);
31LCRYPTO_USED(PEM_write_bio);
32LCRYPTO_USED(PEM_bytes_read_bio);
33LCRYPTO_USED(PEM_ASN1_read_bio);
34LCRYPTO_USED(PEM_ASN1_write_bio);
35LCRYPTO_USED(PEM_X509_INFO_read_bio);
36LCRYPTO_USED(PEM_X509_INFO_write_bio);
37LCRYPTO_USED(PEM_read);
38LCRYPTO_USED(PEM_write);
39LCRYPTO_USED(PEM_ASN1_read);
40LCRYPTO_USED(PEM_ASN1_write);
41LCRYPTO_USED(PEM_X509_INFO_read);
42LCRYPTO_USED(PEM_SignInit);
43LCRYPTO_USED(PEM_SignUpdate);
44LCRYPTO_USED(PEM_SignFinal);
45LCRYPTO_USED(PEM_def_callback);
46LCRYPTO_USED(PEM_proc_type);
47LCRYPTO_USED(PEM_dek_info);
48LCRYPTO_USED(PEM_read_X509);
49LCRYPTO_USED(PEM_read_bio_X509);
50LCRYPTO_USED(PEM_write_X509);
51LCRYPTO_USED(PEM_write_bio_X509);
52LCRYPTO_USED(PEM_read_X509_AUX);
53LCRYPTO_USED(PEM_read_bio_X509_AUX);
54LCRYPTO_USED(PEM_write_X509_AUX);
55LCRYPTO_USED(PEM_write_bio_X509_AUX);
56LCRYPTO_USED(PEM_read_X509_REQ);
57LCRYPTO_USED(PEM_read_bio_X509_REQ);
58LCRYPTO_USED(PEM_write_X509_REQ);
59LCRYPTO_USED(PEM_write_bio_X509_REQ);
60LCRYPTO_USED(PEM_write_X509_REQ_NEW);
61LCRYPTO_USED(PEM_write_bio_X509_REQ_NEW);
62LCRYPTO_USED(PEM_read_X509_CRL);
63LCRYPTO_USED(PEM_read_bio_X509_CRL);
64LCRYPTO_USED(PEM_write_X509_CRL);
65LCRYPTO_USED(PEM_write_bio_X509_CRL);
66LCRYPTO_USED(PEM_read_PKCS7);
67LCRYPTO_USED(PEM_read_bio_PKCS7);
68LCRYPTO_USED(PEM_write_PKCS7);
69LCRYPTO_USED(PEM_write_bio_PKCS7);
70LCRYPTO_USED(PEM_read_PKCS8);
71LCRYPTO_USED(PEM_read_bio_PKCS8);
72LCRYPTO_USED(PEM_write_PKCS8);
73LCRYPTO_USED(PEM_write_bio_PKCS8);
74LCRYPTO_USED(PEM_read_PKCS8_PRIV_KEY_INFO);
75LCRYPTO_USED(PEM_read_bio_PKCS8_PRIV_KEY_INFO);
76LCRYPTO_USED(PEM_write_PKCS8_PRIV_KEY_INFO);
77LCRYPTO_USED(PEM_write_bio_PKCS8_PRIV_KEY_INFO);
78LCRYPTO_USED(PEM_read_RSAPrivateKey);
79LCRYPTO_USED(PEM_read_bio_RSAPrivateKey);
80LCRYPTO_USED(PEM_write_RSAPrivateKey);
81LCRYPTO_USED(PEM_write_bio_RSAPrivateKey);
82LCRYPTO_USED(PEM_read_RSAPublicKey);
83LCRYPTO_USED(PEM_read_bio_RSAPublicKey);
84LCRYPTO_USED(PEM_write_RSAPublicKey);
85LCRYPTO_USED(PEM_write_bio_RSAPublicKey);
86LCRYPTO_USED(PEM_read_RSA_PUBKEY);
87LCRYPTO_USED(PEM_read_bio_RSA_PUBKEY);
88LCRYPTO_USED(PEM_write_RSA_PUBKEY);
89LCRYPTO_USED(PEM_write_bio_RSA_PUBKEY);
90LCRYPTO_USED(PEM_read_DSAPrivateKey);
91LCRYPTO_USED(PEM_read_bio_DSAPrivateKey);
92LCRYPTO_USED(PEM_write_DSAPrivateKey);
93LCRYPTO_USED(PEM_write_bio_DSAPrivateKey);
94LCRYPTO_USED(PEM_read_DSA_PUBKEY);
95LCRYPTO_USED(PEM_read_bio_DSA_PUBKEY);
96LCRYPTO_USED(PEM_write_DSA_PUBKEY);
97LCRYPTO_USED(PEM_write_bio_DSA_PUBKEY);
98LCRYPTO_USED(PEM_read_DSAparams);
99LCRYPTO_USED(PEM_read_bio_DSAparams);
100LCRYPTO_USED(PEM_write_DSAparams);
101LCRYPTO_USED(PEM_write_bio_DSAparams);
102LCRYPTO_USED(PEM_read_ECPKParameters);
103LCRYPTO_USED(PEM_read_bio_ECPKParameters);
104LCRYPTO_USED(PEM_write_ECPKParameters);
105LCRYPTO_USED(PEM_write_bio_ECPKParameters);
106LCRYPTO_USED(PEM_read_ECPrivateKey);
107LCRYPTO_USED(PEM_read_bio_ECPrivateKey);
108LCRYPTO_USED(PEM_write_ECPrivateKey);
109LCRYPTO_USED(PEM_write_bio_ECPrivateKey);
110LCRYPTO_USED(PEM_read_EC_PUBKEY);
111LCRYPTO_USED(PEM_read_bio_EC_PUBKEY);
112LCRYPTO_USED(PEM_write_EC_PUBKEY);
113LCRYPTO_USED(PEM_write_bio_EC_PUBKEY);
114LCRYPTO_USED(PEM_read_DHparams);
115LCRYPTO_USED(PEM_read_bio_DHparams);
116LCRYPTO_USED(PEM_write_DHparams);
117LCRYPTO_USED(PEM_write_bio_DHparams);
118LCRYPTO_USED(PEM_read_PrivateKey);
119LCRYPTO_USED(PEM_read_bio_PrivateKey);
120LCRYPTO_USED(PEM_write_PrivateKey);
121LCRYPTO_USED(PEM_write_bio_PrivateKey);
122LCRYPTO_USED(PEM_read_PUBKEY);
123LCRYPTO_USED(PEM_read_bio_PUBKEY);
124LCRYPTO_USED(PEM_write_PUBKEY);
125LCRYPTO_USED(PEM_write_bio_PUBKEY);
126LCRYPTO_USED(PEM_write_bio_PrivateKey_traditional);
127LCRYPTO_USED(PEM_write_bio_PKCS8PrivateKey_nid);
128LCRYPTO_USED(PEM_write_bio_PKCS8PrivateKey);
129LCRYPTO_USED(i2d_PKCS8PrivateKey_bio);
130LCRYPTO_USED(i2d_PKCS8PrivateKey_nid_bio);
131LCRYPTO_USED(d2i_PKCS8PrivateKey_bio);
132LCRYPTO_USED(i2d_PKCS8PrivateKey_fp);
133LCRYPTO_USED(i2d_PKCS8PrivateKey_nid_fp);
134LCRYPTO_USED(PEM_write_PKCS8PrivateKey_nid);
135LCRYPTO_USED(d2i_PKCS8PrivateKey_fp);
136LCRYPTO_USED(PEM_write_PKCS8PrivateKey);
137LCRYPTO_USED(PEM_read_bio_Parameters);
138LCRYPTO_USED(PEM_write_bio_Parameters);
139LCRYPTO_USED(b2i_PrivateKey);
140LCRYPTO_USED(b2i_PublicKey);
141LCRYPTO_USED(b2i_PrivateKey_bio);
142LCRYPTO_USED(b2i_PublicKey_bio);
143LCRYPTO_USED(i2b_PrivateKey_bio);
144LCRYPTO_USED(i2b_PublicKey_bio);
145LCRYPTO_USED(b2i_PVK_bio);
146LCRYPTO_USED(i2b_PVK_bio);
147LCRYPTO_USED(ERR_load_PEM_strings);
148
149#endif /* _LIBCRYPTO_PEM_H */
diff --git a/src/lib/libcrypto/hidden/openssl/pkcs12.h b/src/lib/libcrypto/hidden/openssl/pkcs12.h
deleted file mode 100644
index 7e5607ab77..0000000000
--- a/src/lib/libcrypto/hidden/openssl/pkcs12.h
+++ /dev/null
@@ -1,76 +0,0 @@
1/* $OpenBSD: pkcs12.h,v 1.5 2025/03/09 15:45:52 tb Exp $ */
2/*
3 * Copyright (c) 2022 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_PKCS12_H
19#define _LIBCRYPTO_PKCS12_H
20
21#ifndef _MSC_VER
22#include_next <openssl/pkcs12.h>
23#else
24#include "../include/openssl/pkcs12.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(PKCS12_SAFEBAG_get0_attr);
29LCRYPTO_USED(PKCS12_SAFEBAG_get0_attrs);
30LCRYPTO_USED(PKCS12_SAFEBAG_get_nid);
31LCRYPTO_USED(PKCS12_SAFEBAG_get_bag_nid);
32LCRYPTO_USED(PKCS12_SAFEBAG_get1_cert);
33LCRYPTO_USED(PKCS12_SAFEBAG_get1_crl);
34LCRYPTO_USED(PKCS8_get_attr);
35LCRYPTO_USED(PKCS12_mac_present);
36LCRYPTO_USED(PKCS12_get0_mac);
37LCRYPTO_USED(PKCS12_SAFEBAG_get0_p8inf);
38LCRYPTO_USED(PKCS12_SAFEBAG_get0_pkcs8);
39LCRYPTO_USED(PKCS12_SAFEBAG_get0_safes);
40LCRYPTO_USED(PKCS12_SAFEBAG_get0_type);
41LCRYPTO_USED(PKCS8_decrypt);
42LCRYPTO_USED(PKCS12_decrypt_skey);
43LCRYPTO_USED(PKCS8_encrypt);
44LCRYPTO_USED(PKCS12_unpack_p7data);
45LCRYPTO_USED(PKCS12_unpack_p7encdata);
46LCRYPTO_USED(PKCS12_unpack_authsafes);
47LCRYPTO_USED(PKCS8_add_keyusage);
48LCRYPTO_USED(PKCS12_get_friendlyname);
49LCRYPTO_USED(PKCS12_key_gen_uni);
50LCRYPTO_USED(PKCS12_verify_mac);
51LCRYPTO_USED(PKCS12_set_mac);
52LCRYPTO_USED(OPENSSL_asc2uni);
53LCRYPTO_USED(OPENSSL_uni2asc);
54LCRYPTO_USED(PKCS12_new);
55LCRYPTO_USED(PKCS12_free);
56LCRYPTO_USED(d2i_PKCS12);
57LCRYPTO_USED(i2d_PKCS12);
58LCRYPTO_USED(PKCS12_SAFEBAG_new);
59LCRYPTO_USED(PKCS12_SAFEBAG_free);
60LCRYPTO_USED(d2i_PKCS12_SAFEBAG);
61LCRYPTO_USED(i2d_PKCS12_SAFEBAG);
62LCRYPTO_USED(PKCS12_PBE_add);
63LCRYPTO_USED(PKCS12_parse);
64LCRYPTO_USED(PKCS12_create);
65LCRYPTO_USED(i2d_PKCS12_bio);
66LCRYPTO_USED(i2d_PKCS12_fp);
67LCRYPTO_USED(d2i_PKCS12_bio);
68LCRYPTO_USED(d2i_PKCS12_fp);
69LCRYPTO_USED(PKCS12_newpass);
70LCRYPTO_USED(ERR_load_PKCS12_strings);
71#if defined(LIBRESSL_NAMESPACE)
72extern LCRYPTO_USED(PKCS12_it);
73extern LCRYPTO_USED(PKCS12_SAFEBAG_it);
74#endif
75
76#endif /* _LIBCRYPTO_PKCS12_H */
diff --git a/src/lib/libcrypto/hidden/openssl/pkcs7.h b/src/lib/libcrypto/hidden/openssl/pkcs7.h
deleted file mode 100644
index b531b298d0..0000000000
--- a/src/lib/libcrypto/hidden/openssl/pkcs7.h
+++ /dev/null
@@ -1,143 +0,0 @@
1/* $OpenBSD: pkcs7.h,v 1.5 2024/07/08 17:01:54 beck Exp $ */
2/*
3 * Copyright (c) 2022 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_PKCS7_H
19#define _LIBCRYPTO_PKCS7_H
20
21#ifndef _MSC_VER
22#include_next <openssl/pkcs7.h>
23#else
24#include "../include/openssl/pkcs7.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(PKCS7_ISSUER_AND_SERIAL_new);
29LCRYPTO_USED(PKCS7_ISSUER_AND_SERIAL_free);
30LCRYPTO_USED(d2i_PKCS7_ISSUER_AND_SERIAL);
31LCRYPTO_USED(i2d_PKCS7_ISSUER_AND_SERIAL);
32LCRYPTO_USED(PKCS7_ISSUER_AND_SERIAL_digest);
33LCRYPTO_USED(d2i_PKCS7_fp);
34LCRYPTO_USED(i2d_PKCS7_fp);
35LCRYPTO_USED(PKCS7_dup);
36LCRYPTO_USED(d2i_PKCS7_bio);
37LCRYPTO_USED(i2d_PKCS7_bio);
38LCRYPTO_USED(i2d_PKCS7_bio_stream);
39LCRYPTO_USED(PEM_write_bio_PKCS7_stream);
40LCRYPTO_USED(PKCS7_SIGNER_INFO_new);
41LCRYPTO_USED(PKCS7_SIGNER_INFO_free);
42LCRYPTO_USED(d2i_PKCS7_SIGNER_INFO);
43LCRYPTO_USED(i2d_PKCS7_SIGNER_INFO);
44LCRYPTO_USED(PKCS7_RECIP_INFO_new);
45LCRYPTO_USED(PKCS7_RECIP_INFO_free);
46LCRYPTO_USED(d2i_PKCS7_RECIP_INFO);
47LCRYPTO_USED(i2d_PKCS7_RECIP_INFO);
48LCRYPTO_USED(PKCS7_SIGNED_new);
49LCRYPTO_USED(PKCS7_SIGNED_free);
50LCRYPTO_USED(d2i_PKCS7_SIGNED);
51LCRYPTO_USED(i2d_PKCS7_SIGNED);
52LCRYPTO_USED(PKCS7_ENC_CONTENT_new);
53LCRYPTO_USED(PKCS7_ENC_CONTENT_free);
54LCRYPTO_USED(d2i_PKCS7_ENC_CONTENT);
55LCRYPTO_USED(i2d_PKCS7_ENC_CONTENT);
56LCRYPTO_USED(PKCS7_ENVELOPE_new);
57LCRYPTO_USED(PKCS7_ENVELOPE_free);
58LCRYPTO_USED(d2i_PKCS7_ENVELOPE);
59LCRYPTO_USED(i2d_PKCS7_ENVELOPE);
60LCRYPTO_USED(PKCS7_SIGN_ENVELOPE_new);
61LCRYPTO_USED(PKCS7_SIGN_ENVELOPE_free);
62LCRYPTO_USED(d2i_PKCS7_SIGN_ENVELOPE);
63LCRYPTO_USED(i2d_PKCS7_SIGN_ENVELOPE);
64LCRYPTO_USED(PKCS7_DIGEST_new);
65LCRYPTO_USED(PKCS7_DIGEST_free);
66LCRYPTO_USED(d2i_PKCS7_DIGEST);
67LCRYPTO_USED(i2d_PKCS7_DIGEST);
68LCRYPTO_USED(PKCS7_ENCRYPT_new);
69LCRYPTO_USED(PKCS7_ENCRYPT_free);
70LCRYPTO_USED(d2i_PKCS7_ENCRYPT);
71LCRYPTO_USED(i2d_PKCS7_ENCRYPT);
72LCRYPTO_USED(PKCS7_new);
73LCRYPTO_USED(PKCS7_free);
74LCRYPTO_USED(d2i_PKCS7);
75LCRYPTO_USED(i2d_PKCS7);
76LCRYPTO_USED(PKCS7_print_ctx);
77LCRYPTO_USED(PKCS7_ctrl);
78LCRYPTO_USED(PKCS7_set_type);
79LCRYPTO_USED(PKCS7_set0_type_other);
80LCRYPTO_USED(PKCS7_set_content);
81LCRYPTO_USED(PKCS7_SIGNER_INFO_set);
82LCRYPTO_USED(PKCS7_SIGNER_INFO_sign);
83LCRYPTO_USED(PKCS7_add_signer);
84LCRYPTO_USED(PKCS7_add_certificate);
85LCRYPTO_USED(PKCS7_add_crl);
86LCRYPTO_USED(PKCS7_content_new);
87LCRYPTO_USED(PKCS7_dataVerify);
88LCRYPTO_USED(PKCS7_signatureVerify);
89LCRYPTO_USED(PKCS7_dataInit);
90LCRYPTO_USED(PKCS7_dataFinal);
91LCRYPTO_USED(PKCS7_dataDecode);
92LCRYPTO_USED(PKCS7_add_signature);
93LCRYPTO_USED(PKCS7_cert_from_signer_info);
94LCRYPTO_USED(PKCS7_set_digest);
95LCRYPTO_USED(PKCS7_get_signer_info);
96LCRYPTO_USED(PKCS7_add_recipient);
97LCRYPTO_USED(PKCS7_SIGNER_INFO_get0_algs);
98LCRYPTO_USED(PKCS7_RECIP_INFO_get0_alg);
99LCRYPTO_USED(PKCS7_add_recipient_info);
100LCRYPTO_USED(PKCS7_RECIP_INFO_set);
101LCRYPTO_USED(PKCS7_set_cipher);
102LCRYPTO_USED(PKCS7_stream);
103LCRYPTO_USED(PKCS7_get_issuer_and_serial);
104LCRYPTO_USED(PKCS7_digest_from_attributes);
105LCRYPTO_USED(PKCS7_add_signed_attribute);
106LCRYPTO_USED(PKCS7_add_attribute);
107LCRYPTO_USED(PKCS7_get_attribute);
108LCRYPTO_USED(PKCS7_get_signed_attribute);
109LCRYPTO_USED(PKCS7_set_signed_attributes);
110LCRYPTO_USED(PKCS7_set_attributes);
111LCRYPTO_USED(PKCS7_sign);
112LCRYPTO_USED(PKCS7_sign_add_signer);
113LCRYPTO_USED(PKCS7_final);
114LCRYPTO_USED(PKCS7_verify);
115LCRYPTO_USED(PKCS7_get0_signers);
116LCRYPTO_USED(PKCS7_encrypt);
117LCRYPTO_USED(PKCS7_decrypt);
118LCRYPTO_USED(PKCS7_add_attrib_smimecap);
119LCRYPTO_USED(PKCS7_get_smimecap);
120LCRYPTO_USED(PKCS7_simple_smimecap);
121LCRYPTO_USED(PKCS7_add_attrib_content_type);
122LCRYPTO_USED(PKCS7_add0_attrib_signing_time);
123LCRYPTO_USED(PKCS7_add1_attrib_digest);
124LCRYPTO_USED(SMIME_write_PKCS7);
125LCRYPTO_USED(SMIME_read_PKCS7);
126LCRYPTO_USED(BIO_new_PKCS7);
127LCRYPTO_USED(ERR_load_PKCS7_strings);
128#if defined(LIBRESSL_NAMESPACE)
129extern LCRYPTO_USED(PKCS7_ISSUER_AND_SERIAL_it);
130extern LCRYPTO_USED(PKCS7_SIGNER_INFO_it);
131extern LCRYPTO_USED(PKCS7_RECIP_INFO_it);
132extern LCRYPTO_USED(PKCS7_SIGNED_it);
133extern LCRYPTO_USED(PKCS7_ENC_CONTENT_it);
134extern LCRYPTO_USED(PKCS7_ENVELOPE_it);
135extern LCRYPTO_USED(PKCS7_SIGN_ENVELOPE_it);
136extern LCRYPTO_USED(PKCS7_DIGEST_it);
137extern LCRYPTO_USED(PKCS7_ENCRYPT_it);
138extern LCRYPTO_USED(PKCS7_it);
139extern LCRYPTO_USED(PKCS7_ATTR_SIGN_it);
140extern LCRYPTO_USED(PKCS7_ATTR_VERIFY_it);
141#endif
142
143#endif /* _LIBCRYPTO_PKCS7_H */
diff --git a/src/lib/libcrypto/hidden/openssl/poly1305.h b/src/lib/libcrypto/hidden/openssl/poly1305.h
deleted file mode 100644
index 7a459cb5a3..0000000000
--- a/src/lib/libcrypto/hidden/openssl/poly1305.h
+++ /dev/null
@@ -1,32 +0,0 @@
1/* $OpenBSD: poly1305.h,v 1.2 2023/07/07 19:37:54 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_POLY1305_H
19#define _LIBCRYPTO_POLY1305_H
20
21#ifndef _MSC_VER
22#include_next <openssl/poly1305.h>
23#else
24#include "../include/openssl/poly1305.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(CRYPTO_poly1305_init);
29LCRYPTO_USED(CRYPTO_poly1305_update);
30LCRYPTO_USED(CRYPTO_poly1305_finish);
31
32#endif /* _LIBCRYPTO_POLY1305_H */
diff --git a/src/lib/libcrypto/hidden/openssl/posix_time.h b/src/lib/libcrypto/hidden/openssl/posix_time.h
deleted file mode 100644
index 306d43eae5..0000000000
--- a/src/lib/libcrypto/hidden/openssl/posix_time.h
+++ /dev/null
@@ -1,32 +0,0 @@
1/* $OpenBSD: posix_time.h,v 1.1 2024/02/18 16:28:38 tb Exp $ */
2/*
3 * Copyright (c) 2024 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_POSIX_TIME_H
19#define _LIBCRYPTO_POSIX_TIME_H
20
21#ifndef _MSC_VER
22#include_next <openssl/posix_time.h>
23#else
24#include "../include/openssl/posix_time.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(OPENSSL_posix_to_tm);
29LCRYPTO_USED(OPENSSL_tm_to_posix);
30LCRYPTO_USED(OPENSSL_timegm);
31
32#endif /* _LIBCRYPTO_POSIX_TIME_H */
diff --git a/src/lib/libcrypto/hidden/openssl/rand.h b/src/lib/libcrypto/hidden/openssl/rand.h
deleted file mode 100644
index d06442acdb..0000000000
--- a/src/lib/libcrypto/hidden/openssl/rand.h
+++ /dev/null
@@ -1,43 +0,0 @@
1/* $OpenBSD: rand.h,v 1.4 2024/04/10 14:53:01 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_RAND_H
19#define _LIBCRYPTO_RAND_H
20
21#ifndef _MSC_VER
22#include_next <openssl/rand.h>
23#else
24#include "../include/openssl/rand.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(RAND_set_rand_method);
29LCRYPTO_USED(RAND_get_rand_method);
30LCRYPTO_USED(RAND_SSLeay);
31LCRYPTO_USED(ERR_load_RAND_strings);
32LCRYPTO_UNUSED(RAND_cleanup);
33LCRYPTO_UNUSED(RAND_bytes);
34LCRYPTO_UNUSED(RAND_pseudo_bytes);
35LCRYPTO_UNUSED(RAND_seed);
36LCRYPTO_UNUSED(RAND_add);
37LCRYPTO_UNUSED(RAND_load_file);
38LCRYPTO_UNUSED(RAND_write_file);
39LCRYPTO_UNUSED(RAND_file_name);
40LCRYPTO_UNUSED(RAND_status);
41LCRYPTO_UNUSED(RAND_poll);
42
43#endif /* _LIBCRYPTO_RAND_H */
diff --git a/src/lib/libcrypto/hidden/openssl/rc2.h b/src/lib/libcrypto/hidden/openssl/rc2.h
deleted file mode 100644
index c08c38d7c8..0000000000
--- a/src/lib/libcrypto/hidden/openssl/rc2.h
+++ /dev/null
@@ -1,36 +0,0 @@
1/* $OpenBSD: rc2.h,v 1.1 2023/07/07 13:40:44 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_RC2_H
19#define _LIBCRYPTO_RC2_H
20
21#ifndef _MSC_VER
22#include_next <openssl/rc2.h>
23#else
24#include "../include/openssl/rc2.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(RC2_set_key);
29LCRYPTO_USED(RC2_ecb_encrypt);
30LCRYPTO_USED(RC2_encrypt);
31LCRYPTO_USED(RC2_decrypt);
32LCRYPTO_USED(RC2_cbc_encrypt);
33LCRYPTO_USED(RC2_cfb64_encrypt);
34LCRYPTO_USED(RC2_ofb64_encrypt);
35
36#endif /* _LIBCRYPTO_RC2_H */
diff --git a/src/lib/libcrypto/hidden/openssl/rc4.h b/src/lib/libcrypto/hidden/openssl/rc4.h
deleted file mode 100644
index 16a7ff7e12..0000000000
--- a/src/lib/libcrypto/hidden/openssl/rc4.h
+++ /dev/null
@@ -1,31 +0,0 @@
1/* $OpenBSD: rc4.h,v 1.1 2024/03/28 08:18:13 joshua Exp $ */
2/*
3 * Copyright (c) 2024 Joshua Sing <joshua@joshuasing.dev>
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_RC4_H
19#define _LIBCRYPTO_RC4_H
20
21#ifndef _MSC_VER
22#include_next <openssl/rc4.h>
23#else
24#include "../include/openssl/rc4.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(RC4_set_key);
29LCRYPTO_USED(RC4);
30
31#endif /* _LIBCRYPTO_RC4_H */
diff --git a/src/lib/libcrypto/hidden/openssl/ripemd.h b/src/lib/libcrypto/hidden/openssl/ripemd.h
deleted file mode 100644
index 1fd4a0a46d..0000000000
--- a/src/lib/libcrypto/hidden/openssl/ripemd.h
+++ /dev/null
@@ -1,34 +0,0 @@
1/* $OpenBSD: ripemd.h,v 1.1 2024/03/28 23:54:15 joshua Exp $ */
2/*
3 * Copyright (c) 2024 Joshua Sing <joshua@joshuasing.dev>
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_RIPEMD_H
19#define _LIBCRYPTO_RIPEMD_H
20
21#ifndef _MSC_VER
22#include_next <openssl/ripemd.h>
23#else
24#include "../include/openssl/ripemd.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(RIPEMD160_Init);
29LCRYPTO_USED(RIPEMD160_Update);
30LCRYPTO_USED(RIPEMD160_Final);
31LCRYPTO_USED(RIPEMD160);
32LCRYPTO_USED(RIPEMD160_Transform);
33
34#endif /* _LIBCRYPTO_RIPEMD_H */
diff --git a/src/lib/libcrypto/hidden/openssl/rsa.h b/src/lib/libcrypto/hidden/openssl/rsa.h
deleted file mode 100644
index a115684c90..0000000000
--- a/src/lib/libcrypto/hidden/openssl/rsa.h
+++ /dev/null
@@ -1,147 +0,0 @@
1/* $OpenBSD: rsa.h,v 1.3 2024/07/08 17:10:18 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_RSA_H
19#define _LIBCRYPTO_RSA_H
20
21#ifndef _MSC_VER
22#include_next <openssl/rsa.h>
23#else
24#include "../include/openssl/rsa.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(RSA_new);
29LCRYPTO_USED(RSA_new_method);
30LCRYPTO_USED(RSA_bits);
31LCRYPTO_USED(RSA_size);
32LCRYPTO_USED(RSA_generate_key);
33LCRYPTO_USED(RSA_generate_key_ex);
34LCRYPTO_USED(RSA_check_key);
35LCRYPTO_USED(RSA_public_encrypt);
36LCRYPTO_USED(RSA_private_encrypt);
37LCRYPTO_USED(RSA_public_decrypt);
38LCRYPTO_USED(RSA_private_decrypt);
39LCRYPTO_USED(RSA_free);
40LCRYPTO_USED(RSA_up_ref);
41LCRYPTO_USED(RSA_flags);
42LCRYPTO_USED(RSA_set_default_method);
43LCRYPTO_USED(RSA_get_default_method);
44LCRYPTO_USED(RSA_get_method);
45LCRYPTO_USED(RSA_set_method);
46LCRYPTO_USED(RSA_PKCS1_OpenSSL);
47LCRYPTO_USED(RSA_PKCS1_SSLeay);
48LCRYPTO_USED(RSA_pkey_ctx_ctrl);
49LCRYPTO_USED(d2i_RSAPublicKey);
50LCRYPTO_USED(i2d_RSAPublicKey);
51LCRYPTO_USED(d2i_RSAPrivateKey);
52LCRYPTO_USED(i2d_RSAPrivateKey);
53LCRYPTO_USED(RSA_PSS_PARAMS_new);
54LCRYPTO_USED(RSA_PSS_PARAMS_free);
55LCRYPTO_USED(d2i_RSA_PSS_PARAMS);
56LCRYPTO_USED(i2d_RSA_PSS_PARAMS);
57LCRYPTO_USED(RSA_OAEP_PARAMS_new);
58LCRYPTO_USED(RSA_OAEP_PARAMS_free);
59LCRYPTO_USED(d2i_RSA_OAEP_PARAMS);
60LCRYPTO_USED(i2d_RSA_OAEP_PARAMS);
61LCRYPTO_USED(RSA_print_fp);
62LCRYPTO_USED(RSA_print);
63LCRYPTO_USED(RSA_sign);
64LCRYPTO_USED(RSA_verify);
65LCRYPTO_USED(RSA_sign_ASN1_OCTET_STRING);
66LCRYPTO_USED(RSA_verify_ASN1_OCTET_STRING);
67LCRYPTO_USED(RSA_blinding_on);
68LCRYPTO_USED(RSA_blinding_off);
69LCRYPTO_USED(RSA_padding_add_PKCS1_type_1);
70LCRYPTO_USED(RSA_padding_check_PKCS1_type_1);
71LCRYPTO_USED(RSA_padding_add_PKCS1_type_2);
72LCRYPTO_USED(RSA_padding_check_PKCS1_type_2);
73LCRYPTO_USED(PKCS1_MGF1);
74LCRYPTO_USED(RSA_padding_add_PKCS1_OAEP);
75LCRYPTO_USED(RSA_padding_check_PKCS1_OAEP);
76LCRYPTO_USED(RSA_padding_add_PKCS1_OAEP_mgf1);
77LCRYPTO_USED(RSA_padding_check_PKCS1_OAEP_mgf1);
78LCRYPTO_USED(RSA_padding_add_none);
79LCRYPTO_USED(RSA_padding_check_none);
80LCRYPTO_USED(RSA_verify_PKCS1_PSS);
81LCRYPTO_USED(RSA_padding_add_PKCS1_PSS);
82LCRYPTO_USED(RSA_verify_PKCS1_PSS_mgf1);
83LCRYPTO_USED(RSA_padding_add_PKCS1_PSS_mgf1);
84LCRYPTO_USED(RSA_get_ex_new_index);
85LCRYPTO_USED(RSA_set_ex_data);
86LCRYPTO_USED(RSA_get_ex_data);
87LCRYPTO_USED(RSA_security_bits);
88LCRYPTO_USED(RSA_get0_key);
89LCRYPTO_USED(RSA_set0_key);
90LCRYPTO_USED(RSA_get0_crt_params);
91LCRYPTO_USED(RSA_set0_crt_params);
92LCRYPTO_USED(RSA_get0_factors);
93LCRYPTO_USED(RSA_set0_factors);
94LCRYPTO_USED(RSA_get0_n);
95LCRYPTO_USED(RSA_get0_e);
96LCRYPTO_USED(RSA_get0_d);
97LCRYPTO_USED(RSA_get0_p);
98LCRYPTO_USED(RSA_get0_q);
99LCRYPTO_USED(RSA_get0_dmp1);
100LCRYPTO_USED(RSA_get0_dmq1);
101LCRYPTO_USED(RSA_get0_iqmp);
102LCRYPTO_USED(RSA_get0_pss_params);
103LCRYPTO_USED(RSA_clear_flags);
104LCRYPTO_USED(RSA_test_flags);
105LCRYPTO_USED(RSA_set_flags);
106LCRYPTO_USED(RSAPublicKey_dup);
107LCRYPTO_USED(RSAPrivateKey_dup);
108LCRYPTO_USED(RSA_meth_new);
109LCRYPTO_USED(RSA_meth_free);
110LCRYPTO_USED(RSA_meth_dup);
111LCRYPTO_USED(RSA_meth_set1_name);
112LCRYPTO_USED(RSA_meth_set_priv_enc);
113LCRYPTO_USED(RSA_meth_set_priv_dec);
114LCRYPTO_USED(RSA_meth_get_finish);
115LCRYPTO_USED(RSA_meth_set_finish);
116LCRYPTO_USED(RSA_meth_set_pub_enc);
117LCRYPTO_USED(RSA_meth_set_pub_dec);
118LCRYPTO_USED(RSA_meth_set_mod_exp);
119LCRYPTO_USED(RSA_meth_set_bn_mod_exp);
120LCRYPTO_USED(RSA_meth_set_init);
121LCRYPTO_USED(RSA_meth_set_keygen);
122LCRYPTO_USED(RSA_meth_set_flags);
123LCRYPTO_USED(RSA_meth_set0_app_data);
124LCRYPTO_USED(RSA_meth_get0_name);
125LCRYPTO_USED(RSA_meth_get_pub_enc);
126LCRYPTO_USED(RSA_meth_get_pub_dec);
127LCRYPTO_USED(RSA_meth_get_priv_enc);
128LCRYPTO_USED(RSA_meth_get_priv_dec);
129LCRYPTO_USED(RSA_meth_get_mod_exp);
130LCRYPTO_USED(RSA_meth_get_bn_mod_exp);
131LCRYPTO_USED(RSA_meth_get_init);
132LCRYPTO_USED(RSA_meth_get_keygen);
133LCRYPTO_USED(RSA_meth_get_flags);
134LCRYPTO_USED(RSA_meth_get0_app_data);
135LCRYPTO_USED(RSA_meth_get_sign);
136LCRYPTO_USED(RSA_meth_set_sign);
137LCRYPTO_USED(RSA_meth_get_verify);
138LCRYPTO_USED(RSA_meth_set_verify);
139LCRYPTO_USED(ERR_load_RSA_strings);
140#if defined(LIBRESSL_NAMESPACE)
141extern LCRYPTO_USED(RSAPublicKey_it);
142extern LCRYPTO_USED(RSAPrivateKey_it);
143extern LCRYPTO_USED(RSA_PSS_PARAMS_it);
144extern LCRYPTO_USED(RSA_OAEP_PARAMS_it);
145#endif
146
147#endif /* _LIBCRYPTO_RSA_H */
diff --git a/src/lib/libcrypto/hidden/openssl/sha.h b/src/lib/libcrypto/hidden/openssl/sha.h
deleted file mode 100644
index ee58793205..0000000000
--- a/src/lib/libcrypto/hidden/openssl/sha.h
+++ /dev/null
@@ -1,52 +0,0 @@
1/* $OpenBSD: sha.h,v 1.1 2023/07/08 12:24:10 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_SHA_H
19#define _LIBCRYPTO_SHA_H
20
21#ifndef _MSC_VER
22#include_next <openssl/sha.h>
23#else
24#include "../include/openssl/sha.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(SHA1_Init);
29LCRYPTO_USED(SHA1_Update);
30LCRYPTO_USED(SHA1_Final);
31LCRYPTO_USED(SHA1);
32LCRYPTO_USED(SHA1_Transform);
33LCRYPTO_USED(SHA224_Init);
34LCRYPTO_USED(SHA224_Update);
35LCRYPTO_USED(SHA224_Final);
36LCRYPTO_USED(SHA224);
37LCRYPTO_USED(SHA256_Init);
38LCRYPTO_USED(SHA256_Update);
39LCRYPTO_USED(SHA256_Final);
40LCRYPTO_USED(SHA256);
41LCRYPTO_USED(SHA256_Transform);
42LCRYPTO_USED(SHA384_Init);
43LCRYPTO_USED(SHA384_Update);
44LCRYPTO_USED(SHA384_Final);
45LCRYPTO_USED(SHA384);
46LCRYPTO_USED(SHA512_Init);
47LCRYPTO_USED(SHA512_Update);
48LCRYPTO_USED(SHA512_Final);
49LCRYPTO_USED(SHA512);
50LCRYPTO_USED(SHA512_Transform);
51
52#endif /* _LIBCRYPTO_SHA_H */
diff --git a/src/lib/libcrypto/hidden/openssl/sm3.h b/src/lib/libcrypto/hidden/openssl/sm3.h
deleted file mode 100644
index 12a0e1ad1a..0000000000
--- a/src/lib/libcrypto/hidden/openssl/sm3.h
+++ /dev/null
@@ -1,32 +0,0 @@
1/* $OpenBSD: sm3.h,v 1.3 2023/07/08 06:13:08 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_SM3_H
19#define _LIBCRYPTO_SM3_H
20
21#ifndef _MSC_VER
22#include_next <openssl/sm3.h>
23#else
24#include "../include/openssl/sm3.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(SM3_Init);
29LCRYPTO_USED(SM3_Update);
30LCRYPTO_USED(SM3_Final);
31
32#endif /* _LIBCRYPTO_SM3_H */
diff --git a/src/lib/libcrypto/hidden/openssl/sm4.h b/src/lib/libcrypto/hidden/openssl/sm4.h
deleted file mode 100644
index 1b80e5cbc6..0000000000
--- a/src/lib/libcrypto/hidden/openssl/sm4.h
+++ /dev/null
@@ -1,32 +0,0 @@
1/* $OpenBSD: sm4.h,v 1.2 2023/07/07 19:37:54 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_SM4_H
19#define _LIBCRYPTO_SM4_H
20
21#ifndef _MSC_VER
22#include_next <openssl/sm4.h>
23#else
24#include "../include/openssl/sm4.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(SM4_set_key);
29LCRYPTO_USED(SM4_decrypt);
30LCRYPTO_USED(SM4_encrypt);
31
32#endif /* _LIBCRYPTO_SM4_H */
diff --git a/src/lib/libcrypto/hidden/openssl/stack.h b/src/lib/libcrypto/hidden/openssl/stack.h
deleted file mode 100644
index 3f742c1b06..0000000000
--- a/src/lib/libcrypto/hidden/openssl/stack.h
+++ /dev/null
@@ -1,49 +0,0 @@
1/* $OpenBSD: stack.h,v 1.3 2024/03/02 11:20:36 tb Exp $ */
2/*
3 * Copyright (c) 2022 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_STACK_H
19#define _LIBCRYPTO_STACK_H
20
21#ifndef _MSC_VER
22#include_next <openssl/stack.h>
23#else
24#include "../include/openssl/stack.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(sk_num);
29LCRYPTO_USED(sk_value);
30LCRYPTO_USED(sk_set);
31LCRYPTO_USED(sk_new);
32LCRYPTO_USED(sk_new_null);
33LCRYPTO_USED(sk_free);
34LCRYPTO_USED(sk_pop_free);
35LCRYPTO_USED(sk_insert);
36LCRYPTO_USED(sk_delete);
37LCRYPTO_USED(sk_delete_ptr);
38LCRYPTO_USED(sk_find);
39LCRYPTO_USED(sk_push);
40LCRYPTO_USED(sk_unshift);
41LCRYPTO_USED(sk_shift);
42LCRYPTO_USED(sk_pop);
43LCRYPTO_USED(sk_zero);
44LCRYPTO_USED(sk_set_cmp_func);
45LCRYPTO_USED(sk_dup);
46LCRYPTO_USED(sk_sort);
47LCRYPTO_USED(sk_is_sorted);
48
49#endif /* _LIBCRYPTO_STACK_H */
diff --git a/src/lib/libcrypto/hidden/openssl/ts.h b/src/lib/libcrypto/hidden/openssl/ts.h
deleted file mode 100644
index 0acad21373..0000000000
--- a/src/lib/libcrypto/hidden/openssl/ts.h
+++ /dev/null
@@ -1,217 +0,0 @@
1/* $OpenBSD: ts.h,v 1.3 2023/07/28 09:53:55 tb 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_TS_H
19#define _LIBCRYPTO_TS_H
20
21#ifndef _MSC_VER
22#include_next <openssl/ts.h>
23#else
24#include "../include/openssl/ts.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(TS_REQ_new);
29LCRYPTO_USED(TS_REQ_free);
30LCRYPTO_USED(i2d_TS_REQ);
31LCRYPTO_USED(d2i_TS_REQ);
32LCRYPTO_USED(TS_REQ_dup);
33LCRYPTO_USED(d2i_TS_REQ_fp);
34LCRYPTO_USED(i2d_TS_REQ_fp);
35LCRYPTO_USED(d2i_TS_REQ_bio);
36LCRYPTO_USED(i2d_TS_REQ_bio);
37LCRYPTO_USED(TS_MSG_IMPRINT_new);
38LCRYPTO_USED(TS_MSG_IMPRINT_free);
39LCRYPTO_USED(i2d_TS_MSG_IMPRINT);
40LCRYPTO_USED(d2i_TS_MSG_IMPRINT);
41LCRYPTO_USED(TS_MSG_IMPRINT_dup);
42LCRYPTO_USED(d2i_TS_MSG_IMPRINT_fp);
43LCRYPTO_USED(i2d_TS_MSG_IMPRINT_fp);
44LCRYPTO_USED(d2i_TS_MSG_IMPRINT_bio);
45LCRYPTO_USED(i2d_TS_MSG_IMPRINT_bio);
46LCRYPTO_USED(TS_RESP_new);
47LCRYPTO_USED(TS_RESP_free);
48LCRYPTO_USED(i2d_TS_RESP);
49LCRYPTO_USED(d2i_TS_RESP);
50LCRYPTO_USED(PKCS7_to_TS_TST_INFO);
51LCRYPTO_USED(TS_RESP_dup);
52LCRYPTO_USED(d2i_TS_RESP_fp);
53LCRYPTO_USED(i2d_TS_RESP_fp);
54LCRYPTO_USED(d2i_TS_RESP_bio);
55LCRYPTO_USED(i2d_TS_RESP_bio);
56LCRYPTO_USED(TS_STATUS_INFO_new);
57LCRYPTO_USED(TS_STATUS_INFO_free);
58LCRYPTO_USED(i2d_TS_STATUS_INFO);
59LCRYPTO_USED(d2i_TS_STATUS_INFO);
60LCRYPTO_USED(TS_STATUS_INFO_dup);
61LCRYPTO_USED(TS_TST_INFO_new);
62LCRYPTO_USED(TS_TST_INFO_free);
63LCRYPTO_USED(i2d_TS_TST_INFO);
64LCRYPTO_USED(d2i_TS_TST_INFO);
65LCRYPTO_USED(TS_TST_INFO_dup);
66LCRYPTO_USED(d2i_TS_TST_INFO_fp);
67LCRYPTO_USED(i2d_TS_TST_INFO_fp);
68LCRYPTO_USED(d2i_TS_TST_INFO_bio);
69LCRYPTO_USED(i2d_TS_TST_INFO_bio);
70LCRYPTO_USED(TS_ACCURACY_new);
71LCRYPTO_USED(TS_ACCURACY_free);
72LCRYPTO_USED(i2d_TS_ACCURACY);
73LCRYPTO_USED(d2i_TS_ACCURACY);
74LCRYPTO_USED(TS_ACCURACY_dup);
75LCRYPTO_USED(ESS_ISSUER_SERIAL_new);
76LCRYPTO_USED(ESS_ISSUER_SERIAL_free);
77LCRYPTO_USED(i2d_ESS_ISSUER_SERIAL);
78LCRYPTO_USED(d2i_ESS_ISSUER_SERIAL);
79LCRYPTO_USED(ESS_ISSUER_SERIAL_dup);
80LCRYPTO_USED(ESS_CERT_ID_new);
81LCRYPTO_USED(ESS_CERT_ID_free);
82LCRYPTO_USED(i2d_ESS_CERT_ID);
83LCRYPTO_USED(d2i_ESS_CERT_ID);
84LCRYPTO_USED(ESS_CERT_ID_dup);
85LCRYPTO_USED(ESS_SIGNING_CERT_new);
86LCRYPTO_USED(ESS_SIGNING_CERT_free);
87LCRYPTO_USED(i2d_ESS_SIGNING_CERT);
88LCRYPTO_USED(d2i_ESS_SIGNING_CERT);
89LCRYPTO_USED(ESS_SIGNING_CERT_dup);
90LCRYPTO_USED(TS_REQ_set_version);
91LCRYPTO_USED(TS_REQ_get_version);
92LCRYPTO_USED(TS_REQ_set_msg_imprint);
93LCRYPTO_USED(TS_REQ_get_msg_imprint);
94LCRYPTO_USED(TS_MSG_IMPRINT_set_algo);
95LCRYPTO_USED(TS_MSG_IMPRINT_get_algo);
96LCRYPTO_USED(TS_MSG_IMPRINT_set_msg);
97LCRYPTO_USED(TS_MSG_IMPRINT_get_msg);
98LCRYPTO_USED(TS_REQ_set_policy_id);
99LCRYPTO_USED(TS_REQ_get_policy_id);
100LCRYPTO_USED(TS_REQ_set_nonce);
101LCRYPTO_USED(TS_REQ_get_nonce);
102LCRYPTO_USED(TS_REQ_set_cert_req);
103LCRYPTO_USED(TS_REQ_get_cert_req);
104LCRYPTO_USED(TS_REQ_get_exts);
105LCRYPTO_USED(TS_REQ_ext_free);
106LCRYPTO_USED(TS_REQ_get_ext_count);
107LCRYPTO_USED(TS_REQ_get_ext_by_NID);
108LCRYPTO_USED(TS_REQ_get_ext_by_OBJ);
109LCRYPTO_USED(TS_REQ_get_ext_by_critical);
110LCRYPTO_USED(TS_REQ_get_ext);
111LCRYPTO_USED(TS_REQ_delete_ext);
112LCRYPTO_USED(TS_REQ_add_ext);
113LCRYPTO_USED(TS_REQ_get_ext_d2i);
114LCRYPTO_USED(TS_REQ_print_bio);
115LCRYPTO_USED(TS_RESP_set_status_info);
116LCRYPTO_USED(TS_RESP_get_status_info);
117LCRYPTO_USED(TS_STATUS_INFO_get0_failure_info);
118LCRYPTO_USED(TS_STATUS_INFO_get0_text);
119LCRYPTO_USED(TS_STATUS_INFO_get0_status);
120LCRYPTO_USED(TS_STATUS_INFO_set_status);
121LCRYPTO_USED(TS_RESP_set_tst_info);
122LCRYPTO_USED(TS_RESP_get_token);
123LCRYPTO_USED(TS_RESP_get_tst_info);
124LCRYPTO_USED(TS_TST_INFO_set_version);
125LCRYPTO_USED(TS_TST_INFO_get_version);
126LCRYPTO_USED(TS_TST_INFO_set_policy_id);
127LCRYPTO_USED(TS_TST_INFO_get_policy_id);
128LCRYPTO_USED(TS_TST_INFO_set_msg_imprint);
129LCRYPTO_USED(TS_TST_INFO_get_msg_imprint);
130LCRYPTO_USED(TS_TST_INFO_set_serial);
131LCRYPTO_USED(TS_TST_INFO_get_serial);
132LCRYPTO_USED(TS_TST_INFO_set_time);
133LCRYPTO_USED(TS_TST_INFO_get_time);
134LCRYPTO_USED(TS_TST_INFO_set_accuracy);
135LCRYPTO_USED(TS_TST_INFO_get_accuracy);
136LCRYPTO_USED(TS_ACCURACY_set_seconds);
137LCRYPTO_USED(TS_ACCURACY_get_seconds);
138LCRYPTO_USED(TS_ACCURACY_set_millis);
139LCRYPTO_USED(TS_ACCURACY_get_millis);
140LCRYPTO_USED(TS_ACCURACY_set_micros);
141LCRYPTO_USED(TS_ACCURACY_get_micros);
142LCRYPTO_USED(TS_TST_INFO_set_ordering);
143LCRYPTO_USED(TS_TST_INFO_get_ordering);
144LCRYPTO_USED(TS_TST_INFO_set_nonce);
145LCRYPTO_USED(TS_TST_INFO_get_nonce);
146LCRYPTO_USED(TS_TST_INFO_set_tsa);
147LCRYPTO_USED(TS_TST_INFO_get_tsa);
148LCRYPTO_USED(TS_TST_INFO_get_exts);
149LCRYPTO_USED(TS_TST_INFO_ext_free);
150LCRYPTO_USED(TS_TST_INFO_get_ext_count);
151LCRYPTO_USED(TS_TST_INFO_get_ext_by_NID);
152LCRYPTO_USED(TS_TST_INFO_get_ext_by_OBJ);
153LCRYPTO_USED(TS_TST_INFO_get_ext_by_critical);
154LCRYPTO_USED(TS_TST_INFO_get_ext);
155LCRYPTO_USED(TS_TST_INFO_delete_ext);
156LCRYPTO_USED(TS_TST_INFO_add_ext);
157LCRYPTO_USED(TS_TST_INFO_get_ext_d2i);
158LCRYPTO_USED(TS_RESP_CTX_new);
159LCRYPTO_USED(TS_RESP_CTX_free);
160LCRYPTO_USED(TS_RESP_CTX_set_signer_cert);
161LCRYPTO_USED(TS_RESP_CTX_set_signer_key);
162LCRYPTO_USED(TS_RESP_CTX_set_def_policy);
163LCRYPTO_USED(TS_RESP_CTX_set_certs);
164LCRYPTO_USED(TS_RESP_CTX_add_policy);
165LCRYPTO_USED(TS_RESP_CTX_add_md);
166LCRYPTO_USED(TS_RESP_CTX_set_accuracy);
167LCRYPTO_USED(TS_RESP_CTX_set_clock_precision_digits);
168LCRYPTO_USED(TS_RESP_CTX_add_flags);
169LCRYPTO_USED(TS_RESP_CTX_set_serial_cb);
170LCRYPTO_USED(TS_RESP_CTX_set_time_cb);
171LCRYPTO_USED(TS_RESP_CTX_set_extension_cb);
172LCRYPTO_USED(TS_RESP_CTX_set_status_info);
173LCRYPTO_USED(TS_RESP_CTX_set_status_info_cond);
174LCRYPTO_USED(TS_RESP_CTX_add_failure_info);
175LCRYPTO_USED(TS_RESP_CTX_get_request);
176LCRYPTO_USED(TS_RESP_CTX_get_tst_info);
177LCRYPTO_USED(TS_RESP_create_response);
178LCRYPTO_USED(TS_RESP_verify_signature);
179LCRYPTO_USED(TS_RESP_verify_response);
180LCRYPTO_USED(TS_RESP_verify_token);
181LCRYPTO_USED(TS_VERIFY_CTX_new);
182LCRYPTO_USED(TS_VERIFY_CTX_free);
183LCRYPTO_USED(TS_VERIFY_CTX_cleanup);
184LCRYPTO_USED(TS_VERIFY_CTX_add_flags);
185LCRYPTO_USED(TS_VERIFY_CTX_set_flags);
186LCRYPTO_USED(TS_VERIFY_CTX_set_data);
187LCRYPTO_USED(TS_VERIFY_CTX_set_store);
188LCRYPTO_USED(TS_VERIFY_CTX_set_certs);
189LCRYPTO_USED(TS_VERIFY_CTX_set_imprint);
190LCRYPTO_USED(TS_REQ_to_TS_VERIFY_CTX);
191LCRYPTO_USED(TS_RESP_print_bio);
192LCRYPTO_USED(TS_STATUS_INFO_print_bio);
193LCRYPTO_USED(TS_TST_INFO_print_bio);
194LCRYPTO_USED(TS_ASN1_INTEGER_print_bio);
195LCRYPTO_USED(TS_OBJ_print_bio);
196LCRYPTO_USED(TS_ext_print_bio);
197LCRYPTO_USED(TS_X509_ALGOR_print_bio);
198LCRYPTO_USED(TS_MSG_IMPRINT_print_bio);
199LCRYPTO_USED(TS_CONF_load_cert);
200LCRYPTO_USED(TS_CONF_load_certs);
201LCRYPTO_USED(TS_CONF_load_key);
202LCRYPTO_USED(TS_CONF_get_tsa_section);
203LCRYPTO_USED(TS_CONF_set_serial);
204LCRYPTO_USED(TS_CONF_set_signer_cert);
205LCRYPTO_USED(TS_CONF_set_certs);
206LCRYPTO_USED(TS_CONF_set_signer_key);
207LCRYPTO_USED(TS_CONF_set_def_policy);
208LCRYPTO_USED(TS_CONF_set_policies);
209LCRYPTO_USED(TS_CONF_set_digests);
210LCRYPTO_USED(TS_CONF_set_accuracy);
211LCRYPTO_USED(TS_CONF_set_clock_precision_digits);
212LCRYPTO_USED(TS_CONF_set_ordering);
213LCRYPTO_USED(TS_CONF_set_tsa_name);
214LCRYPTO_USED(TS_CONF_set_ess_cert_id_chain);
215LCRYPTO_USED(ERR_load_TS_strings);
216
217#endif /* _LIBCRYPTO_TS_H */
diff --git a/src/lib/libcrypto/hidden/openssl/txt_db.h b/src/lib/libcrypto/hidden/openssl/txt_db.h
deleted file mode 100644
index f93dbc67d2..0000000000
--- a/src/lib/libcrypto/hidden/openssl/txt_db.h
+++ /dev/null
@@ -1,35 +0,0 @@
1/* $OpenBSD: txt_db.h,v 1.1 2023/07/08 11:28:03 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_TXT_DB_H
19#define _LIBCRYPTO_TXT_DB_H
20
21#ifndef _MSC_VER
22#include_next <openssl/txt_db.h>
23#else
24#include "../include/openssl/txt_db.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(TXT_DB_read);
29LCRYPTO_USED(TXT_DB_write);
30LCRYPTO_USED(TXT_DB_create_index);
31LCRYPTO_USED(TXT_DB_free);
32LCRYPTO_USED(TXT_DB_get_by_index);
33LCRYPTO_USED(TXT_DB_insert);
34
35#endif /* _LIBCRYPTO_TXT_DB_H */
diff --git a/src/lib/libcrypto/hidden/openssl/ui.h b/src/lib/libcrypto/hidden/openssl/ui.h
deleted file mode 100644
index 7bf849d4c3..0000000000
--- a/src/lib/libcrypto/hidden/openssl/ui.h
+++ /dev/null
@@ -1,81 +0,0 @@
1/* $OpenBSD: ui.h,v 1.5 2024/08/31 10:28:03 tb Exp $ */
2/*
3 * Copyright (c) 2022 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_UI_H
19#define _LIBCRYPTO_UI_H
20
21#ifndef _MSC_VER
22#include_next <openssl/ui.h>
23#else
24#include "../include/openssl/ui.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(UI_new);
29LCRYPTO_USED(UI_new_method);
30LCRYPTO_USED(UI_free);
31LCRYPTO_USED(UI_add_input_string);
32LCRYPTO_USED(UI_dup_input_string);
33LCRYPTO_USED(UI_add_verify_string);
34LCRYPTO_USED(UI_dup_verify_string);
35LCRYPTO_USED(UI_add_input_boolean);
36LCRYPTO_USED(UI_dup_input_boolean);
37LCRYPTO_USED(UI_add_info_string);
38LCRYPTO_USED(UI_dup_info_string);
39LCRYPTO_USED(UI_add_error_string);
40LCRYPTO_USED(UI_dup_error_string);
41LCRYPTO_USED(UI_construct_prompt);
42LCRYPTO_USED(UI_add_user_data);
43LCRYPTO_USED(UI_get0_user_data);
44LCRYPTO_USED(UI_get0_result);
45LCRYPTO_USED(UI_process);
46LCRYPTO_USED(UI_ctrl);
47LCRYPTO_USED(UI_get_ex_new_index);
48LCRYPTO_USED(UI_set_ex_data);
49LCRYPTO_USED(UI_get_ex_data);
50LCRYPTO_USED(UI_set_default_method);
51LCRYPTO_USED(UI_get_default_method);
52LCRYPTO_USED(UI_get_method);
53LCRYPTO_USED(UI_set_method);
54LCRYPTO_USED(UI_OpenSSL);
55LCRYPTO_USED(UI_null);
56LCRYPTO_USED(UI_create_method);
57LCRYPTO_USED(UI_destroy_method);
58LCRYPTO_USED(UI_method_set_opener);
59LCRYPTO_USED(UI_method_set_writer);
60LCRYPTO_USED(UI_method_set_flusher);
61LCRYPTO_USED(UI_method_set_reader);
62LCRYPTO_USED(UI_method_set_closer);
63LCRYPTO_USED(UI_method_set_prompt_constructor);
64LCRYPTO_USED(UI_method_get_opener);
65LCRYPTO_USED(UI_method_get_writer);
66LCRYPTO_USED(UI_method_get_flusher);
67LCRYPTO_USED(UI_method_get_reader);
68LCRYPTO_USED(UI_method_get_closer);
69LCRYPTO_USED(UI_get_string_type);
70LCRYPTO_USED(UI_get_input_flags);
71LCRYPTO_USED(UI_get0_output_string);
72LCRYPTO_USED(UI_get0_action_string);
73LCRYPTO_USED(UI_get0_result_string);
74LCRYPTO_USED(UI_get0_test_string);
75LCRYPTO_USED(UI_get_result_minsize);
76LCRYPTO_USED(UI_get_result_maxsize);
77LCRYPTO_USED(UI_set_result);
78LCRYPTO_USED(ERR_load_UI_strings);
79LCRYPTO_USED(UI_method_get_prompt_constructor);
80
81#endif /* _LIBCRYPTO_UI_H */
diff --git a/src/lib/libcrypto/hidden/openssl/x509.h b/src/lib/libcrypto/hidden/openssl/x509.h
deleted file mode 100644
index e6104cd451..0000000000
--- a/src/lib/libcrypto/hidden/openssl/x509.h
+++ /dev/null
@@ -1,468 +0,0 @@
1/* $OpenBSD: x509.h,v 1.15 2025/03/09 15:17:22 tb Exp $ */
2/*
3 * Copyright (c) 2022 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_X509_H
19#define _LIBCRYPTO_X509_H
20
21#ifndef _MSC_VER
22#include_next <openssl/x509.h>
23#else
24#include "../include/openssl/x509.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(X509_CRL_up_ref);
29LCRYPTO_USED(i2d_re_X509_CRL_tbs);
30LCRYPTO_USED(X509_get_X509_PUBKEY);
31LCRYPTO_USED(X509_verify_cert_error_string);
32LCRYPTO_USED(X509_verify);
33LCRYPTO_USED(X509_REQ_verify);
34LCRYPTO_USED(NETSCAPE_SPKI_verify);
35LCRYPTO_USED(NETSCAPE_SPKI_b64_decode);
36LCRYPTO_USED(NETSCAPE_SPKI_b64_encode);
37LCRYPTO_USED(NETSCAPE_SPKI_get_pubkey);
38LCRYPTO_USED(NETSCAPE_SPKI_set_pubkey);
39LCRYPTO_USED(X509_sign);
40LCRYPTO_USED(X509_sign_ctx);
41LCRYPTO_USED(X509_REQ_sign);
42LCRYPTO_USED(X509_REQ_sign_ctx);
43LCRYPTO_USED(X509_CRL_sign);
44LCRYPTO_USED(X509_CRL_sign_ctx);
45LCRYPTO_USED(NETSCAPE_SPKI_sign);
46LCRYPTO_USED(X509_pubkey_digest);
47LCRYPTO_USED(X509_digest);
48LCRYPTO_USED(X509_CRL_digest);
49LCRYPTO_USED(X509_REQ_digest);
50LCRYPTO_USED(X509_NAME_digest);
51LCRYPTO_USED(d2i_X509_fp);
52LCRYPTO_USED(i2d_X509_fp);
53LCRYPTO_USED(d2i_X509_CRL_fp);
54LCRYPTO_USED(i2d_X509_CRL_fp);
55LCRYPTO_USED(d2i_X509_REQ_fp);
56LCRYPTO_USED(i2d_X509_REQ_fp);
57LCRYPTO_USED(d2i_RSAPrivateKey_fp);
58LCRYPTO_USED(i2d_RSAPrivateKey_fp);
59LCRYPTO_USED(d2i_RSAPublicKey_fp);
60LCRYPTO_USED(i2d_RSAPublicKey_fp);
61LCRYPTO_USED(d2i_DSAPrivateKey_fp);
62LCRYPTO_USED(i2d_DSAPrivateKey_fp);
63LCRYPTO_USED(d2i_ECPrivateKey_fp);
64LCRYPTO_USED(i2d_ECPrivateKey_fp);
65LCRYPTO_USED(d2i_PKCS8_fp);
66LCRYPTO_USED(i2d_PKCS8_fp);
67LCRYPTO_USED(d2i_PKCS8_PRIV_KEY_INFO_fp);
68LCRYPTO_USED(i2d_PKCS8_PRIV_KEY_INFO_fp);
69LCRYPTO_USED(i2d_PKCS8PrivateKeyInfo_fp);
70LCRYPTO_USED(i2d_PrivateKey_fp);
71LCRYPTO_USED(d2i_PrivateKey_fp);
72LCRYPTO_USED(d2i_X509_bio);
73LCRYPTO_USED(i2d_X509_bio);
74LCRYPTO_USED(d2i_X509_CRL_bio);
75LCRYPTO_USED(i2d_X509_CRL_bio);
76LCRYPTO_USED(d2i_X509_REQ_bio);
77LCRYPTO_USED(i2d_X509_REQ_bio);
78LCRYPTO_USED(d2i_RSAPrivateKey_bio);
79LCRYPTO_USED(i2d_RSAPrivateKey_bio);
80LCRYPTO_USED(d2i_RSAPublicKey_bio);
81LCRYPTO_USED(i2d_RSAPublicKey_bio);
82LCRYPTO_USED(d2i_DSAPrivateKey_bio);
83LCRYPTO_USED(i2d_DSAPrivateKey_bio);
84LCRYPTO_USED(d2i_ECPrivateKey_bio);
85LCRYPTO_USED(i2d_ECPrivateKey_bio);
86LCRYPTO_USED(d2i_PKCS8_bio);
87LCRYPTO_USED(i2d_PKCS8_bio);
88LCRYPTO_USED(d2i_PKCS8_PRIV_KEY_INFO_bio);
89LCRYPTO_USED(i2d_PKCS8_PRIV_KEY_INFO_bio);
90LCRYPTO_USED(i2d_PKCS8PrivateKeyInfo_bio);
91LCRYPTO_USED(i2d_PrivateKey_bio);
92LCRYPTO_USED(d2i_PrivateKey_bio);
93LCRYPTO_USED(X509_cmp_time);
94LCRYPTO_USED(X509_cmp_current_time);
95LCRYPTO_USED(X509_time_adj);
96LCRYPTO_USED(X509_time_adj_ex);
97LCRYPTO_USED(X509_gmtime_adj);
98LCRYPTO_USED(X509_get_default_cert_area);
99LCRYPTO_USED(X509_get_default_cert_dir);
100LCRYPTO_USED(X509_get_default_cert_file);
101LCRYPTO_USED(X509_get_default_cert_dir_env);
102LCRYPTO_USED(X509_get_default_cert_file_env);
103LCRYPTO_USED(X509_get_default_private_dir);
104LCRYPTO_USED(X509_to_X509_REQ);
105LCRYPTO_USED(X509_REQ_to_X509);
106LCRYPTO_USED(X509_get_pubkey_parameters);
107LCRYPTO_USED(X509_NAME_oneline);
108LCRYPTO_USED(X509_get0_extensions);
109LCRYPTO_USED(X509_get0_tbs_sigalg);
110LCRYPTO_USED(X509_get0_uids);
111LCRYPTO_USED(X509_set_version);
112LCRYPTO_USED(X509_get_version);
113LCRYPTO_USED(X509_set_serialNumber);
114LCRYPTO_USED(X509_get_serialNumber);
115LCRYPTO_USED(X509_get0_serialNumber);
116LCRYPTO_USED(X509_set_issuer_name);
117LCRYPTO_USED(X509_get_issuer_name);
118LCRYPTO_USED(X509_set_subject_name);
119LCRYPTO_USED(X509_get_subject_name);
120LCRYPTO_USED(X509_set_notBefore);
121LCRYPTO_USED(X509_set1_notBefore);
122LCRYPTO_USED(X509_set_notAfter);
123LCRYPTO_USED(X509_set1_notAfter);
124LCRYPTO_USED(X509_get0_notBefore);
125LCRYPTO_USED(X509_getm_notBefore);
126LCRYPTO_USED(X509_get0_notAfter);
127LCRYPTO_USED(X509_getm_notAfter);
128LCRYPTO_USED(X509_set_pubkey);
129LCRYPTO_USED(X509_get_pubkey);
130LCRYPTO_USED(X509_get0_pubkey);
131LCRYPTO_USED(X509_get0_pubkey_bitstr);
132LCRYPTO_USED(X509_certificate_type);
133LCRYPTO_USED(X509_get_signature_type);
134LCRYPTO_USED(X509_REQ_set_version);
135LCRYPTO_USED(X509_REQ_get_version);
136LCRYPTO_USED(X509_REQ_set_subject_name);
137LCRYPTO_USED(X509_REQ_get_subject_name);
138LCRYPTO_USED(X509_REQ_set_pubkey);
139LCRYPTO_USED(X509_REQ_get_pubkey);
140LCRYPTO_USED(i2d_re_X509_REQ_tbs);
141LCRYPTO_USED(X509_REQ_get0_pubkey);
142LCRYPTO_USED(X509_REQ_extension_nid);
143LCRYPTO_USED(X509_REQ_get_extensions);
144LCRYPTO_USED(X509_REQ_add_extensions_nid);
145LCRYPTO_USED(X509_REQ_add_extensions);
146LCRYPTO_USED(X509_REQ_get_attr_count);
147LCRYPTO_USED(X509_REQ_get_attr_by_NID);
148LCRYPTO_USED(X509_REQ_get_attr_by_OBJ);
149LCRYPTO_USED(X509_REQ_get_attr);
150LCRYPTO_USED(X509_REQ_delete_attr);
151LCRYPTO_USED(X509_REQ_add1_attr);
152LCRYPTO_USED(X509_REQ_add1_attr_by_OBJ);
153LCRYPTO_USED(X509_REQ_add1_attr_by_NID);
154LCRYPTO_USED(X509_REQ_add1_attr_by_txt);
155LCRYPTO_USED(X509_CRL_set_version);
156LCRYPTO_USED(X509_CRL_set_issuer_name);
157LCRYPTO_USED(X509_CRL_set_lastUpdate);
158LCRYPTO_USED(X509_CRL_set1_lastUpdate);
159LCRYPTO_USED(X509_CRL_set_nextUpdate);
160LCRYPTO_USED(X509_CRL_set1_nextUpdate);
161LCRYPTO_USED(X509_CRL_sort);
162LCRYPTO_USED(X509_REVOKED_get0_extensions);
163LCRYPTO_USED(X509_REVOKED_get0_revocationDate);
164LCRYPTO_USED(X509_REVOKED_get0_serialNumber);
165LCRYPTO_USED(X509_REVOKED_set_revocationDate);
166LCRYPTO_USED(X509_REVOKED_set_serialNumber);
167LCRYPTO_USED(X509_REQ_check_private_key);
168LCRYPTO_USED(X509_check_private_key);
169LCRYPTO_USED(X509_issuer_and_serial_cmp);
170LCRYPTO_USED(X509_issuer_and_serial_hash);
171LCRYPTO_USED(X509_issuer_name_cmp);
172LCRYPTO_USED(X509_issuer_name_hash);
173LCRYPTO_USED(X509_subject_name_cmp);
174LCRYPTO_USED(X509_subject_name_hash);
175LCRYPTO_USED(X509_issuer_name_hash_old);
176LCRYPTO_USED(X509_subject_name_hash_old);
177LCRYPTO_USED(X509_cmp);
178LCRYPTO_USED(X509_NAME_cmp);
179LCRYPTO_USED(X509_NAME_hash);
180LCRYPTO_USED(X509_NAME_hash_old);
181LCRYPTO_USED(X509_CRL_cmp);
182LCRYPTO_USED(X509_CRL_match);
183LCRYPTO_USED(X509_NAME_entry_count);
184LCRYPTO_USED(X509_NAME_get_text_by_NID);
185LCRYPTO_USED(X509_NAME_get_text_by_OBJ);
186LCRYPTO_USED(X509_NAME_get_index_by_NID);
187LCRYPTO_USED(X509_NAME_get_index_by_OBJ);
188LCRYPTO_USED(X509_NAME_get_entry);
189LCRYPTO_USED(X509_NAME_delete_entry);
190LCRYPTO_USED(X509_NAME_add_entry);
191LCRYPTO_USED(X509_NAME_add_entry_by_OBJ);
192LCRYPTO_USED(X509_NAME_add_entry_by_NID);
193LCRYPTO_USED(X509_NAME_ENTRY_create_by_txt);
194LCRYPTO_USED(X509_NAME_ENTRY_create_by_NID);
195LCRYPTO_USED(X509_NAME_add_entry_by_txt);
196LCRYPTO_USED(X509_NAME_ENTRY_create_by_OBJ);
197LCRYPTO_USED(X509_NAME_ENTRY_set_object);
198LCRYPTO_USED(X509_NAME_ENTRY_set_data);
199LCRYPTO_USED(X509_NAME_ENTRY_get_object);
200LCRYPTO_USED(X509_NAME_ENTRY_get_data);
201LCRYPTO_USED(X509_NAME_ENTRY_set);
202LCRYPTO_USED(X509v3_get_ext_count);
203LCRYPTO_USED(X509v3_get_ext_by_NID);
204LCRYPTO_USED(X509v3_get_ext_by_OBJ);
205LCRYPTO_USED(X509v3_get_ext_by_critical);
206LCRYPTO_USED(X509v3_get_ext);
207LCRYPTO_USED(X509v3_delete_ext);
208LCRYPTO_USED(X509v3_add_ext);
209LCRYPTO_USED(X509_get_ext_count);
210LCRYPTO_USED(X509_get_ext_by_NID);
211LCRYPTO_USED(X509_get_ext_by_OBJ);
212LCRYPTO_USED(X509_get_ext_by_critical);
213LCRYPTO_USED(X509_get_ext);
214LCRYPTO_USED(X509_delete_ext);
215LCRYPTO_USED(X509_add_ext);
216LCRYPTO_USED(X509_get_ext_d2i);
217LCRYPTO_USED(X509_add1_ext_i2d);
218LCRYPTO_USED(X509_CRL_get_ext_count);
219LCRYPTO_USED(X509_CRL_get_ext_by_NID);
220LCRYPTO_USED(X509_CRL_get_ext_by_OBJ);
221LCRYPTO_USED(X509_CRL_get_ext_by_critical);
222LCRYPTO_USED(X509_CRL_get_ext);
223LCRYPTO_USED(X509_CRL_delete_ext);
224LCRYPTO_USED(X509_CRL_add_ext);
225LCRYPTO_USED(X509_CRL_get_ext_d2i);
226LCRYPTO_USED(X509_CRL_add1_ext_i2d);
227LCRYPTO_USED(X509_REVOKED_get_ext_count);
228LCRYPTO_USED(X509_REVOKED_get_ext_by_NID);
229LCRYPTO_USED(X509_REVOKED_get_ext_by_OBJ);
230LCRYPTO_USED(X509_REVOKED_get_ext_by_critical);
231LCRYPTO_USED(X509_REVOKED_get_ext);
232LCRYPTO_USED(X509_REVOKED_delete_ext);
233LCRYPTO_USED(X509_REVOKED_add_ext);
234LCRYPTO_USED(X509_REVOKED_get_ext_d2i);
235LCRYPTO_USED(X509_REVOKED_add1_ext_i2d);
236LCRYPTO_USED(X509_EXTENSION_create_by_NID);
237LCRYPTO_USED(X509_EXTENSION_create_by_OBJ);
238LCRYPTO_USED(X509_EXTENSION_set_object);
239LCRYPTO_USED(X509_EXTENSION_set_critical);
240LCRYPTO_USED(X509_EXTENSION_set_data);
241LCRYPTO_USED(X509_EXTENSION_get_object);
242LCRYPTO_USED(X509_EXTENSION_get_data);
243LCRYPTO_USED(X509_EXTENSION_get_critical);
244LCRYPTO_USED(X509_ATTRIBUTE_create_by_NID);
245LCRYPTO_USED(X509_ATTRIBUTE_create_by_OBJ);
246LCRYPTO_USED(X509_ATTRIBUTE_create_by_txt);
247LCRYPTO_USED(X509_ATTRIBUTE_set1_object);
248LCRYPTO_USED(X509_ATTRIBUTE_set1_data);
249LCRYPTO_USED(X509_ATTRIBUTE_get0_data);
250LCRYPTO_USED(X509_ATTRIBUTE_count);
251LCRYPTO_USED(X509_ATTRIBUTE_get0_object);
252LCRYPTO_USED(X509_ATTRIBUTE_get0_type);
253LCRYPTO_USED(X509_verify_cert);
254LCRYPTO_USED(X509_find_by_issuer_and_serial);
255LCRYPTO_USED(X509_find_by_subject);
256LCRYPTO_USED(X509_up_ref);
257LCRYPTO_USED(X509_chain_up_ref);
258LCRYPTO_USED(ERR_load_X509_strings);
259LCRYPTO_USED(X509_CRL_get_signature_nid);
260LCRYPTO_USED(X509_CRL_get0_extensions);
261LCRYPTO_USED(X509_CRL_get_version);
262LCRYPTO_USED(X509_CRL_get0_lastUpdate);
263LCRYPTO_USED(X509_CRL_get0_nextUpdate);
264LCRYPTO_USED(X509_CRL_get_lastUpdate);
265LCRYPTO_USED(X509_CRL_get_nextUpdate);
266LCRYPTO_USED(X509_CRL_get_issuer);
267LCRYPTO_USED(X509_CRL_get_REVOKED);
268LCRYPTO_USED(X509_CRL_get0_signature);
269LCRYPTO_USED(X509_CRL_get0_tbs_sigalg);
270LCRYPTO_USED(X509_REQ_get_signature_nid);
271LCRYPTO_USED(X509_REQ_get0_signature);
272LCRYPTO_USED(X509_CRL_verify);
273LCRYPTO_USED(NETSCAPE_SPKI_print);
274LCRYPTO_USED(X509_signature_dump);
275LCRYPTO_USED(X509_signature_print);
276LCRYPTO_USED(d2i_RSA_PUBKEY_fp);
277LCRYPTO_USED(i2d_RSA_PUBKEY_fp);
278LCRYPTO_USED(d2i_DSA_PUBKEY_fp);
279LCRYPTO_USED(i2d_DSA_PUBKEY_fp);
280LCRYPTO_USED(d2i_EC_PUBKEY_fp);
281LCRYPTO_USED(i2d_EC_PUBKEY_fp);
282LCRYPTO_USED(i2d_PUBKEY_fp);
283LCRYPTO_USED(d2i_PUBKEY_fp);
284LCRYPTO_USED(d2i_RSA_PUBKEY_bio);
285LCRYPTO_USED(i2d_RSA_PUBKEY_bio);
286LCRYPTO_USED(d2i_DSA_PUBKEY_bio);
287LCRYPTO_USED(i2d_DSA_PUBKEY_bio);
288LCRYPTO_USED(d2i_EC_PUBKEY_bio);
289LCRYPTO_USED(i2d_EC_PUBKEY_bio);
290LCRYPTO_USED(i2d_PUBKEY_bio);
291LCRYPTO_USED(d2i_PUBKEY_bio);
292LCRYPTO_USED(X509_dup);
293LCRYPTO_USED(X509_ATTRIBUTE_dup);
294LCRYPTO_USED(X509_EXTENSION_dup);
295LCRYPTO_USED(X509_CRL_dup);
296LCRYPTO_USED(X509_REQ_dup);
297LCRYPTO_USED(X509_ALGOR_dup);
298LCRYPTO_USED(X509_ALGOR_set0);
299LCRYPTO_USED(X509_ALGOR_get0);
300LCRYPTO_USED(X509_ALGOR_cmp);
301LCRYPTO_USED(X509_NAME_dup);
302LCRYPTO_USED(X509_NAME_get0_der);
303LCRYPTO_USED(X509_NAME_ENTRY_dup);
304LCRYPTO_USED(X509_ALGOR_new);
305LCRYPTO_USED(X509_ALGOR_free);
306LCRYPTO_USED(d2i_X509_ALGOR);
307LCRYPTO_USED(i2d_X509_ALGOR);
308LCRYPTO_USED(d2i_X509_ALGORS);
309LCRYPTO_USED(i2d_X509_ALGORS);
310LCRYPTO_USED(X509_VAL_new);
311LCRYPTO_USED(X509_VAL_free);
312LCRYPTO_USED(d2i_X509_VAL);
313LCRYPTO_USED(i2d_X509_VAL);
314LCRYPTO_USED(X509_PUBKEY_new);
315LCRYPTO_USED(X509_PUBKEY_free);
316LCRYPTO_USED(d2i_X509_PUBKEY);
317LCRYPTO_USED(i2d_X509_PUBKEY);
318LCRYPTO_USED(X509_PUBKEY_set);
319LCRYPTO_USED(X509_PUBKEY_get);
320LCRYPTO_USED(X509_PUBKEY_get0);
321LCRYPTO_USED(i2d_PUBKEY);
322LCRYPTO_USED(d2i_PUBKEY);
323LCRYPTO_USED(i2d_RSA_PUBKEY);
324LCRYPTO_USED(d2i_RSA_PUBKEY);
325LCRYPTO_USED(i2d_DSA_PUBKEY);
326LCRYPTO_USED(d2i_DSA_PUBKEY);
327LCRYPTO_USED(i2d_EC_PUBKEY);
328LCRYPTO_USED(d2i_EC_PUBKEY);
329LCRYPTO_USED(X509_SIG_new);
330LCRYPTO_USED(X509_SIG_free);
331LCRYPTO_USED(d2i_X509_SIG);
332LCRYPTO_USED(i2d_X509_SIG);
333LCRYPTO_USED(X509_SIG_get0);
334LCRYPTO_USED(X509_SIG_getm);
335LCRYPTO_USED(X509_REQ_INFO_new);
336LCRYPTO_USED(X509_REQ_INFO_free);
337LCRYPTO_USED(d2i_X509_REQ_INFO);
338LCRYPTO_USED(i2d_X509_REQ_INFO);
339LCRYPTO_USED(X509_REQ_new);
340LCRYPTO_USED(X509_REQ_free);
341LCRYPTO_USED(d2i_X509_REQ);
342LCRYPTO_USED(i2d_X509_REQ);
343LCRYPTO_USED(X509_ATTRIBUTE_new);
344LCRYPTO_USED(X509_ATTRIBUTE_free);
345LCRYPTO_USED(d2i_X509_ATTRIBUTE);
346LCRYPTO_USED(i2d_X509_ATTRIBUTE);
347LCRYPTO_USED(X509_ATTRIBUTE_create);
348LCRYPTO_USED(X509_EXTENSION_new);
349LCRYPTO_USED(X509_EXTENSION_free);
350LCRYPTO_USED(d2i_X509_EXTENSION);
351LCRYPTO_USED(i2d_X509_EXTENSION);
352LCRYPTO_USED(d2i_X509_EXTENSIONS);
353LCRYPTO_USED(i2d_X509_EXTENSIONS);
354LCRYPTO_USED(X509_NAME_ENTRY_new);
355LCRYPTO_USED(X509_NAME_ENTRY_free);
356LCRYPTO_USED(d2i_X509_NAME_ENTRY);
357LCRYPTO_USED(i2d_X509_NAME_ENTRY);
358LCRYPTO_USED(X509_NAME_new);
359LCRYPTO_USED(X509_NAME_free);
360LCRYPTO_USED(d2i_X509_NAME);
361LCRYPTO_USED(i2d_X509_NAME);
362LCRYPTO_USED(X509_NAME_set);
363LCRYPTO_USED(X509_CINF_new);
364LCRYPTO_USED(X509_CINF_free);
365LCRYPTO_USED(d2i_X509_CINF);
366LCRYPTO_USED(i2d_X509_CINF);
367LCRYPTO_USED(X509_new);
368LCRYPTO_USED(X509_free);
369LCRYPTO_USED(d2i_X509);
370LCRYPTO_USED(i2d_X509);
371LCRYPTO_USED(X509_get_ex_new_index);
372LCRYPTO_USED(X509_set_ex_data);
373LCRYPTO_USED(X509_get_ex_data);
374LCRYPTO_USED(i2d_X509_AUX);
375LCRYPTO_USED(d2i_X509_AUX);
376LCRYPTO_USED(i2d_re_X509_tbs);
377LCRYPTO_USED(X509_get_signature_info);
378LCRYPTO_USED(X509_get0_signature);
379LCRYPTO_USED(X509_get_signature_nid);
380LCRYPTO_USED(X509_alias_set1);
381LCRYPTO_USED(X509_keyid_set1);
382LCRYPTO_USED(X509_alias_get0);
383LCRYPTO_USED(X509_keyid_get0);
384LCRYPTO_USED(X509_add1_trust_object);
385LCRYPTO_USED(X509_add1_reject_object);
386LCRYPTO_USED(X509_trust_clear);
387LCRYPTO_USED(X509_reject_clear);
388LCRYPTO_USED(X509_REVOKED_new);
389LCRYPTO_USED(X509_REVOKED_free);
390LCRYPTO_USED(X509_REVOKED_dup);
391LCRYPTO_USED(d2i_X509_REVOKED);
392LCRYPTO_USED(i2d_X509_REVOKED);
393LCRYPTO_USED(X509_CRL_INFO_new);
394LCRYPTO_USED(X509_CRL_INFO_free);
395LCRYPTO_USED(d2i_X509_CRL_INFO);
396LCRYPTO_USED(i2d_X509_CRL_INFO);
397LCRYPTO_USED(X509_CRL_new);
398LCRYPTO_USED(X509_CRL_free);
399LCRYPTO_USED(d2i_X509_CRL);
400LCRYPTO_USED(i2d_X509_CRL);
401LCRYPTO_USED(X509_CRL_add0_revoked);
402LCRYPTO_USED(X509_CRL_get0_by_serial);
403LCRYPTO_USED(X509_CRL_get0_by_cert);
404LCRYPTO_USED(X509_PKEY_new);
405LCRYPTO_USED(X509_PKEY_free);
406LCRYPTO_USED(NETSCAPE_SPKI_new);
407LCRYPTO_USED(NETSCAPE_SPKI_free);
408LCRYPTO_USED(d2i_NETSCAPE_SPKI);
409LCRYPTO_USED(i2d_NETSCAPE_SPKI);
410LCRYPTO_USED(NETSCAPE_SPKAC_new);
411LCRYPTO_USED(NETSCAPE_SPKAC_free);
412LCRYPTO_USED(d2i_NETSCAPE_SPKAC);
413LCRYPTO_USED(i2d_NETSCAPE_SPKAC);
414LCRYPTO_USED(X509_INFO_new);
415LCRYPTO_USED(X509_INFO_free);
416LCRYPTO_USED(ASN1_item_digest);
417LCRYPTO_USED(ASN1_item_verify);
418LCRYPTO_USED(ASN1_item_sign);
419LCRYPTO_USED(ASN1_item_sign_ctx);
420LCRYPTO_USED(X509_print_ex_fp);
421LCRYPTO_USED(X509_print_fp);
422LCRYPTO_USED(X509_CRL_print_fp);
423LCRYPTO_USED(X509_REQ_print_fp);
424LCRYPTO_USED(X509_NAME_print_ex_fp);
425LCRYPTO_USED(X509_NAME_print_ex);
426LCRYPTO_USED(X509_print_ex);
427LCRYPTO_USED(X509_print);
428LCRYPTO_USED(X509_ocspid_print);
429LCRYPTO_USED(X509_CRL_print);
430LCRYPTO_USED(X509_REQ_print_ex);
431LCRYPTO_USED(X509_REQ_print);
432LCRYPTO_USED(PKCS8_PRIV_KEY_INFO_new);
433LCRYPTO_USED(PKCS8_PRIV_KEY_INFO_free);
434LCRYPTO_USED(d2i_PKCS8_PRIV_KEY_INFO);
435LCRYPTO_USED(i2d_PKCS8_PRIV_KEY_INFO);
436LCRYPTO_USED(EVP_PKCS82PKEY);
437LCRYPTO_USED(EVP_PKEY2PKCS8);
438LCRYPTO_USED(PKCS8_pkey_set0);
439LCRYPTO_USED(PKCS8_pkey_get0);
440LCRYPTO_USED(PKCS8_pkey_get0_attrs);
441LCRYPTO_USED(PKCS8_pkey_add1_attr_by_NID);
442LCRYPTO_USED(X509_PUBKEY_set0_param);
443LCRYPTO_USED(X509_PUBKEY_get0_param);
444#if defined(LIBRESSL_NAMESPACE)
445extern LCRYPTO_USED(X509_ALGOR_it);
446extern LCRYPTO_USED(X509_ALGORS_it);
447extern LCRYPTO_USED(X509_VAL_it);
448extern LCRYPTO_USED(X509_PUBKEY_it);
449extern LCRYPTO_USED(X509_SIG_it);
450extern LCRYPTO_USED(X509_REQ_INFO_it);
451extern LCRYPTO_USED(X509_REQ_it);
452extern LCRYPTO_USED(X509_ATTRIBUTE_it);
453extern LCRYPTO_USED(X509_EXTENSION_it);
454extern LCRYPTO_USED(X509_EXTENSIONS_it);
455extern LCRYPTO_USED(X509_NAME_ENTRY_it);
456extern LCRYPTO_USED(X509_NAME_it);
457extern LCRYPTO_USED(X509_CINF_it);
458extern LCRYPTO_USED(X509_it);
459extern LCRYPTO_USED(X509_REVOKED_it);
460extern LCRYPTO_USED(X509_CRL_INFO_it);
461extern LCRYPTO_USED(X509_CRL_it);
462extern LCRYPTO_USED(NETSCAPE_SPKI_it);
463extern LCRYPTO_USED(NETSCAPE_SPKAC_it);
464extern LCRYPTO_USED(PBEPARAM_it);
465extern LCRYPTO_USED(PKCS8_PRIV_KEY_INFO_it);
466#endif
467
468#endif /* _LIBCRYPTO_X509_H */
diff --git a/src/lib/libcrypto/hidden/openssl/x509_vfy.h b/src/lib/libcrypto/hidden/openssl/x509_vfy.h
deleted file mode 100644
index cc0991518f..0000000000
--- a/src/lib/libcrypto/hidden/openssl/x509_vfy.h
+++ /dev/null
@@ -1,148 +0,0 @@
1/* $OpenBSD: x509_vfy.h,v 1.10 2025/03/09 15:20:20 tb Exp $ */
2/*
3 * Copyright (c) 2022 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_X509_VFY_H
19#define _LIBCRYPTO_X509_VFY_H
20
21#ifndef _MSC_VER
22#include_next <openssl/x509_vfy.h>
23#else
24#include "../include/openssl/x509_vfy.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(X509_STORE_set_depth);
29LCRYPTO_USED(X509_STORE_CTX_set_depth);
30LCRYPTO_USED(X509_OBJECT_new);
31LCRYPTO_USED(X509_OBJECT_free);
32LCRYPTO_USED(X509_OBJECT_idx_by_subject);
33LCRYPTO_USED(X509_OBJECT_retrieve_by_subject);
34LCRYPTO_USED(X509_OBJECT_retrieve_match);
35LCRYPTO_USED(X509_OBJECT_get_type);
36LCRYPTO_USED(X509_OBJECT_get0_X509);
37LCRYPTO_USED(X509_OBJECT_get0_X509_CRL);
38LCRYPTO_USED(X509_STORE_new);
39LCRYPTO_USED(X509_STORE_free);
40LCRYPTO_USED(X509_STORE_up_ref);
41LCRYPTO_USED(X509_STORE_get0_objects);
42LCRYPTO_USED(X509_STORE_get1_objects);
43LCRYPTO_USED(X509_STORE_get_ex_data);
44LCRYPTO_USED(X509_STORE_set_ex_data);
45LCRYPTO_USED(X509_STORE_set_flags);
46LCRYPTO_USED(X509_STORE_set_purpose);
47LCRYPTO_USED(X509_STORE_set_trust);
48LCRYPTO_USED(X509_STORE_set1_param);
49LCRYPTO_USED(X509_STORE_get0_param);
50LCRYPTO_USED(X509_STORE_get_verify_cb);
51LCRYPTO_USED(X509_STORE_set_verify_cb);
52LCRYPTO_USED(X509_STORE_get_check_issued);
53LCRYPTO_USED(X509_STORE_set_check_issued);
54LCRYPTO_USED(X509_STORE_CTX_get_check_issued);
55LCRYPTO_USED(X509_STORE_CTX_new);
56LCRYPTO_USED(X509_STORE_CTX_get1_issuer);
57LCRYPTO_USED(X509_STORE_CTX_free);
58LCRYPTO_USED(X509_STORE_CTX_init);
59LCRYPTO_USED(X509_STORE_CTX_get0_cert);
60LCRYPTO_USED(X509_STORE_CTX_get0_chain);
61LCRYPTO_USED(X509_STORE_CTX_get0_store);
62LCRYPTO_USED(X509_STORE_CTX_get0_untrusted);
63LCRYPTO_USED(X509_STORE_CTX_set0_untrusted);
64LCRYPTO_USED(X509_STORE_CTX_get1_certs);
65LCRYPTO_USED(X509_STORE_CTX_get1_crls);
66LCRYPTO_USED(X509_STORE_CTX_trusted_stack);
67LCRYPTO_USED(X509_STORE_CTX_set0_trusted_stack);
68LCRYPTO_USED(X509_STORE_CTX_cleanup);
69LCRYPTO_USED(X509_STORE_add_lookup);
70LCRYPTO_USED(X509_LOOKUP_hash_dir);
71LCRYPTO_USED(X509_LOOKUP_file);
72LCRYPTO_USED(X509_LOOKUP_mem);
73LCRYPTO_USED(X509_STORE_add_cert);
74LCRYPTO_USED(X509_STORE_add_crl);
75LCRYPTO_USED(X509_STORE_CTX_get_by_subject);
76LCRYPTO_USED(X509_STORE_CTX_get_obj_by_subject);
77LCRYPTO_USED(X509_LOOKUP_ctrl);
78LCRYPTO_USED(X509_load_cert_file);
79LCRYPTO_USED(X509_load_crl_file);
80LCRYPTO_USED(X509_load_cert_crl_file);
81LCRYPTO_USED(X509_LOOKUP_free);
82LCRYPTO_USED(X509_STORE_load_locations);
83LCRYPTO_USED(X509_STORE_load_mem);
84LCRYPTO_USED(X509_STORE_set_default_paths);
85LCRYPTO_USED(X509_STORE_CTX_get_ex_new_index);
86LCRYPTO_USED(X509_STORE_CTX_set_ex_data);
87LCRYPTO_USED(X509_STORE_CTX_get_ex_data);
88LCRYPTO_USED(X509_STORE_CTX_get_error);
89LCRYPTO_USED(X509_STORE_CTX_set_error);
90LCRYPTO_USED(X509_STORE_CTX_get_error_depth);
91LCRYPTO_USED(X509_STORE_CTX_set_error_depth);
92LCRYPTO_USED(X509_STORE_CTX_get_current_cert);
93LCRYPTO_USED(X509_STORE_CTX_set_current_cert);
94LCRYPTO_USED(X509_STORE_CTX_get0_current_issuer);
95LCRYPTO_USED(X509_STORE_CTX_get0_current_crl);
96LCRYPTO_USED(X509_STORE_CTX_get0_parent_ctx);
97LCRYPTO_USED(X509_STORE_CTX_get_chain);
98LCRYPTO_USED(X509_STORE_CTX_get1_chain);
99LCRYPTO_USED(X509_STORE_CTX_set_cert);
100LCRYPTO_USED(X509_STORE_CTX_set_chain);
101LCRYPTO_USED(X509_STORE_CTX_set0_crls);
102LCRYPTO_USED(X509_STORE_CTX_set_purpose);
103LCRYPTO_USED(X509_STORE_CTX_set_trust);
104LCRYPTO_USED(X509_STORE_CTX_set_flags);
105LCRYPTO_USED(X509_STORE_CTX_set_time);
106LCRYPTO_USED(X509_STORE_CTX_set0_verified_chain);
107LCRYPTO_USED(X509_STORE_CTX_get_verify);
108LCRYPTO_USED(X509_STORE_CTX_set_verify);
109LCRYPTO_USED(X509_STORE_CTX_get_verify_cb);
110LCRYPTO_USED(X509_STORE_CTX_set_verify_cb);
111LCRYPTO_USED(X509_STORE_set_verify);
112LCRYPTO_USED(X509_STORE_get_verify);
113LCRYPTO_USED(X509_STORE_CTX_get_num_untrusted);
114LCRYPTO_USED(X509_STORE_CTX_get0_param);
115LCRYPTO_USED(X509_STORE_CTX_set0_param);
116LCRYPTO_USED(X509_STORE_CTX_set_default);
117LCRYPTO_USED(X509_VERIFY_PARAM_new);
118LCRYPTO_USED(X509_VERIFY_PARAM_free);
119LCRYPTO_USED(X509_VERIFY_PARAM_inherit);
120LCRYPTO_USED(X509_VERIFY_PARAM_set1);
121LCRYPTO_USED(X509_VERIFY_PARAM_set1_name);
122LCRYPTO_USED(X509_VERIFY_PARAM_set_flags);
123LCRYPTO_USED(X509_VERIFY_PARAM_clear_flags);
124LCRYPTO_USED(X509_VERIFY_PARAM_get_flags);
125LCRYPTO_USED(X509_VERIFY_PARAM_set_purpose);
126LCRYPTO_USED(X509_VERIFY_PARAM_set_trust);
127LCRYPTO_USED(X509_VERIFY_PARAM_set_depth);
128LCRYPTO_USED(X509_VERIFY_PARAM_set_auth_level);
129LCRYPTO_USED(X509_VERIFY_PARAM_get_time);
130LCRYPTO_USED(X509_VERIFY_PARAM_set_time);
131LCRYPTO_USED(X509_VERIFY_PARAM_add0_policy);
132LCRYPTO_USED(X509_VERIFY_PARAM_set1_policies);
133LCRYPTO_USED(X509_VERIFY_PARAM_get_depth);
134LCRYPTO_USED(X509_VERIFY_PARAM_set1_host);
135LCRYPTO_USED(X509_VERIFY_PARAM_add1_host);
136LCRYPTO_USED(X509_VERIFY_PARAM_set_hostflags);
137LCRYPTO_USED(X509_VERIFY_PARAM_get0_peername);
138LCRYPTO_USED(X509_VERIFY_PARAM_set1_email);
139LCRYPTO_USED(X509_VERIFY_PARAM_set1_ip);
140LCRYPTO_USED(X509_VERIFY_PARAM_set1_ip_asc);
141LCRYPTO_USED(X509_VERIFY_PARAM_get0_name);
142LCRYPTO_USED(X509_VERIFY_PARAM_get0);
143LCRYPTO_USED(X509_VERIFY_PARAM_get_count);
144LCRYPTO_USED(X509_VERIFY_PARAM_add0_table);
145LCRYPTO_USED(X509_VERIFY_PARAM_lookup);
146LCRYPTO_USED(X509_VERIFY_PARAM_table_cleanup);
147
148#endif /* _LIBCRYPTO_X509_VFY_H */
diff --git a/src/lib/libcrypto/hidden/openssl/x509v3.h b/src/lib/libcrypto/hidden/openssl/x509v3.h
deleted file mode 100644
index 9f5a1ffdbc..0000000000
--- a/src/lib/libcrypto/hidden/openssl/x509v3.h
+++ /dev/null
@@ -1,276 +0,0 @@
1/* $OpenBSD: x509v3.h,v 1.15 2024/08/31 10:03:03 tb Exp $ */
2/*
3 * Copyright (c) 2022 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_X509V3_H
19#define _LIBCRYPTO_X509V3_H
20
21#ifndef _MSC_VER
22#include_next <openssl/x509v3.h>
23#else
24#include "../include/openssl/x509v3.h"
25#endif
26#include "crypto_namespace.h"
27
28LCRYPTO_USED(BASIC_CONSTRAINTS_new);
29LCRYPTO_USED(BASIC_CONSTRAINTS_free);
30LCRYPTO_USED(d2i_BASIC_CONSTRAINTS);
31LCRYPTO_USED(i2d_BASIC_CONSTRAINTS);
32LCRYPTO_USED(AUTHORITY_KEYID_new);
33LCRYPTO_USED(AUTHORITY_KEYID_free);
34LCRYPTO_USED(d2i_AUTHORITY_KEYID);
35LCRYPTO_USED(i2d_AUTHORITY_KEYID);
36LCRYPTO_USED(PKEY_USAGE_PERIOD_new);
37LCRYPTO_USED(PKEY_USAGE_PERIOD_free);
38LCRYPTO_USED(d2i_PKEY_USAGE_PERIOD);
39LCRYPTO_USED(i2d_PKEY_USAGE_PERIOD);
40LCRYPTO_USED(GENERAL_NAME_new);
41LCRYPTO_USED(GENERAL_NAME_free);
42LCRYPTO_USED(d2i_GENERAL_NAME);
43LCRYPTO_USED(i2d_GENERAL_NAME);
44LCRYPTO_USED(GENERAL_NAME_dup);
45LCRYPTO_USED(GENERAL_NAME_cmp);
46LCRYPTO_USED(v2i_ASN1_BIT_STRING);
47LCRYPTO_USED(i2v_ASN1_BIT_STRING);
48LCRYPTO_USED(i2v_GENERAL_NAME);
49LCRYPTO_USED(GENERAL_NAME_print);
50LCRYPTO_USED(GENERAL_NAMES_new);
51LCRYPTO_USED(GENERAL_NAMES_free);
52LCRYPTO_USED(d2i_GENERAL_NAMES);
53LCRYPTO_USED(i2d_GENERAL_NAMES);
54LCRYPTO_USED(i2v_GENERAL_NAMES);
55LCRYPTO_USED(v2i_GENERAL_NAMES);
56LCRYPTO_USED(OTHERNAME_new);
57LCRYPTO_USED(OTHERNAME_free);
58LCRYPTO_USED(d2i_OTHERNAME);
59LCRYPTO_USED(i2d_OTHERNAME);
60LCRYPTO_USED(EDIPARTYNAME_new);
61LCRYPTO_USED(EDIPARTYNAME_free);
62LCRYPTO_USED(d2i_EDIPARTYNAME);
63LCRYPTO_USED(i2d_EDIPARTYNAME);
64LCRYPTO_USED(OTHERNAME_cmp);
65LCRYPTO_USED(GENERAL_NAME_set0_value);
66LCRYPTO_USED(GENERAL_NAME_get0_value);
67LCRYPTO_USED(GENERAL_NAME_set0_othername);
68LCRYPTO_USED(GENERAL_NAME_get0_otherName);
69LCRYPTO_USED(i2s_ASN1_OCTET_STRING);
70LCRYPTO_USED(s2i_ASN1_OCTET_STRING);
71LCRYPTO_USED(EXTENDED_KEY_USAGE_new);
72LCRYPTO_USED(EXTENDED_KEY_USAGE_free);
73LCRYPTO_USED(d2i_EXTENDED_KEY_USAGE);
74LCRYPTO_USED(i2d_EXTENDED_KEY_USAGE);
75LCRYPTO_USED(i2a_ACCESS_DESCRIPTION);
76LCRYPTO_USED(CERTIFICATEPOLICIES_new);
77LCRYPTO_USED(CERTIFICATEPOLICIES_free);
78LCRYPTO_USED(d2i_CERTIFICATEPOLICIES);
79LCRYPTO_USED(i2d_CERTIFICATEPOLICIES);
80LCRYPTO_USED(POLICYINFO_new);
81LCRYPTO_USED(POLICYINFO_free);
82LCRYPTO_USED(d2i_POLICYINFO);
83LCRYPTO_USED(i2d_POLICYINFO);
84LCRYPTO_USED(POLICYQUALINFO_new);
85LCRYPTO_USED(POLICYQUALINFO_free);
86LCRYPTO_USED(d2i_POLICYQUALINFO);
87LCRYPTO_USED(i2d_POLICYQUALINFO);
88LCRYPTO_USED(USERNOTICE_new);
89LCRYPTO_USED(USERNOTICE_free);
90LCRYPTO_USED(d2i_USERNOTICE);
91LCRYPTO_USED(i2d_USERNOTICE);
92LCRYPTO_USED(NOTICEREF_new);
93LCRYPTO_USED(NOTICEREF_free);
94LCRYPTO_USED(d2i_NOTICEREF);
95LCRYPTO_USED(i2d_NOTICEREF);
96LCRYPTO_USED(CRL_DIST_POINTS_new);
97LCRYPTO_USED(CRL_DIST_POINTS_free);
98LCRYPTO_USED(d2i_CRL_DIST_POINTS);
99LCRYPTO_USED(i2d_CRL_DIST_POINTS);
100LCRYPTO_USED(DIST_POINT_new);
101LCRYPTO_USED(DIST_POINT_free);
102LCRYPTO_USED(d2i_DIST_POINT);
103LCRYPTO_USED(i2d_DIST_POINT);
104LCRYPTO_USED(DIST_POINT_NAME_new);
105LCRYPTO_USED(DIST_POINT_NAME_free);
106LCRYPTO_USED(d2i_DIST_POINT_NAME);
107LCRYPTO_USED(i2d_DIST_POINT_NAME);
108LCRYPTO_USED(ISSUING_DIST_POINT_new);
109LCRYPTO_USED(ISSUING_DIST_POINT_free);
110LCRYPTO_USED(d2i_ISSUING_DIST_POINT);
111LCRYPTO_USED(i2d_ISSUING_DIST_POINT);
112LCRYPTO_USED(DIST_POINT_set_dpname);
113LCRYPTO_USED(NAME_CONSTRAINTS_check);
114LCRYPTO_USED(ACCESS_DESCRIPTION_new);
115LCRYPTO_USED(ACCESS_DESCRIPTION_free);
116LCRYPTO_USED(d2i_ACCESS_DESCRIPTION);
117LCRYPTO_USED(i2d_ACCESS_DESCRIPTION);
118LCRYPTO_USED(AUTHORITY_INFO_ACCESS_new);
119LCRYPTO_USED(AUTHORITY_INFO_ACCESS_free);
120LCRYPTO_USED(d2i_AUTHORITY_INFO_ACCESS);
121LCRYPTO_USED(i2d_AUTHORITY_INFO_ACCESS);
122LCRYPTO_USED(POLICY_MAPPING_new);
123LCRYPTO_USED(POLICY_MAPPING_free);
124LCRYPTO_USED(GENERAL_SUBTREE_new);
125LCRYPTO_USED(GENERAL_SUBTREE_free);
126LCRYPTO_USED(NAME_CONSTRAINTS_new);
127LCRYPTO_USED(NAME_CONSTRAINTS_free);
128LCRYPTO_USED(POLICY_CONSTRAINTS_new);
129LCRYPTO_USED(POLICY_CONSTRAINTS_free);
130LCRYPTO_USED(a2i_GENERAL_NAME);
131LCRYPTO_USED(v2i_GENERAL_NAME);
132LCRYPTO_USED(v2i_GENERAL_NAME_ex);
133LCRYPTO_USED(X509V3_conf_free);
134LCRYPTO_USED(X509V3_EXT_nconf_nid);
135LCRYPTO_USED(X509V3_EXT_nconf);
136LCRYPTO_USED(X509V3_EXT_add_nconf_sk);
137LCRYPTO_USED(X509V3_EXT_add_nconf);
138LCRYPTO_USED(X509V3_EXT_REQ_add_nconf);
139LCRYPTO_USED(X509V3_EXT_CRL_add_nconf);
140LCRYPTO_USED(X509V3_EXT_conf_nid);
141LCRYPTO_USED(X509V3_EXT_conf);
142LCRYPTO_USED(X509V3_set_nconf);
143LCRYPTO_USED(X509V3_set_ctx);
144LCRYPTO_USED(i2s_ASN1_INTEGER);
145LCRYPTO_USED(s2i_ASN1_INTEGER);
146LCRYPTO_USED(i2s_ASN1_ENUMERATED);
147LCRYPTO_USED(i2s_ASN1_ENUMERATED_TABLE);
148LCRYPTO_USED(X509V3_EXT_get);
149LCRYPTO_USED(X509V3_EXT_get_nid);
150LCRYPTO_USED(X509V3_add_standard_extensions);
151LCRYPTO_USED(X509V3_parse_list);
152LCRYPTO_USED(X509V3_EXT_d2i);
153LCRYPTO_USED(X509V3_get_d2i);
154LCRYPTO_USED(X509V3_EXT_i2d);
155LCRYPTO_USED(X509V3_add1_i2d);
156LCRYPTO_USED(hex_to_string);
157LCRYPTO_USED(string_to_hex);
158LCRYPTO_USED(X509V3_EXT_val_prn);
159LCRYPTO_USED(X509V3_EXT_print);
160LCRYPTO_USED(X509V3_EXT_print_fp);
161LCRYPTO_USED(X509V3_extensions_print);
162LCRYPTO_USED(X509_check_ca);
163LCRYPTO_USED(X509_check_purpose);
164LCRYPTO_USED(X509_supported_extension);
165LCRYPTO_USED(X509_check_issued);
166LCRYPTO_USED(X509_check_akid);
167LCRYPTO_USED(X509_PURPOSE_get_count);
168LCRYPTO_USED(X509_PURPOSE_get0);
169LCRYPTO_USED(X509_PURPOSE_get_by_sname);
170LCRYPTO_USED(X509_PURPOSE_get0_name);
171LCRYPTO_USED(X509_PURPOSE_get0_sname);
172LCRYPTO_USED(X509_PURPOSE_get_id);
173LCRYPTO_USED(X509_get_extension_flags);
174LCRYPTO_USED(X509_get_key_usage);
175LCRYPTO_USED(X509_get_extended_key_usage);
176LCRYPTO_USED(X509_get1_email);
177LCRYPTO_USED(X509_REQ_get1_email);
178LCRYPTO_USED(X509_email_free);
179LCRYPTO_USED(X509_get1_ocsp);
180LCRYPTO_USED(X509_check_host);
181LCRYPTO_USED(X509_check_email);
182LCRYPTO_USED(X509_check_ip);
183LCRYPTO_USED(X509_check_ip_asc);
184LCRYPTO_USED(a2i_IPADDRESS);
185LCRYPTO_USED(a2i_IPADDRESS_NC);
186LCRYPTO_USED(a2i_ipadd);
187LCRYPTO_USED(X509V3_NAME_from_section);
188LCRYPTO_USED(ASRange_new);
189LCRYPTO_USED(ASRange_free);
190LCRYPTO_USED(d2i_ASRange);
191LCRYPTO_USED(i2d_ASRange);
192LCRYPTO_USED(ASIdOrRange_new);
193LCRYPTO_USED(ASIdOrRange_free);
194LCRYPTO_USED(d2i_ASIdOrRange);
195LCRYPTO_USED(i2d_ASIdOrRange);
196LCRYPTO_USED(ASIdentifierChoice_new);
197LCRYPTO_USED(ASIdentifierChoice_free);
198LCRYPTO_USED(d2i_ASIdentifierChoice);
199LCRYPTO_USED(i2d_ASIdentifierChoice);
200LCRYPTO_USED(ASIdentifiers_new);
201LCRYPTO_USED(ASIdentifiers_free);
202LCRYPTO_USED(d2i_ASIdentifiers);
203LCRYPTO_USED(i2d_ASIdentifiers);
204LCRYPTO_USED(IPAddressRange_new);
205LCRYPTO_USED(IPAddressRange_free);
206LCRYPTO_USED(d2i_IPAddressRange);
207LCRYPTO_USED(i2d_IPAddressRange);
208LCRYPTO_USED(IPAddressOrRange_new);
209LCRYPTO_USED(IPAddressOrRange_free);
210LCRYPTO_USED(d2i_IPAddressOrRange);
211LCRYPTO_USED(i2d_IPAddressOrRange);
212LCRYPTO_USED(IPAddressChoice_new);
213LCRYPTO_USED(IPAddressChoice_free);
214LCRYPTO_USED(d2i_IPAddressChoice);
215LCRYPTO_USED(i2d_IPAddressChoice);
216LCRYPTO_USED(IPAddressFamily_new);
217LCRYPTO_USED(IPAddressFamily_free);
218LCRYPTO_USED(d2i_IPAddressFamily);
219LCRYPTO_USED(i2d_IPAddressFamily);
220LCRYPTO_USED(X509v3_asid_add_inherit);
221LCRYPTO_USED(X509v3_asid_add_id_or_range);
222LCRYPTO_USED(X509v3_addr_add_inherit);
223LCRYPTO_USED(X509v3_addr_add_prefix);
224LCRYPTO_USED(X509v3_addr_add_range);
225LCRYPTO_USED(X509v3_addr_get_afi);
226LCRYPTO_USED(X509v3_addr_get_range);
227LCRYPTO_USED(X509v3_asid_is_canonical);
228LCRYPTO_USED(X509v3_addr_is_canonical);
229LCRYPTO_USED(X509v3_asid_canonize);
230LCRYPTO_USED(X509v3_addr_canonize);
231LCRYPTO_USED(X509v3_asid_inherits);
232LCRYPTO_USED(X509v3_addr_inherits);
233LCRYPTO_USED(X509v3_asid_subset);
234LCRYPTO_USED(X509v3_addr_subset);
235LCRYPTO_USED(X509v3_asid_validate_path);
236LCRYPTO_USED(X509v3_addr_validate_path);
237LCRYPTO_USED(X509v3_asid_validate_resource_set);
238LCRYPTO_USED(X509v3_addr_validate_resource_set);
239LCRYPTO_USED(ERR_load_X509V3_strings);
240#if defined(LIBRESSL_NAMESPACE)
241extern LCRYPTO_USED(BASIC_CONSTRAINTS_it);
242extern LCRYPTO_USED(AUTHORITY_KEYID_it);
243extern LCRYPTO_USED(PKEY_USAGE_PERIOD_it);
244extern LCRYPTO_USED(GENERAL_NAME_it);
245extern LCRYPTO_USED(GENERAL_NAMES_it);
246extern LCRYPTO_USED(OTHERNAME_it);
247extern LCRYPTO_USED(EDIPARTYNAME_it);
248extern LCRYPTO_USED(EXTENDED_KEY_USAGE_it);
249extern LCRYPTO_USED(CERTIFICATEPOLICIES_it);
250extern LCRYPTO_USED(POLICYINFO_it);
251extern LCRYPTO_USED(POLICYQUALINFO_it);
252extern LCRYPTO_USED(USERNOTICE_it);
253extern LCRYPTO_USED(NOTICEREF_it);
254extern LCRYPTO_USED(CRL_DIST_POINTS_it);
255extern LCRYPTO_USED(DIST_POINT_it);
256extern LCRYPTO_USED(DIST_POINT_NAME_it);
257extern LCRYPTO_USED(DIST_POINT_it);
258extern LCRYPTO_USED(ISSUING_DIST_POINT_it);
259extern LCRYPTO_USED(ACCESS_DESCRIPTION_it);
260extern LCRYPTO_USED(AUTHORITY_INFO_ACCESS_it);
261extern LCRYPTO_USED(POLICY_MAPPING_it);
262extern LCRYPTO_USED(POLICY_MAPPINGS_it);
263extern LCRYPTO_USED(GENERAL_SUBTREE_it);
264extern LCRYPTO_USED(NAME_CONSTRAINTS_it);
265extern LCRYPTO_USED(POLICY_CONSTRAINTS_it);
266extern LCRYPTO_USED(ASRange_it);
267extern LCRYPTO_USED(ASIdOrRange_it);
268extern LCRYPTO_USED(ASIdentifierChoice_it);
269extern LCRYPTO_USED(ASIdentifiers_it);
270extern LCRYPTO_USED(IPAddressRange_it);
271extern LCRYPTO_USED(IPAddressOrRange_it);
272extern LCRYPTO_USED(IPAddressChoice_it);
273extern LCRYPTO_USED(IPAddressFamily_it);
274#endif
275
276#endif /* _LIBCRYPTO_X509V3_H */