--- configure.ac.old 2009-05-12 15:37:09.000000000 +0300 +++ configure.ac 2009-05-12 15:38:54.000000000 +0300 @@ -156,37 +156,6 @@ fi LIBS="$saved_LIBS -lcrypto" -# Now test RSA support -saved_LIBS="$LIBS" -AC_MSG_CHECKING([for RSA support]) -for WANTS_RSAREF in "" 1 ; do - if test -z "$WANTS_RSAREF" ; then - LIBS="$saved_LIBS" - else - LIBS="$saved_LIBS -lRSAglue -lrsaref" - fi - AC_RUN_IFELSE([AC_LANG_SOURCE([[ -#include -#include -#include -#include -#include -int main(void) -{ - int num; RSA *key; static unsigned char p_in[] = "blahblah"; - unsigned char c[256], p[256]; - memset(c, 0, sizeof(c)); RAND_add(c, sizeof(c), sizeof(c)); - if ((key=RSA_generate_key(512, 3, NULL, NULL))==NULL) return(1); - num = RSA_public_encrypt(sizeof(p_in) - 1, p_in, c, key, RSA_PKCS1_PADDING); - return(-1 == RSA_private_decrypt(num, c, p, key, RSA_PKCS1_PADDING)); -} - ]])],[ - rsa_works=1 - break; - ],[],[]) -done -LIBS="$saved_LIBS" - if test ! -z "$no_rsa" ; then AC_MSG_RESULT(disabled) RSA_MSG="disabled" @@ -206,20 +175,6 @@ fi fi -# Sanity check OpenSSL headers -AC_MSG_CHECKING([whether OpenSSL's headers match the library]) -AC_RUN_IFELSE([AC_LANG_SOURCE([[ -#include -#include -int main(void) { return(SSLeay() == OPENSSL_VERSION_NUMBER ? 0 : 1); } - ]])],[ - AC_MSG_RESULT(yes) - ],[ - AC_MSG_RESULT(no) - AC_MSG_ERROR(Your OpenSSL headers do not match your library) - -],[]) - dnl Checks for header files. AC_HEADER_STDC