mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-01-10 09:58:01 +00:00
Eliminate more unsigned char * vs char * errors using explicit casts.
[originally from svn r2465]
This commit is contained in:
parent
2af5d85989
commit
ac6221c757
4
sshrsa.c
4
sshrsa.c
@ -299,7 +299,7 @@ static Bignum getmp(char **data, int *datalen)
|
|||||||
getstring(data, datalen, &p, &length);
|
getstring(data, datalen, &p, &length);
|
||||||
if (!p)
|
if (!p)
|
||||||
return NULL;
|
return NULL;
|
||||||
b = bignum_from_bytes(p, length);
|
b = bignum_from_bytes((unsigned char *)p, length);
|
||||||
return b;
|
return b;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -510,7 +510,7 @@ static char *rsa2_fingerprint(void *key)
|
|||||||
int numlen, i;
|
int numlen, i;
|
||||||
|
|
||||||
MD5Init(&md5c);
|
MD5Init(&md5c);
|
||||||
MD5Update(&md5c, "\0\0\0\7ssh-rsa", 11);
|
MD5Update(&md5c, (unsigned char *)"\0\0\0\7ssh-rsa", 11);
|
||||||
|
|
||||||
#define ADD_BIGNUM(bignum) \
|
#define ADD_BIGNUM(bignum) \
|
||||||
numlen = (bignum_bitcount(bignum)+8)/8; \
|
numlen = (bignum_bitcount(bignum)+8)/8; \
|
||||||
|
Loading…
Reference in New Issue
Block a user