summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authortb <>2024-01-13 12:15:27 +0000
committertb <>2024-01-13 12:15:27 +0000
commitaece9df797c54eb13f72b041cc251439ffa16cfd (patch)
tree7d7395144e6c8f37c281c27ea23162dcdde16980 /src
parentcd09f454c46f1b578821a6417252d11d4753e0b6 (diff)
downloadopenbsd-aece9df797c54eb13f72b041cc251439ffa16cfd.tar.gz
openbsd-aece9df797c54eb13f72b041cc251439ffa16cfd.tar.bz2
openbsd-aece9df797c54eb13f72b041cc251439ffa16cfd.zip
Move EVP_add_{cipher,digest}() to the trashcan
They will await their removal in the next major bump.
Diffstat (limited to 'src')
-rw-r--r--src/lib/libcrypto/Makefile3
-rw-r--r--src/lib/libcrypto/evp/evp_names.c18
-rw-r--r--src/lib/libcrypto/evp/names.c77
3 files changed, 18 insertions, 80 deletions
diff --git a/src/lib/libcrypto/Makefile b/src/lib/libcrypto/Makefile
index 75ab43c132..474c453100 100644
--- a/src/lib/libcrypto/Makefile
+++ b/src/lib/libcrypto/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.164 2024/01/13 11:18:52 tb Exp $ 1# $OpenBSD: Makefile,v 1.165 2024/01/13 12:15:27 tb Exp $
2 2
3LIB= crypto 3LIB= crypto
4LIBREBUILD=y 4LIBREBUILD=y
@@ -387,7 +387,6 @@ SRCS+= m_sigver.c
387SRCS+= m_sm3.c 387SRCS+= m_sm3.c
388SRCS+= m_streebog.c 388SRCS+= m_streebog.c
389SRCS+= m_wp.c 389SRCS+= m_wp.c
390SRCS+= names.c
391SRCS+= p5_crpt.c 390SRCS+= p5_crpt.c
392SRCS+= p5_crpt2.c 391SRCS+= p5_crpt2.c
393SRCS+= p_legacy.c 392SRCS+= p_legacy.c
diff --git a/src/lib/libcrypto/evp/evp_names.c b/src/lib/libcrypto/evp/evp_names.c
index 26e1df2f87..b09f71b4c4 100644
--- a/src/lib/libcrypto/evp/evp_names.c
+++ b/src/lib/libcrypto/evp/evp_names.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: evp_names.c,v 1.5 2024/01/13 12:13:17 tb Exp $ */ 1/* $OpenBSD: evp_names.c,v 1.6 2024/01/13 12:15:27 tb Exp $ */
2/* 2/*
3 * Copyright (c) 2023 Theo Buehler <tb@openbsd.org> 3 * Copyright (c) 2023 Theo Buehler <tb@openbsd.org>
4 * 4 *
@@ -1771,3 +1771,19 @@ void
1771EVP_cleanup(void) 1771EVP_cleanup(void)
1772{ 1772{
1773} 1773}
1774
1775/*
1776 * XXX - Remove all the garbage below in the next bump.
1777 */
1778
1779int
1780EVP_add_cipher(const EVP_CIPHER *c)
1781{
1782 return 1;
1783}
1784
1785int
1786EVP_add_digest(const EVP_MD *md)
1787{
1788 return 1;
1789}
diff --git a/src/lib/libcrypto/evp/names.c b/src/lib/libcrypto/evp/names.c
deleted file mode 100644
index 7b5f6bad6c..0000000000
--- a/src/lib/libcrypto/evp/names.c
+++ /dev/null
@@ -1,77 +0,0 @@
1/* $OpenBSD: names.c,v 1.30 2024/01/13 12:13:17 tb Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved.
4 *
5 * This package is an SSL implementation written
6 * by Eric Young (eay@cryptsoft.com).
7 * The implementation was written so as to conform with Netscapes SSL.
8 *
9 * This library is free for commercial and non-commercial use as long as
10 * the following conditions are aheared to. The following conditions
11 * apply to all code found in this distribution, be it the RC4, RSA,
12 * lhash, DES, etc., code; not just the SSL code. The SSL documentation
13 * included with this distribution is covered by the same copyright terms
14 * except that the holder is Tim Hudson (tjh@cryptsoft.com).
15 *
16 * Copyright remains Eric Young's, and as such any Copyright notices in
17 * the code are not to be removed.
18 * If this package is used in a product, Eric Young should be given attribution
19 * as the author of the parts of the library used.
20 * This can be in the form of a textual message at program startup or
21 * in documentation (online or textual) provided with the package.
22 *
23 * Redistribution and use in source and binary forms, with or without
24 * modification, are permitted provided that the following conditions
25 * are met:
26 * 1. Redistributions of source code must retain the copyright
27 * notice, this list of conditions and the following disclaimer.
28 * 2. Redistributions in binary form must reproduce the above copyright
29 * notice, this list of conditions and the following disclaimer in the
30 * documentation and/or other materials provided with the distribution.
31 * 3. All advertising materials mentioning features or use of this software
32 * must display the following acknowledgement:
33 * "This product includes cryptographic software written by
34 * Eric Young (eay@cryptsoft.com)"
35 * The word 'cryptographic' can be left out if the rouines from the library
36 * being used are not cryptographic related :-).
37 * 4. If you include any Windows specific code (or a derivative thereof) from
38 * the apps directory (application code) you must include an acknowledgement:
39 * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)"
40 *
41 * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND
42 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
43 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
44 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
45 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
46 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
47 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
48 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
49 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
50 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
51 * SUCH DAMAGE.
52 *
53 * The licence and distribution terms for any publically available version or
54 * derivative of this code cannot be changed. i.e. this code cannot simply be
55 * copied and put under another distribution licence
56 * [including the GNU Public Licence.]
57 */
58
59#include <stdio.h>
60
61#include <openssl/evp.h>
62#include <openssl/objects.h>
63#include <openssl/x509.h>
64
65#include "evp_local.h"
66
67int
68EVP_add_cipher(const EVP_CIPHER *c)
69{
70 return 1;
71}
72
73int
74EVP_add_digest(const EVP_MD *md)
75{
76 return 1;
77}