提交 47739161 编写于 作者: D Dr. Stephen Henson

fix WIN32 warnings

(cherry picked from commit b709f8ef54b1c9ad513878ba0213aa651a9acef8)
上级 8764e863
...@@ -102,7 +102,7 @@ static void timestamp_print(BIO *out, BN_ULLONG timestamp) ...@@ -102,7 +102,7 @@ static void timestamp_print(BIO *out, BN_ULLONG timestamp)
char genstr[20]; char genstr[20];
gen = ASN1_GENERALIZEDTIME_new(); gen = ASN1_GENERALIZEDTIME_new();
ASN1_GENERALIZEDTIME_adj(gen, (time_t)0, ASN1_GENERALIZEDTIME_adj(gen, (time_t)0,
timestamp / 86400000, (int)(timestamp / 86400000),
(timestamp % 86400000) / 1000); (timestamp % 86400000) / 1000);
/* Note GeneralizedTime from ASN1_GENERALIZETIME_adj is always 15 /* Note GeneralizedTime from ASN1_GENERALIZETIME_adj is always 15
* characters long with a final Z. Update it with fractional seconds. * characters long with a final Z. Update it with fractional seconds.
......
...@@ -3719,7 +3719,7 @@ int tls1_get_server_supplemental_data(SSL *s) ...@@ -3719,7 +3719,7 @@ int tls1_get_server_supplemental_data(SSL *s)
long n; long n;
const unsigned char *p, *d; const unsigned char *p, *d;
unsigned short supp_data_entry_type = 0; 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; unsigned long supp_data_len = 0;
size_t i; size_t i;
int cb_retval = 0; int cb_retval = 0;
......
...@@ -3806,7 +3806,7 @@ int tls1_get_client_supplemental_data(SSL *s) ...@@ -3806,7 +3806,7 @@ int tls1_get_client_supplemental_data(SSL *s)
long n; long n;
const unsigned char *p, *d; const unsigned char *p, *d;
unsigned short supp_data_entry_type = 0; 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; unsigned long supp_data_len = 0;
size_t i = 0; size_t i = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册