summaryrefslogtreecommitdiffstats
path: root/nanohttp/nanohttp-common.c
diff options
context:
space:
mode:
authorGravatar snowdrop2006-01-11 10:54:43 +0000
committerGravatar snowdrop2006-01-11 10:54:43 +0000
commitfc3ecf82c3d0f8037e9130655128564de5d3c158 (patch)
treedcbec599d761d8b0a9052a40151a2fea2af50b83 /nanohttp/nanohttp-common.c
parent3a17b921e00936e3007807439f60e4bd7c7d6a51 (diff)
downloadcsoap-fc3ecf82c3d0f8037e9130655128564de5d3c158.tar.gz
csoap-fc3ecf82c3d0f8037e9130655128564de5d3c158.tar.bz2
intergrating ssl. Removing global variables SSL* like SSLctx and HSOCKET_SSL_* definition. Instead we are using HSOCKET_ERROR_SSL* definitions. introduced hsocket_init_ssl()
Diffstat (limited to 'nanohttp/nanohttp-common.c')
-rw-r--r--nanohttp/nanohttp-common.c17
1 files changed, 11 insertions, 6 deletions
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
}
}