diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2005-12-05 17:21:22 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2005-12-05 17:21:22 +0000 |
commit | 7bbcb2f690dcb15c5a4908a9c29043a3edf6fc87 (patch) | |
tree | 3318e9b9692992f2b13f9b5bf00b02334709ea42 /ssl/s3_clnt.c | |
parent | ad2695b1b753caa53d9127a6e869ed3692b08fee (diff) |
Avoid warnings on VC++ 2005.
Diffstat (limited to 'ssl/s3_clnt.c')
-rw-r--r-- | ssl/s3_clnt.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ssl/s3_clnt.c b/ssl/s3_clnt.c index 7284c0aa4b..3e1f256c26 100644 --- a/ssl/s3_clnt.c +++ b/ssl/s3_clnt.c @@ -159,7 +159,7 @@ IMPLEMENT_ssl3_meth_func(SSLv3_client_method, int ssl3_connect(SSL *s) { BUF_MEM *buf=NULL; - unsigned long Time=time(NULL),l; + unsigned long Time=(unsigned long)time(NULL),l; long num1; void (*cb)(const SSL *ssl,int type,int val)=NULL; int ret= -1; @@ -541,7 +541,7 @@ int ssl3_client_hello(SSL *s) /* else use the pre-loaded session */ p=s->s3->client_random; - Time=time(NULL); /* Time */ + Time=(unsigned long)time(NULL); /* Time */ l2n(Time,p); if (RAND_pseudo_bytes(p,SSL3_RANDOM_SIZE-4) <= 0) goto err; |