projects
/
u
/
mdw
/
putty
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Remove the hierarchical dialog structure
[u/mdw/putty]
/
sshbn.c
diff --git
a/sshbn.c
b/sshbn.c
index
adb8824
..
9fc5c7f
100644
(file)
--- a/
sshbn.c
+++ b/
sshbn.c
@@
-6,11
+6,6
@@
#include <stdlib.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
-#include <stdio.h> /* FIXME */
-#include <stdarg.h> /* FIXME */
-#include <windows.h> /* FIXME */
-#include "putty.h" /* FIXME */
-
#include "ssh.h"
unsigned short bnZero[1] = { 0 };
#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 */
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++)
bn = newbn(w);
for (i=1; i<=w; i++)