X-Git-Url: https://git.distorted.org.uk/u/mdw/putty/blobdiff_plain/143ec28a626f97d0c81b7d653a3de3eee419268d..1fcd0d9872f2f90f63ca164e9f0661096db056cf:/sshrsa.c diff --git a/sshrsa.c b/sshrsa.c index 2dc09d1c..12229e63 100644 --- a/sshrsa.c +++ b/sshrsa.c @@ -961,7 +961,7 @@ void ssh_rsakex_encrypt(const struct ssh_hash *h, unsigned char *in, int inlen, */ b1 = bignum_from_bytes(out, outlen); b2 = modpow(b1, rsa->exponent, rsa->modulus); - p = out; + p = (char *)out; for (i = outlen; i--;) { *p++ = bignum_byte(b2, i); }