changeset 1096:a9e4d66ffb2c

Turn addrandom()'s buf argument into unsigned char * Data is usually represented as "unsigned char *" like genrandom().
author Gaël PORTAY <gael.portay@gmail.com>
date Sat, 02 May 2015 13:48:16 +0200
parents 877256d1b3fb
children 93e29b0ef8dc
files dbrandom.c dbrandom.h
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/dbrandom.c	Sat May 02 15:58:33 2015 +0200
+++ b/dbrandom.c	Sat May 02 13:48:16 2015 +0200
@@ -141,7 +141,7 @@
 	return ret;
 }
 
-void addrandom(char * buf, unsigned int len)
+void addrandom(unsigned char * buf, unsigned int len)
 {
 	hash_state hs;
 
--- a/dbrandom.h	Sat May 02 15:58:33 2015 +0200
+++ b/dbrandom.h	Sat May 02 13:48:16 2015 +0200
@@ -29,7 +29,7 @@
 
 void seedrandom();
 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);
 
 #endif /* DROPBEAR_RANDOM_H_ */