Signedness mismatch.
authorRichard Levitte <levitte@openssl.org>
Sat, 20 Apr 2002 10:23:19 +0000 (10:23 +0000)
committerRichard Levitte <levitte@openssl.org>
Sat, 20 Apr 2002 10:23:19 +0000 (10:23 +0000)
Notified by Bernd Matthes <bernd.matthes@gemplus.com>

ssl/s3_pkt.c
ssl/ssltest.c

index 5e60e18972734d059f295f72517e84bb7f18cd78..e411fb5a0380b5f180a84df9fa844df19b50d3b5 100644 (file)
@@ -245,7 +245,7 @@ static int ssl3_get_record(SSL *s)
                extra=SSL3_RT_MAX_EXTRA;
        else
                extra=0;
-       if (extra != (s->s3->rbuf.len - SSL3_RT_MAX_PACKET_SIZE))
+       if ((size_t)extra != (s->s3->rbuf.len - SSL3_RT_MAX_PACKET_SIZE))
                {
                /* actually likely an application error: SLS_OP_MICROSOFT_BIG_SSLV3_BUFFER
                 * set after ssl3_setup_buffers() was done */
@@ -605,7 +605,7 @@ static int do_ssl3_write(SSL *s, int type, const unsigned char *buf,
                        if (prefix_len <= 0)
                                goto err;
 
-                       if (s->s3->wbuf.len < prefix_len + SSL3_RT_MAX_PACKET_SIZE)
+                       if (s->s3->wbuf.len < (size_t)prefix_len + SSL3_RT_MAX_PACKET_SIZE)
                                {
                                /* insufficient space */
                                SSLerr(SSL_F_DO_SSL3_WRITE, ERR_R_INTERNAL_ERROR);
index f98202945ebf67a7a9eb4e4c24a0c6550d150e76..918aabe4d5fb607b855082b762b9b40f81141686 100644 (file)
@@ -991,7 +991,7 @@ int doit_biopair(SSL *s_ssl, SSL *c_ssl, long count,
                        do
                                {
                                size_t num;
-                               int r;
+                               size_t r;
 
                                r1 = BIO_ctrl_pending(io1);
                                r2 = BIO_ctrl_get_write_guarantee(io2);