Merge pull request #8518 from neheb/i
[feed/packages.git] / mail / ssmtp / patches / 020-openssl-deprecated.patch
1 --- a/ssmtp.c
2 +++ b/ssmtp.c
3 @@ -1046,8 +1046,10 @@ int smtp_open(char *host, int port)
4 /* Init SSL stuff */
5 SSL_CTX *ctx = NULL;
6 X509 *server_cert;
7 +#if OPENSSL_VERSION_NUMBER < 0x10100000L
8 SSL_load_error_strings();
9 SSLeay_add_ssl_algorithms();
10 +#endif
11 ctx = SSL_CTX_new(SSLv23_client_method());
12 if(!ctx) {
13 log_event(LOG_ERR, "No SSL support initiated\n");