mirror of
https://github.com/novatiq/packages.git
synced 2026-04-29 23:18:42 +01:00
bba043ee47
Signed-off-by: Rosen Penev <rosenp@gmail.com>
14 lines
374 B
Diff
14 lines
374 B
Diff
--- a/ssmtp.c
|
|
+++ b/ssmtp.c
|
|
@@ -1046,8 +1046,10 @@ int smtp_open(char *host, int port)
|
|
/* Init SSL stuff */
|
|
SSL_CTX *ctx = NULL;
|
|
X509 *server_cert;
|
|
+#if OPENSSL_VERSION_NUMBER < 0x10100000L
|
|
SSL_load_error_strings();
|
|
SSLeay_add_ssl_algorithms();
|
|
+#endif
|
|
ctx = SSL_CTX_new(SSLv23_client_method());
|
|
if(!ctx) {
|
|
log_event(LOG_ERR, "No SSL support initiated\n");
|