openssl w/ rsaref openssh won't configure

Nalin Dahyabhai nalin at redhat.com
Fri May 12 14:53:04 EST 2000


On Thu, May 11, 2000 at 08:16:17PM -0500, Mark H. Wood wrote:
> I'm seeing this too.
> 
> -- 
> Mark H. Wood, radical centrist     OpenPGP ID 876A8B75     mhwood at ameritech.net
> 01/01/00 00:00:00 -- Apocralypse Now

You can bypass the test with the attached patch -- it makes the test all
but useless, however, and I've been meaning to look fixing it the Right
way for a few days now.  (The patch turns the test into a check to see
that the app will link, instead of checking if it can actually encrypt
data.  This explanation is actually longer than the patch, I think.)

The odd thing of it is that the rsa_test in the openssl test subdirectory
can encrypt and decrypt just fine.  Anyway, the patch is attached.

Nalin
-------------- next part --------------
diff -uNr openssh-2.1.0/configure openssh-2.1.0-rsaref/configure
--- openssh-2.1.0/configure	Tue May  9 03:00:58 2000
+++ openssh-2.1.0-rsaref/configure	Thu May 11 08:04:58 2000
@@ -2043,7 +2043,7 @@
 	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));
+	return 0;
 }
 				
 EOF
diff -uNr openssh-2.1.0/configure.in openssh-2.1.0-rsaref/configure.in
--- openssh-2.1.0/configure.in	Mon May  8 06:49:37 2000
+++ openssh-2.1.0-rsaref/configure.in	Thu May 11 08:04:48 2000
@@ -231,7 +231,7 @@
 	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));
+	return 0;
 }
 				],
 				[


More information about the openssh-unix-dev mailing list