fix WIN32 warnings

(cherry picked from commit b709f8ef54)
This commit is contained in:
Dr. Stephen Henson 2014-02-20 22:37:33 +00:00
parent 8764e86339
commit 47739161c6
3 changed files with 3 additions and 3 deletions

View File

@ -102,7 +102,7 @@ static void timestamp_print(BIO *out, BN_ULLONG timestamp)
char genstr[20];
gen = ASN1_GENERALIZEDTIME_new();
ASN1_GENERALIZEDTIME_adj(gen, (time_t)0,
timestamp / 86400000,
(int)(timestamp / 86400000),
(timestamp % 86400000) / 1000);
/* Note GeneralizedTime from ASN1_GENERALIZETIME_adj is always 15
* characters long with a final Z. Update it with fractional seconds.

View File

@ -3719,7 +3719,7 @@ int tls1_get_server_supplemental_data(SSL *s)
long n;
const unsigned char *p, *d;
unsigned short supp_data_entry_type = 0;
unsigned long supp_data_entry_len = 0;
unsigned short supp_data_entry_len = 0;
unsigned long supp_data_len = 0;
size_t i;
int cb_retval = 0;

View File

@ -3806,7 +3806,7 @@ int tls1_get_client_supplemental_data(SSL *s)
long n;
const unsigned char *p, *d;
unsigned short supp_data_entry_type = 0;
unsigned long supp_data_entry_len = 0;
unsigned short supp_data_entry_len = 0;
unsigned long supp_data_len = 0;
size_t i = 0;