]> asedeno.scripts.mit.edu Git - PuTTY.git/commitdiff
Fix a couple of signedness compiler warnings, presumably due to me
authorSimon Tatham <anakin@pobox.com>
Sat, 30 Jun 2007 18:18:20 +0000 (18:18 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 30 Jun 2007 18:18:20 +0000 (18:18 +0000)
using a different version of gcc from before.

[originally from svn r7627]

ssh.c
sshrsa.c

diff --git a/ssh.c b/ssh.c
index 809f4af41f7f6c7c37d115bb0dac9de835e14367..5196b1b3415a3d84b60912e741a9380b98052a72 100644 (file)
--- a/ssh.c
+++ b/ssh.c
@@ -5756,7 +5756,7 @@ static int do_ssh2_transport(Ssh ssh, void *vin, int inlen,
              */
             s->pktout = ssh2_pkt_init(SSH2_MSG_KEXRSA_SECRET);
             ssh2_pkt_addstring_start(s->pktout);
-            ssh2_pkt_addstring_data(s->pktout, outstr, outstrlen);
+            ssh2_pkt_addstring_data(s->pktout, (char *)outstr, outstrlen);
             ssh2_pkt_send_noqueue(ssh, s->pktout);
 
            hash_string(ssh->kex->hash, ssh->exhash, outstr, outstrlen);
index 2dc09d1c710bbd8e9c096358aac3c5374f49854d..12229e63152066dda831a08ebe60408dccbd29df 100644 (file)
--- 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);
     }