summaryrefslogtreecommitdiffstats
path: root/nanohttp/nanohttp-client.c
diff options
context:
space:
mode:
authorGravatar mrcsys2006-01-06 15:16:03 +0000
committerGravatar mrcsys2006-01-06 15:16:03 +0000
commit8a1f6c136a94f322b06dec615df4b0f7cd73a671 (patch)
tree63af13c3f6e406b8aeacf10fcdcdffe64e16349f /nanohttp/nanohttp-client.c
parent73327fb2d2a2da4b25e91e34ca121cac6b03fe42 (diff)
downloadcsoap-8a1f6c136a94f322b06dec615df4b0f7cd73a671.tar.gz
csoap-8a1f6c136a94f322b06dec615df4b0f7cd73a671.tar.bz2
Updated to take the HAVE_SSL define and act accordingly
Diffstat (limited to 'nanohttp/nanohttp-client.c')
-rw-r--r--nanohttp/nanohttp-client.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/nanohttp/nanohttp-client.c b/nanohttp/nanohttp-client.c
index cd13af8..02d6c3c 100644
--- a/nanohttp/nanohttp-client.c
+++ b/nanohttp/nanohttp-client.c
@@ -1,5 +1,5 @@
/******************************************************************
-* $Id: nanohttp-client.c,v 1.30 2005/12/19 14:18:26 snowdrop Exp $
+* $Id: nanohttp-client.c,v 1.31 2006/01/06 15:16:03 mrcsys Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2003 Ferhat Ayaz
@@ -319,6 +319,7 @@ httpc_talk_to_server(hreq_method_t method, httpc_conn_t * conn,
if (status != H_OK) {
return status;
}
+#ifdef HAVE_SSL
/* TODO XXX XXX this is probably not right -- matt */
if(!&conn->sock.ssl){
status = hsocket_block(conn->sock, conn->block);
@@ -327,6 +328,7 @@ httpc_talk_to_server(hreq_method_t method, httpc_conn_t * conn,
return status;
}
}
+#endif
/* check method */
if (method == HTTP_REQUEST_GET) {