Win32 VC++ warning fixes.
authorDr. Stephen Henson <steve@openssl.org>
Thu, 2 May 2002 01:52:18 +0000 (01:52 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 2 May 2002 01:52:18 +0000 (01:52 +0000)
ssl/s3_pkt.c

index fb086dcc861f1e2dceaddd8a49973133e5bfde36..652249cdfb6a15217753f89448da3165aeab70fa 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 (extra != (int)(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 < (unsigned int)(prefix_len + SSL3_RT_MAX_PACKET_SIZE))
                                {
                                /* insufficient space */
                                SSLerr(SSL_F_DO_SSL3_WRITE, SSL_R_INTERNAL_ERROR);