Skip to content

Commit

Permalink
port to OpenSSL 1.1
Browse files Browse the repository at this point in the history
- check for better functions in configure
- update SSL initialization call
  • Loading branch information
sharkcz authored and kadler committed Dec 14, 2022
1 parent f61b8a9 commit fc79bab
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,13 @@ dnl ** happily, we don't have to hunt for them thanks to ldconfig!
dnl **
if test -n $sslincludedir; then
CPPFLAGS="$CPPFLAGS $sslincludedir"
AC_CHECK_LIB(crypto,CRYPTO_num_locks)
if test "$ac_cv_lib_crypto_CRYPTO_num_locks" != "yes"
AC_CHECK_LIB(crypto,OPENSSL_init)
if test "$ac_cv_lib_crypto_OPENSSL_init" != "yes"
then
AC_MSG_ERROR([** Unable to find OpenSSL libraries!])
fi
AC_CHECK_LIB(ssl,SSL_library_init)
if test "$ac_cv_lib_ssl_SSL_library_init" != "yes"
AC_CHECK_LIB(ssl,OPENSSL_init_ssl)
if test "$ac_cv_lib_ssl_OPENSSL_init_ssl" != "yes"
then
AC_MSG_ERROR([** Unable to find OpenSSL libraries!])
fi
Expand Down
2 changes: 1 addition & 1 deletion lib5250/sslstream.c
Original file line number Diff line number Diff line change
Expand Up @@ -368,7 +368,7 @@ int tn5250_ssl_stream_init (Tn5250Stream *This)
/* initialize SSL library */

SSL_load_error_strings();
SSL_library_init();
OPENSSL_init_ssl(0, NULL);

/* which SSL method do we use? */

Expand Down

0 comments on commit fc79bab

Please sign in to comment.