mirror of
https://github.com/clearml/dropbear
synced 2025-01-31 10:57:01 +00:00
Turn addrandom()'s buf argument into unsigned char *
Data is usually represented as "unsigned char *" like genrandom().
This commit is contained in:
parent
18638859e6
commit
c239baf801
@ -141,7 +141,7 @@ out:
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
void addrandom(char * buf, unsigned int len)
|
void addrandom(unsigned char * buf, unsigned int len)
|
||||||
{
|
{
|
||||||
hash_state hs;
|
hash_state hs;
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
void seedrandom();
|
void seedrandom();
|
||||||
void genrandom(unsigned char* buf, unsigned int len);
|
void genrandom(unsigned char* buf, unsigned int len);
|
||||||
void addrandom(char * buf, unsigned int len);
|
void addrandom(unsigned char * buf, unsigned int len);
|
||||||
void gen_random_mpint(mp_int *max, mp_int *rand);
|
void gen_random_mpint(mp_int *max, mp_int *rand);
|
||||||
|
|
||||||
#endif /* DROPBEAR_RANDOM_H_ */
|
#endif /* DROPBEAR_RANDOM_H_ */
|
||||||
|
Loading…
Reference in New Issue
Block a user