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.

44 lines
1.6 KiB

  1. From 2d585baa473314f79d492c0876b3bbf96758562c Mon Sep 17 00:00:00 2001
  2. From: Eneas U de Queiroz <cote2004-github@yahoo.com>
  3. Date: Fri, 8 Jun 2018 14:41:23 -0300
  4. Subject: [PATCH] Removed API deprecated by OpenSSL 1.1.0
  5. Signed-off-by: Eneas U de Queiroz <cote2004-github@yahoo.com>
  6. ---
  7. main.c | 10 +++++++++-
  8. 1 file changed, 9 insertions(+), 1 deletion(-)
  9. diff --git a/main.c b/main.c
  10. index d275e6a..51bfb1d 100755
  11. --- a/main.c
  12. +++ b/main.c
  13. @@ -91,7 +91,11 @@ static void usage(void)
  14. (void) printf(" Copyright: %.1024s\n\n",NO_SPAM_STATEMENT);
  15. #ifdef HAVE_OPENSSL
  16. (void) fprintf(stdout," (Compiled with OpenSSL version: %s)\n",
  17. +# if OPENSSL_VERSION_NUMBER < 0x10100000L
  18. SSLeay_version(SSLEAY_VERSION));
  19. +# else
  20. + OpenSSL_version(OPENSSL_VERSION));
  21. +# endif
  22. #else
  23. (void) fprintf(stdout," (Not compiled with OpenSSL)\n");
  24. #endif /* HAVE_OPENSSL */
  25. @@ -1056,9 +1060,13 @@ int main(int argc,char **argv)
  26. (void) fprintf(stderr,"mailsend Version: %.1024s\n",MAILSEND_VERSION);
  27. #ifdef HAVE_OPENSSL
  28. (void) fprintf(stderr,"Compiled with OpenSSL: %s\n",
  29. +# if OPENSSL_VERSION_NUMBER < 0x10100000L
  30. SSLeay_version(SSLEAY_VERSION));
  31. +# else
  32. + OpenSSL_version(OPENSSL_VERSION));
  33. +# endif
  34. #else
  35. - (void) fprintf(stderr,"Not Compiled OpenSSL, some auth methods will be unavailable\n");
  36. + (void) fprintf(stderr,"Not Compiled with OpenSSL, some auth methods will be unavailable\n");
  37. #endif /* ! HAVE_OPENSSL */
  38. rc = 0;
  39. goto ExitProcessing;
  40. --
  41. 2.16.4