From 0aa92c8fa2bee2e4c0082adcc9f06ead24989698 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Mon, 8 Jun 2015 19:22:55 +0100 Subject: [PATCH] Provide a stub random_byte() to make 'testbn' compile again. The function bignum_random_in_range() is new to sshbn.c since I last tried to run the bignum test code. --- sshbn.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sshbn.c b/sshbn.c index e1abbb05..5a7835ed 100644 --- 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)