]> 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>
Mon, 8 Jun 2015 18:22:55 +0000 (19:22 +0100)
The function bignum_random_in_range() is new to sshbn.c since I last
tried to run the bignum test code.

sshbn.c

diff --git a/sshbn.c b/sshbn.c
index e1abbb05697eda4e48719cbea713707f29a0e512..5a7835ed5b24aeb5960a76d266f7d40c63a3d358 100644 (file)
--- a/sshbn.c
+++ b/sshbn.c
@@ -1892,6 +1892,12 @@ void modalfatalbox(const 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)