diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2009-04-22 15:40:54 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2009-04-22 15:40:54 +0000 |
commit | b61a84c8e6ab217b0700ce6d95e6b4138762e921 (patch) | |
tree | c885f01378be823fa96a8ad1d4a490456137c76b | |
parent | a543ea44bcf45d9741c105ca098e445362cbabc7 (diff) |
Fix WIN32 warnings.
-rw-r--r-- | ssl/kssl.c | 2 | ||||
-rw-r--r-- | ssl/s3_srvr.c | 4 |
2 files changed, 3 insertions, 3 deletions
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); |