]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Report the bignum word size in testbn.
authorSimon Tatham <anakin@pobox.com>
Sun, 29 Nov 2015 12:04:10 +0000 (12:04 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 16 Dec 2015 18:45:33 +0000 (18:45 +0000)
I've found in the last day or two that the first thing I want to do
after any successful run of testbn is to check whether I was running
it with the right compile settings - so I should have made it easier
to find that out to begin with! Better late than never.

testbn.c

index 55471bd24c0ac163a0b13c16402c1c5328a9103a..15f3b9806438f0a2a9f68c1fbf323124d26a3d4f 100644 (file)
--- a/testbn.c
+++ b/testbn.c
@@ -12,6 +12,7 @@
 #include <ctype.h>
 
 #include "ssh.h"
+#include "sshbn.h"
 
 void modalfatalbox(const char *p, ...)
 {
@@ -38,6 +39,8 @@ int main(int argc, char **argv)
     int line = 0;
     int passes = 0, fails = 0;
 
+    printf("BIGNUM_INT_BITS = %d\n", (int)BIGNUM_INT_BITS);
+
     while ((buf = fgetline(stdin)) != NULL) {
         int maxlen = strlen(buf);
         unsigned char *data = snewn(maxlen, unsigned char);