blob: 81aa0bca06a7ba1467e62c1f752da258fb5b7bd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-ab,v 1.2 2006/08/22 23:10:57 abs Exp $
--- SSLeay.xs.orig 2003-05-28 07:55:02.000000000 +0100
+++ SSLeay.xs
@@ -107,7 +107,7 @@ SSL_CTX_new(packname, ssl_version)
int rand_bytes_read;
if(!bNotFirstTime) {
- SSLeay_add_all_algorithms();
+ SSL_library_init();
SSL_load_error_strings();
ERR_load_crypto_strings();
bNotFirstTime = 1;
@@ -130,6 +130,8 @@ SSL_CTX_new(packname, ssl_version)
/* v2 is the default */
ctx = SSL_CTX_new(SSLv2_client_method());
}
+ if (ctx == 0)
+ croak("SSL_CTX_new failed");
SSL_CTX_set_options(ctx,SSL_OP_ALL|0);
SSL_CTX_set_default_verify_paths(ctx);
|