The unified diff between revisions [d0935a5d..] and [e0686662..] is displayed below. It can also be downloaded as a raw diff.

This diff has been restricted to the following files: 'bignum.c'

#
#
# patch "bignum.c"
#  from [8364cbabf0e7d51729bce8bfcb1107491c607314]
#    to [7254934652c463035add2847a4c88620f21a4146]
#
============================================================
--- bignum.c	8364cbabf0e7d51729bce8bfcb1107491c607314
+++ bignum.c	7254934652c463035add2847a4c88620f21a4146
@@ -52,9 +52,9 @@ void m_mp_init_multi(mp_int *mp, ...)
     va_end(args);
 }

-void bytestomp(mp_int *mp, unsigned char* bytes, unsigned int len) {
+void bytes_to_mp(mp_int *mp, const unsigned char* bytes, unsigned int len) {

-	if (mp_read_unsigned_bin(mp, bytes, len) != MP_OKAY) {
+	if (mp_read_unsigned_bin(mp, (unsigned char*)bytes, len) != MP_OKAY) {
 		dropbear_exit("mem alloc error");
 	}
 }