From a9f591eaa86d8b73602ca25d219223aa94d11618 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Sun, 29 Nov 2015 12:04:10 +0000 Subject: [PATCH] Report the bignum word size in testbn. 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 | 3 +++ 1 file changed, 3 insertions(+) diff --git a/testbn.c b/testbn.c index 55471bd2..15f3b980 100644 --- a/testbn.c +++ b/testbn.c @@ -12,6 +12,7 @@ #include #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);