From 0aa18b242e8ddc0ae4646a64af62d3648cea2e4a 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. (cherry picked from commit 0aa92c8fa2bee2e4c0082adcc9f06ead24989698) --- sshbn.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sshbn.c b/sshbn.c index 953f06b5..86f05949 100644 --- 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) -- 2.45.2