Skip to content

Commit

Permalink
Fix compilation without deprecated OpenSSL 1.1 APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
neheb committed Jan 7, 2019
1 parent 123cecc commit 1267124
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion configure.in
Expand Up @@ -535,7 +535,7 @@ AC_ARG_WITH(openssl,
[LIBS="$LIBS -lssl -lcrypto"
AC_MSG_CHECKING(for openssl libraries -lssl and -lcrypto)
AC_TRY_LINK([#include <openssl/ssl.h>
],[SSL_library_init()],
],[SSL_CTX_new(NULL)],
[AC_MSG_RESULT(yes)
cons_with_openssl="YES"
AC_DEFINE(HAVE_OPENSSL)
Expand Down
2 changes: 2 additions & 0 deletions conserver/cutil.c
Expand Up @@ -57,7 +57,9 @@ Bye(int status)
{
DestroyDataStructures();
#if HAVE_OPENSSL
# if OPENSSL_VERSION_NUMBER < 0x10100000L
ERR_free_strings();
# endif
#endif
exit(status);
}
Expand Down

0 comments on commit 1267124

Please sign in to comment.