rsa patch to configure ...
Kenichi Okada
okada at opaopa.org
Fri Feb 9 05:32:28 UTC 2001
In the message <Pine.BSF.4.31.0102081604050.6466-100000 at thelab.hub.org>
The Hermit Hacker <scrappy at hub.org> wrote:
> didn't work:
Sorry.
Try this.
*** inn-CURRENT-20010207-orig/configure.in Wed Feb 7 19:00:03 2001
--- inn-CURRENT-20010207/configure.in Fri Feb 9 14:29:57 2001
***************
*** 355,363 ****
else
SSL_BIN="${OPENSSL_DIR}/bin"
SSL_INC="-I${OPENSSL_DIR}/include"
- SSL_LIB="-L${OPENSSL_DIR}/lib -lssl -lcrypto"
- AC_DEFINE(HAVE_SSL, 1, [Define if OpenSSL is available.])
AC_MSG_RESULT($OPENSSL_DIR)
fi
fi
AC_SUBST(SSL_BIN)
--- 355,373 ----
else
SSL_BIN="${OPENSSL_DIR}/bin"
SSL_INC="-I${OPENSSL_DIR}/include"
AC_MSG_RESULT($OPENSSL_DIR)
+ SSL_LIB="-L${OPENSSL_DIR}/lib"
+ AC_CHECK_LIB(rsaref, RSAPublicEncrypt,
+ SSL_LIB="${SSL_LIB} -lRSAglue -lrsaref",,$SSL_LIB)
+ AC_CHECK_LIB(crypto,BIO_accept,
+ SSL_LIB="${SSL_LIB} -lcrypto ",
+ [AC_MSG_ERROR(Can not find OpenSSL)],
+ $SSL_LIB)
+ AC_CHECK_LIB(ssl, SSL_CTX_new,
+ SSL_LIB="${SSL_LIB} -lssl";
+ [AC_DEFINE(HAVE_SSL, 1, [Define if OpenSSL is available.])],
+ [AC_MSG_ERROR(Can not find OpenSSL)],
+ $SSL_LIB)
fi
fi
AC_SUBST(SSL_BIN)
--
Kenichi Okada
mailto:okada at opaopa.org
More information about the inn-workers
mailing list