You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
374 B

  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");