openssl w/ rsaref openssh won't configure

Ed Eden ede370 at stl.rural.usda.gov
Thu May 11 01:50:52 EST 2000


I have openssl-0.9.5a and openssh-2.1.0. I configured ssl with rsaref
and it passes the tests. When I configure ssh I get:

----
checking for OpenSSL directory... configure: error: Could not find
working SSLeay / OpenSSL libraries, please install
----

it is failing RSA_private_decrypt function call. The RSA_generate_key
seems to work (does not return null) but then goes on to fail at
RSA_private_decrypt.

Like I said, the openssl tests passed....
AnyHELP?


conftest.c generated by configure:
---------
gcc -o conftest -g -O2 -Wall -I/opt/openssl/include   -L/opt/openssl/lib
-L/opt/openssl conftest.c -ldl -lnsl -lz  -lutil -lpam -lcrypto
-lRSAglue -lrsaref 1>&5
configure: failed program was:
#line 2032 "configure"
#include "confdefs.h"

#include <string.h>
#include <openssl/rand.h>
#include <openssl/rsa.h>
#include <openssl/bn.h>
#include <openssl/sha.h>
int main(void)
{
        RSA *key; char a[2048],b[2048];;
        memset(a, 0, sizeof(a));memset(b, 0, sizeof(b));
        RAND_add(a, sizeof(a), sizeof(a));
        key=RSA_generate_key(32,3,NULL,NULL);
        if (key==NULL) return(1);

return(-1==RSA_private_decrypt(RSA_size(key),a,b,key,RSA_NO_PADDING));
}







More information about the openssh-unix-dev mailing list