Fix WIN32 warnings.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 22 Apr 2009 15:40:54 +0000 (15:40 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Wed, 22 Apr 2009 15:40:54 +0000 (15:40 +0000)
ssl/kssl.c
ssl/s3_srvr.c

index 4d507073b8e4a20e84d00e42f9f7c3abb60a9f3d..b5fa1f147dd64bf19a268008d70dc3c18a7530af 100644 (file)
@@ -2122,7 +2122,7 @@ krb5_error_code  kssl_check_authent(
                tm_g = gmtime(&now);            tg = mktime(tm_g);
                tz_offset = tg - tl;
 
-               *atimep = tr - tz_offset;
+               *atimep = (krb5_timestamp)(tr - tz_offset);
                }
 
 #ifdef KSSL_DEBUG
index 358bae32e9576b0e149baf16a89b0d06556d71eb..ffa031f61e0ca712ab1ff8ce79fc95207614a080 100644 (file)
@@ -2080,7 +2080,7 @@ int ssl3_get_client_key_exchange(SSL *s)
                n2s(p,i);
                enc_ticket.length = i;
 
-               if (n < enc_ticket.length + 6)
+               if (n < (long)(enc_ticket.length + 6))
                        {
                        SSLerr(SSL_F_SSL3_GET_CLIENT_KEY_EXCHANGE,
                                SSL_R_DATA_LENGTH_TOO_LONG);
@@ -2093,7 +2093,7 @@ int ssl3_get_client_key_exchange(SSL *s)
                n2s(p,i);
                authenticator.length = i;
 
-               if (n < enc_ticket.length + authenticator.length + 6)
+               if (n < (long)(enc_ticket.length + authenticator.length + 6))
                        {
                        SSLerr(SSL_F_SSL3_GET_CLIENT_KEY_EXCHANGE,
                                SSL_R_DATA_LENGTH_TOO_LONG);