X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/5c58ad2d1527936b4d30891497eef48bde0fe1f3..06a03685046a1ac5100191176bce758b70a35343:/sshbn.c diff --git a/sshbn.c b/sshbn.c index adb88243..9fc5c7fb 100644 --- a/sshbn.c +++ b/sshbn.c @@ -6,11 +6,6 @@ #include #include -#include /* FIXME */ -#include /* FIXME */ -#include /* FIXME */ -#include "putty.h" /* FIXME */ - #include "ssh.h" unsigned short bnZero[1] = { 0 }; @@ -324,6 +319,9 @@ int ssh1_read_bignum(unsigned char *data, Bignum *result) { b = (w+7)/8; /* bits -> bytes */ w = (w+15)/16; /* bits -> words */ + if (!result) /* just return length */ + return b + 2; + bn = newbn(w); for (i=1; i<=w; i++)