From 8a1f6c136a94f322b06dec615df4b0f7cd73a671 Mon Sep 17 00:00:00 2001 From: mrcsys Date: Fri, 6 Jan 2006 15:16:03 +0000 Subject: Updated to take the HAVE_SSL define and act accordingly --- nanohttp/nanohttp-client.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'nanohttp/nanohttp-client.c') 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) { -- cgit v1.1-32-gdbae