|
@@ -93,10 +93,15 @@ int load_ssl() {
|
|
|
SSL_load_error_strings();
|
|
SSL_load_error_strings();
|
|
|
OpenSSL_add_ssl_algorithms();
|
|
OpenSSL_add_ssl_algorithms();
|
|
|
ssl_ctx = SSL_CTX_new(SSLv23_client_method());
|
|
ssl_ctx = SSL_CTX_new(SSLv23_client_method());
|
|
|
- if (!ssl_ctx)
|
|
|
|
|
- fatal("SSL_CTX_new() failed",0);
|
|
|
|
|
- if (seed_PRNG())
|
|
|
|
|
- fatal("Wasn't able to properly seed the PRNG!",0);
|
|
|
|
|
|
|
+ if (!ssl_ctx) {
|
|
|
|
|
+ sdprintf("SSL_CTX_new() failed");
|
|
|
|
|
+ return 1;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (seed_PRNG()) {
|
|
|
|
|
+ sdprintf("Wasn't able to properly seed the PRNG!");
|
|
|
|
|
+ return 1;
|
|
|
|
|
+ }
|
|
|
#endif
|
|
#endif
|
|
|
|
|
|
|
|
return 0;
|
|
return 0;
|