]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Provide a stub random_byte() to make 'testbn' compile again.
authorSimon Tatham <anakin@pobox.com>
Mon, 8 Jun 2015 18:22:55 +0000 (19:22 +0100)
committerSimon Tatham <anakin@pobox.com>
Sat, 20 Jun 2015 11:47:42 +0000 (12:47 +0100)
The function bignum_random_in_range() is new to sshbn.c since I last
tried to run the bignum test code.

(cherry picked from commit 0aa92c8fa2bee2e4c0082adcc9f06ead24989698)

sshbn.c

diff --git a/sshbn.c b/sshbn.c
index 953f06b547042f1e01e249c638025d51b248f573..86f05949e575aa61423098ba270839bdbe7f6b2b 100644 (file)
--- a/sshbn.c
+++ b/sshbn.c
@@ -1746,6 +1746,12 @@ void modalfatalbox(char *p, ...)
     exit(1);
 }
 
+int random_byte(void)
+{
+    modalfatalbox("random_byte called in testbn");
+    return 0;
+}
+
 #define fromxdigit(c) ( (c)>'9' ? ((c)&0xDF) - 'A' + 10 : (c) - '0' )
 
 int main(int argc, char **argv)