summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/libssl/Makefile4
-rw-r--r--src/lib/libssl/ssl_err.c12
-rw-r--r--src/lib/libssl/ssl_err2.c72
3 files changed, 12 insertions, 76 deletions
diff --git a/src/lib/libssl/Makefile b/src/lib/libssl/Makefile
index e80863719b..1fa49e86df 100644
--- a/src/lib/libssl/Makefile
+++ b/src/lib/libssl/Makefile
@@ -1,4 +1,4 @@
1# $OpenBSD: Makefile,v 1.30 2017/01/26 06:01:44 jsing Exp $ 1# $OpenBSD: Makefile,v 1.31 2017/01/26 09:16:01 jsing Exp $
2 2
3.include <bsd.own.mk> 3.include <bsd.own.mk>
4.ifndef NOMAN 4.ifndef NOMAN
@@ -28,7 +28,7 @@ SRCS= \
28 t1_meth.c t1_srvr.c t1_clnt.c t1_lib.c t1_enc.c \ 28 t1_meth.c t1_srvr.c t1_clnt.c t1_lib.c t1_enc.c \
29 d1_meth.c d1_srvr.c d1_clnt.c d1_lib.c d1_pkt.c \ 29 d1_meth.c d1_srvr.c d1_clnt.c d1_lib.c d1_pkt.c \
30 d1_both.c d1_enc.c d1_srtp.c \ 30 d1_both.c d1_enc.c d1_srtp.c \
31 ssl_lib.c ssl_err2.c ssl_cert.c ssl_sess.c \ 31 ssl_lib.c ssl_cert.c ssl_sess.c \
32 ssl_ciph.c ssl_stat.c ssl_rsa.c \ 32 ssl_ciph.c ssl_stat.c ssl_rsa.c \
33 ssl_asn1.c ssl_txt.c ssl_algs.c \ 33 ssl_asn1.c ssl_txt.c ssl_algs.c \
34 bio_ssl.c ssl_err.c t1_reneg.c \ 34 bio_ssl.c ssl_err.c t1_reneg.c \
diff --git a/src/lib/libssl/ssl_err.c b/src/lib/libssl/ssl_err.c
index efe3e9473f..967811f1fe 100644
--- a/src/lib/libssl/ssl_err.c
+++ b/src/lib/libssl/ssl_err.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssl_err.c,v 1.30 2017/01/26 07:20:57 beck Exp $ */ 1/* $OpenBSD: ssl_err.c,v 1.31 2017/01/26 09:16:01 jsing Exp $ */
2/* ==================================================================== 2/* ====================================================================
3 * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved. 3 * Copyright (c) 1999-2011 The OpenSSL Project. All rights reserved.
4 * 4 *
@@ -607,10 +607,18 @@ void
607ERR_load_SSL_strings(void) 607ERR_load_SSL_strings(void)
608{ 608{
609#ifndef OPENSSL_NO_ERR 609#ifndef OPENSSL_NO_ERR
610
611 if (ERR_func_error_string(SSL_str_functs[0].error) == NULL) { 610 if (ERR_func_error_string(SSL_str_functs[0].error) == NULL) {
612 ERR_load_strings(0, SSL_str_functs); 611 ERR_load_strings(0, SSL_str_functs);
613 ERR_load_strings(0, SSL_str_reasons); 612 ERR_load_strings(0, SSL_str_reasons);
614 } 613 }
615#endif 614#endif
616} 615}
616
617void
618SSL_load_error_strings(void)
619{
620#ifndef OPENSSL_NO_ERR
621 ERR_load_crypto_strings();
622 ERR_load_SSL_strings();
623#endif
624}
diff --git a/src/lib/libssl/ssl_err2.c b/src/lib/libssl/ssl_err2.c
deleted file mode 100644
index 9aad13cdc5..0000000000
--- a/src/lib/libssl/ssl_err2.c
+++ /dev/null
@@ -1,72 +0,0 @@
1/* $OpenBSD: ssl_err2.c,v 1.7 2014/12/14 15:30:50 jsing 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/err.h>
62#include <openssl/ssl.h>
63
64void
65SSL_load_error_strings(void)
66{
67#ifndef OPENSSL_NO_ERR
68 ERR_load_crypto_strings();
69 ERR_load_SSL_strings();
70#endif
71}
72