Testing for the 4.4p1 release

Darren Tucker dtucker at zip.com.au
Sat Sep 23 09:14:00 EST 2006


On Fri, Sep 01, 2006 at 12:14:49PM -0700, Iain Morgan wrote:
> I haven't had time to deal with the regression tests yet. The protocol 1
> tests always seem to be a problem with IRIX. (I reported this once quite
> a while ago, but did not have the time to investigate.) In the past,
> I've hacked the scripts to only test protocol 2, in which case
> everything (that we care about) is fine.

Hi.

This is a long shot, but when you attempt to use Protocol 1, does the
known_hosts file entry consist mainly of zeros?  eg,

If so, if you build OpenSSL 0.9.7k with the attached patch, does
OpenSSL's "make tests" pass?  If they don't, then it's probably some
kind of problem with OpenSSL (rt #1395).

-- 
Darren Tucker (dtucker at zip.com.au)
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.
-------------- next part --------------
Index: bntest.c
===================================================================
RCS file: /home/dtucker/src/security/openssl/cvs/openssl-cvs/openssl/crypto/bn/bntest.c,v
retrieving revision 1.55.2.5
diff -u -p -r1.55.2.5 bntest.c
--- bntest.c	16 May 2005 01:26:02 -0000	1.55.2.5
+++ bntest.c	22 Sep 2006 13:07:38 -0000
@@ -230,6 +230,10 @@ int main(int argc, char *argv[])
 	if (!test_sqrt(out,ctx)) goto err;
 	BIO_flush(out);
 
+	message(out,"BN_bn2dec");
+	if (!test_bn2dec(out,ctx)) goto err;
+	BIO_flush(out);
+
 	BN_CTX_free(ctx);
 	BIO_free(out);
 
@@ -1096,6 +1100,28 @@ int test_sqrt(BIO *bp, BN_CTX *ctx)
 	return ret;
 	}
 
+int test_bn2dec(BIO *bp, BN_CTX *ctx)
+	{
+	BIGNUM *a;
+	char buf[1024], *buf2;
+	int i, ret = 1;
+
+	a = BN_new();
+	for (i = -1000; i <= 1000; i++) {
+		sprintf(buf, "%d", i);
+		BN_dec2bn(&a, buf);
+		buf2 = BN_bn2dec(a);
+		if (strcmp(buf, buf2) != 0) {
+			fprintf(stderr,"bn2dec failed: '%s' '%s'!\n",buf,buf2);
+			OPENSSL_free(buf2);
+			return 0;
+		}
+		OPENSSL_free(buf2);
+	}
+	BN_free(a);
+	return 1;
+	}
+
 int test_lshift(BIO *bp,BN_CTX *ctx,BIGNUM *a_)
 	{
 	BIGNUM *a,*b,*c,*d;


More information about the openssh-unix-dev mailing list