summaryrefslogtreecommitdiffstats
path: root/apps/s_client.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2005-04-27 16:27:14 +0000
committerDr. Stephen Henson <steve@openssl.org>2005-04-27 16:27:14 +0000
commit6c61726b2af78a1985178d31e551351231b54b10 (patch)
treea8dbb193224405b5a6900138c9649c8a59ab0d6f /apps/s_client.c
parentcd202fe2f9d3cd44c361ba56b158ef400a75dc39 (diff)
Lots of Win32 fixes for DTLS.
1. "unsigned long long" isn't portable changed: to BN_ULLONG. 2. The LL prefix isn't allowed in VC++ but it isn't needed where it is used. 2. Avoid lots of compiler warnings about signed/unsigned mismatches. 3. Include new library directory pqueue in mk1mf build system. 4. Update symbols.
Diffstat (limited to 'apps/s_client.c')
-rw-r--r--apps/s_client.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/s_client.c b/apps/s_client.c
index d468778cd1..eaa9269610 100644
--- a/apps/s_client.c
+++ b/apps/s_client.c
@@ -275,7 +275,7 @@ int MAIN(int argc, char **argv)
#endif
struct sockaddr peer;
- socklen_t peerlen = sizeof(peer);
+ int peerlen = sizeof(peer);
int enable_timeouts = 0 ;
long mtu = 0;
@@ -643,7 +643,7 @@ re_start:
struct timeval timeout;
sbio=BIO_new_dgram(s,BIO_NOCLOSE);
- if (getsockname(s, &peer, &peerlen) < 0)
+ if (getsockname(s, &peer, (void *)&peerlen) < 0)
{
BIO_printf(bio_err, "getsockname:errno=%d\n",
get_last_socket_error());