From fc3ecf82c3d0f8037e9130655128564de5d3c158 Mon Sep 17 00:00:00 2001 From: snowdrop Date: Wed, 11 Jan 2006 10:54:43 +0000 Subject: intergrating ssl. Removing global variables SSL* like SSLctx and HSOCKET_SSL_* definition. Instead we are using HSOCKET_ERROR_SSL* definitions. introduced hsocket_init_ssl() --- nanohttp/nanohttp-common.c | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) (limited to 'nanohttp/nanohttp-common.c') diff --git a/nanohttp/nanohttp-common.c b/nanohttp/nanohttp-common.c index 3dcee6b..0b7661b 100644 --- a/nanohttp/nanohttp-common.c +++ b/nanohttp/nanohttp-common.c @@ -1,5 +1,5 @@ /****************************************************************** -* $Id: nanohttp-common.c,v 1.22 2006/01/10 11:29:05 snowdrop Exp $ +* $Id: nanohttp-common.c,v 1.23 2006/01/11 10:54:43 snowdrop Exp $ * * CSOAP Project: A http client/server library in C * Copyright (C) 2003 Ferhat Ayaz @@ -42,10 +42,11 @@ static char _hoption_table[MAX_OPTION_SIZE][MAX_OPTION_VALUE_SIZE]; #ifdef HAVE_SSL -extern char *SSLCert; +/*extern char *SSLCert; extern char *SSLPass; extern char *SSLCA; extern int SSLCertLess; +*/ #endif /* option stuff */ @@ -100,7 +101,8 @@ hoption_init_args(int argc, char *argv[]) "WARNING: csoap compiled without '--with-ssl' flag. Parameter '%s' is disabled", NHTTP_ARG_CERT); #else - SSLCert = argv[i + 1]; + /* TODO (#1#) handle ssl arguments */ + /* SSLCert = argv[i + 1];*/ #endif } else if (!strcmp(argv[i], NHTTP_ARG_CERTPASS) && i < argc - 1) @@ -110,7 +112,8 @@ hoption_init_args(int argc, char *argv[]) "WARNING: csoap compiled without '--with-ssl' flag. Parameter '%s' is disabled", NHTTP_ARG_CERTPASS); #else - SSLPass = argv[i + 1]; + /* TODO (#1#) handle ssl arguments */ + /* SSLPass = argv[i + 1];*/ #endif } else if (!strcmp(argv[i], NHTTP_ARG_CA) && i < argc - 1) @@ -120,7 +123,8 @@ hoption_init_args(int argc, char *argv[]) "WARNING: csoap compiled without '--with-ssl' flag. Parameter '%s' is disabled", NHTTP_ARG_CA); #else - SSLCA = argv[i + 1]; + /* TODO (#1#) handle ssl arguments */ + /*SSLCA = argv[i + 1];*/ #endif } else if (!strcmp(argv[i], NHTTP_ARG_HTTPS)) @@ -130,7 +134,8 @@ hoption_init_args(int argc, char *argv[]) "WARNING: csoap compiled without '--with-ssl' flag. Parameter '%s' is disabled", NHTTP_ARG_HTTPS); #else - SSLCertLess = 1; + /* TODO (#1#) handle ssl arguments */ + /*SSLCertLess = 1;*/ #endif } } -- cgit v1.1-32-gdbae