mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
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 0aa92c8fa2
)
This commit is contained in:
parent
d75d136c68
commit
0aa18b242e
6
sshbn.c
6
sshbn.c
@ -1746,6 +1746,12 @@ void modalfatalbox(char *p, ...)
|
|||||||
exit(1);
|
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' )
|
#define fromxdigit(c) ( (c)>'9' ? ((c)&0xDF) - 'A' + 10 : (c) - '0' )
|
||||||
|
|
||||||
int main(int argc, char **argv)
|
int main(int argc, char **argv)
|
||||||
|
Loading…
Reference in New Issue
Block a user