fix WIN32 warnings
authorDr. Stephen Henson <steve@openssl.org>
Thu, 20 Feb 2014 22:37:33 +0000 (22:37 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 20 Feb 2014 22:41:06 +0000 (22:41 +0000)
crypto/x509v3/v3_scts.c
ssl/s3_clnt.c
ssl/s3_srvr.c

index c6ef0dc901ad948d78fda0c349e325a0398d2cc4..32548007d8b68033a00a7dfdebf3617fd3901379 100644 (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.
index f5ed658d10374c1dca049256906d95344aeec383..12fac10d0826d386c4480eb9acd331579a69f2a9 100644 (file)
@@ -3714,7 +3714,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;
index aefc559011c09c4127472f30cd5816cc0b160ed3..bea6e2750bd3bebbdd7260e9f8dbc073e1fd2632 100644 (file)
@@ -3755,7 +3755,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;