From: Dr. Stephen Henson Date: Wed, 22 Apr 2009 15:40:54 +0000 (+0000) Subject: Fix WIN32 warnings. X-Git-Tag: OpenSSL_1_0_0-beta3~132 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=b61a84c8e6ab217b0700ce6d95e6b4138762e921;p=oweals%2Fopenssl.git Fix WIN32 warnings. --- diff --git a/ssl/kssl.c b/ssl/kssl.c index 4d507073b8..b5fa1f147d 100644 --- a/ssl/kssl.c +++ b/ssl/kssl.c @@ -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 diff --git a/ssl/s3_srvr.c b/ssl/s3_srvr.c index 358bae32e9..ffa031f61e 100644 --- a/ssl/s3_srvr.c +++ b/ssl/s3_srvr.c @@ -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);