summaryrefslogtreecommitdiff
path: root/src/lib
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib')
-rw-r--r--src/lib/libssl/src/apps/ciphers.c5
-rw-r--r--src/lib/libssl/src/apps/engine.c4
-rw-r--r--src/lib/libssl/src/apps/errstr.c4
-rw-r--r--src/lib/libssl/src/apps/ocsp.c5
-rw-r--r--src/lib/libssl/src/apps/openssl.c5
-rw-r--r--src/lib/libssl/src/apps/s_client.c5
-rw-r--r--src/lib/libssl/src/apps/s_server.c5
-rw-r--r--src/lib/libssl/src/apps/s_time.c5
8 files changed, 10 insertions, 28 deletions
diff --git a/src/lib/libssl/src/apps/ciphers.c b/src/lib/libssl/src/apps/ciphers.c
index 0d791b2522..d63fca6c7a 100644
--- a/src/lib/libssl/src/apps/ciphers.c
+++ b/src/lib/libssl/src/apps/ciphers.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ciphers.c,v 1.24 2014/07/12 17:54:31 jsing Exp $ */ 1/* $OpenBSD: ciphers.c,v 1.25 2014/07/12 19:31:21 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -123,7 +123,6 @@ ciphers_main(int argc, char **argv)
123 BIO_printf(bio_err, "%s", *pp); 123 BIO_printf(bio_err, "%s", *pp);
124 goto end; 124 goto end;
125 } 125 }
126 OpenSSL_add_ssl_algorithms();
127 126
128 ctx = SSL_CTX_new(meth); 127 ctx = SSL_CTX_new(meth);
129 if (ctx == NULL) 128 if (ctx == NULL)
@@ -138,7 +137,6 @@ ciphers_main(int argc, char **argv)
138 if (ssl == NULL) 137 if (ssl == NULL)
139 goto err; 138 goto err;
140 139
141
142 if (!verbose) { 140 if (!verbose) {
143 for (i = 0; ; i++) { 141 for (i = 0; ; i++) {
144 p = SSL_get_cipher_list(ssl, i); 142 p = SSL_get_cipher_list(ssl, i);
@@ -179,7 +177,6 @@ ciphers_main(int argc, char **argv)
179 ret = 0; 177 ret = 0;
180 if (0) { 178 if (0) {
181err: 179err:
182 SSL_load_error_strings();
183 ERR_print_errors(bio_err); 180 ERR_print_errors(bio_err);
184 } 181 }
185 182
diff --git a/src/lib/libssl/src/apps/engine.c b/src/lib/libssl/src/apps/engine.c
index f6a30784f9..90404b5749 100644
--- a/src/lib/libssl/src/apps/engine.c
+++ b/src/lib/libssl/src/apps/engine.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: engine.c,v 1.25 2014/07/12 17:54:31 jsing Exp $ */ 1/* $OpenBSD: engine.c,v 1.26 2014/07/12 19:31:21 jsing Exp $ */
2/* Written by Richard Levitte <richard@levitte.org> for the OpenSSL 2/* Written by Richard Levitte <richard@levitte.org> for the OpenSSL
3 * project 2000. 3 * project 2000.
4 */ 4 */
@@ -333,8 +333,6 @@ engine_main(int argc, char **argv)
333 BIO *bio_out = NULL; 333 BIO *bio_out = NULL;
334 const char *indent = " "; 334 const char *indent = " ";
335 335
336 SSL_load_error_strings();
337
338 bio_out = BIO_new_fp(stdout, BIO_NOCLOSE); 336 bio_out = BIO_new_fp(stdout, BIO_NOCLOSE);
339 337
340 argc--; 338 argc--;
diff --git a/src/lib/libssl/src/apps/errstr.c b/src/lib/libssl/src/apps/errstr.c
index 2d7f26538a..fd81818490 100644
--- a/src/lib/libssl/src/apps/errstr.c
+++ b/src/lib/libssl/src/apps/errstr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: errstr.c,v 1.17 2014/06/12 15:49:27 deraadt Exp $ */ 1/* $OpenBSD: errstr.c,v 1.18 2014/07/12 19:31:21 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -76,8 +76,6 @@ errstr_main(int argc, char **argv)
76 char buf[256]; 76 char buf[256];
77 unsigned long l; 77 unsigned long l;
78 78
79 SSL_load_error_strings();
80
81 if ((argc > 1) && (strcmp(argv[1], "-stats") == 0)) { 79 if ((argc > 1) && (strcmp(argv[1], "-stats") == 0)) {
82 BIO *out = NULL; 80 BIO *out = NULL;
83 81
diff --git a/src/lib/libssl/src/apps/ocsp.c b/src/lib/libssl/src/apps/ocsp.c
index 6a6f5e225f..b431a3c9fd 100644
--- a/src/lib/libssl/src/apps/ocsp.c
+++ b/src/lib/libssl/src/apps/ocsp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ocsp.c,v 1.28 2014/07/12 17:54:31 jsing Exp $ */ 1/* $OpenBSD: ocsp.c,v 1.29 2014/07/12 19:31:21 jsing Exp $ */
2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL 2/* Written by Dr Stephen N Henson (steve@openssl.org) for the OpenSSL
3 * project 2000. 3 * project 2000.
4 */ 4 */
@@ -147,9 +147,6 @@ ocsp_main(int argc, char **argv)
147 const EVP_MD *cert_id_md = NULL; 147 const EVP_MD *cert_id_md = NULL;
148 const char *errstr = NULL; 148 const char *errstr = NULL;
149 149
150 SSL_load_error_strings();
151 OpenSSL_add_ssl_algorithms();
152
153 args = argv + 1; 150 args = argv + 1;
154 reqnames = sk_OPENSSL_STRING_new_null(); 151 reqnames = sk_OPENSSL_STRING_new_null();
155 ids = sk_OCSP_CERTID_new_null(); 152 ids = sk_OCSP_CERTID_new_null();
diff --git a/src/lib/libssl/src/apps/openssl.c b/src/lib/libssl/src/apps/openssl.c
index d35c8d8e19..ae45d15933 100644
--- a/src/lib/libssl/src/apps/openssl.c
+++ b/src/lib/libssl/src/apps/openssl.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: openssl.c,v 1.40 2014/07/12 17:54:31 jsing Exp $ */ 1/* $OpenBSD: openssl.c,v 1.41 2014/07/12 19:31:21 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -208,8 +208,9 @@ openssl_startup(void)
208 signal(SIGPIPE, SIG_IGN); 208 signal(SIGPIPE, SIG_IGN);
209 209
210 CRYPTO_malloc_init(); 210 CRYPTO_malloc_init();
211 ERR_load_crypto_strings();
212 OpenSSL_add_all_algorithms(); 211 OpenSSL_add_all_algorithms();
212 SSL_library_init();
213 SSL_load_error_strings();
213 214
214#ifndef OPENSSL_NO_ENGINE 215#ifndef OPENSSL_NO_ENGINE
215 ENGINE_load_builtin_engines(); 216 ENGINE_load_builtin_engines();
diff --git a/src/lib/libssl/src/apps/s_client.c b/src/lib/libssl/src/apps/s_client.c
index b3fcbf17a0..355a66fd9b 100644
--- a/src/lib/libssl/src/apps/s_client.c
+++ b/src/lib/libssl/src/apps/s_client.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s_client.c,v 1.67 2014/07/12 17:54:31 jsing Exp $ */ 1/* $OpenBSD: s_client.c,v 1.68 2014/07/12 19:31:21 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -656,9 +656,6 @@ bad:
656 goto end; 656 goto end;
657 } 657 }
658 658
659 OpenSSL_add_ssl_algorithms();
660 SSL_load_error_strings();
661
662#if !defined(OPENSSL_NO_TLSEXT) && !defined(OPENSSL_NO_NEXTPROTONEG) 659#if !defined(OPENSSL_NO_TLSEXT) && !defined(OPENSSL_NO_NEXTPROTONEG)
663 next_proto.status = -1; 660 next_proto.status = -1;
664 if (next_proto_neg_in) { 661 if (next_proto_neg_in) {
diff --git a/src/lib/libssl/src/apps/s_server.c b/src/lib/libssl/src/apps/s_server.c
index 136025ce63..75e7d83354 100644
--- a/src/lib/libssl/src/apps/s_server.c
+++ b/src/lib/libssl/src/apps/s_server.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s_server.c,v 1.59 2014/07/12 17:54:31 jsing Exp $ */ 1/* $OpenBSD: s_server.c,v 1.60 2014/07/12 19:31:21 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -928,9 +928,6 @@ bad:
928 goto end; 928 goto end;
929 } 929 }
930 930
931 SSL_load_error_strings();
932 OpenSSL_add_ssl_algorithms();
933
934#ifndef OPENSSL_NO_ENGINE 931#ifndef OPENSSL_NO_ENGINE
935 e = setup_engine(bio_err, engine_id, 1); 932 e = setup_engine(bio_err, engine_id, 1);
936#endif 933#endif
diff --git a/src/lib/libssl/src/apps/s_time.c b/src/lib/libssl/src/apps/s_time.c
index 14d2e12dcd..c5fd05b828 100644
--- a/src/lib/libssl/src/apps/s_time.c
+++ b/src/lib/libssl/src/apps/s_time.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: s_time.c,v 1.32 2014/06/28 04:39:41 deraadt Exp $ */ 1/* $OpenBSD: s_time.c,v 1.33 2014/07/12 19:31:21 jsing Exp $ */
2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com)
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
@@ -332,7 +332,6 @@ s_time_main(int argc, char **argv)
332 if (parseArgs(argc, argv) < 0) 332 if (parseArgs(argc, argv) < 0)
333 goto end; 333 goto end;
334 334
335 OpenSSL_add_ssl_algorithms();
336 if ((tm_ctx = SSL_CTX_new(s_time_meth)) == NULL) 335 if ((tm_ctx = SSL_CTX_new(s_time_meth)) == NULL)
337 return (1); 336 return (1);
338 337
@@ -344,8 +343,6 @@ s_time_main(int argc, char **argv)
344 if (!set_cert_stuff(tm_ctx, t_cert_file, t_key_file)) 343 if (!set_cert_stuff(tm_ctx, t_cert_file, t_key_file))
345 goto end; 344 goto end;
346 345
347 SSL_load_error_strings();
348
349 if ((!SSL_CTX_load_verify_locations(tm_ctx, CAfile, CApath)) || 346 if ((!SSL_CTX_load_verify_locations(tm_ctx, CAfile, CApath)) ||
350 (!SSL_CTX_set_default_verify_paths(tm_ctx))) { 347 (!SSL_CTX_set_default_verify_paths(tm_ctx))) {
351 /* 348 /*