summaryrefslogtreecommitdiffstats
path: root/nanohttp/nanohttp-ssl.h
diff options
context:
space:
mode:
authorGravatar m0gg2006-11-27 12:47:27 +0000
committerGravatar m0gg2006-11-27 12:47:27 +0000
commit17d9b98c8525c74cd83a421f151062825fe66890 (patch)
tree615dc9207798af270a8a0d957e427cc59a29166c /nanohttp/nanohttp-ssl.h
parent504da9682a1e739b41cfdbb25721f518c83ebf83 (diff)
downloadcsoap-17d9b98c8525c74cd83a421f151062825fe66890.tar.gz
csoap-17d9b98c8525c74cd83a421f151062825fe66890.tar.bz2
Code cleanup
Diffstat (limited to 'nanohttp/nanohttp-ssl.h')
-rw-r--r--nanohttp/nanohttp-ssl.h65
1 files changed, 3 insertions, 62 deletions
diff --git a/nanohttp/nanohttp-ssl.h b/nanohttp/nanohttp-ssl.h
index 1b23be8..6df53e7 100644
--- a/nanohttp/nanohttp-ssl.h
+++ b/nanohttp/nanohttp-ssl.h
@@ -1,5 +1,5 @@
/******************************************************************
-* $Id: nanohttp-ssl.h,v 1.21 2006/11/24 17:28:07 m0gg Exp $
+* $Id: nanohttp-ssl.h,v 1.22 2006/11/27 12:47:27 m0gg Exp $
*
* CSOAP Project: A http client/server library in C
* Copyright (C) 2001-2005 Rochester Institute of Technology
@@ -24,16 +24,6 @@
#ifndef __nanohttp_ssl_h
#define __nanohttp_ssl_h
-#ifdef HAVE_CONFIG_H
-#include <config.h>
-#endif
-
-#ifdef HAVE_SSL
-
-#ifdef HAVE_OPENSSL_SSL_H
-#include <openssl/ssl.h>
-#endif
-
/**
*
* Commandline argument to enabled SSL in the nanoHTTP server.
@@ -42,8 +32,7 @@
#define NHTTPD_ARG_HTTPS "-NHTTPS"
#ifdef __cplusplus
-extern "C"
-{
+extern "C" {
#endif
/**
@@ -127,56 +116,8 @@ extern int verify_sn(X509 * cert, int who, int nid, char *str);
*/
extern void hssl_set_user_verify(int func(X509 * cert));
-#ifdef __cplusplus
-}
-#endif
-
-#else /* HAVE_SSL */
-
-static inline herror_t
-hssl_module_init(int argc, char **argv)
-{
- return H_OK;
-}
-
-static inline void
-hssl_module_destroy(void)
-{
- return;
-}
-
-static inline int
-hssl_enabled(void)
-{
- return 0;
-}
-
-static inline herror_t
-hssl_client_ssl(struct hsocket_t *sock)
-{
- return H_OK;
-}
-
-static inline herror_t
-hssl_server_ssl(struct hsocket_t *sock)
-{
- return H_OK;
-}
-
-static inline void
-hssl_cleanup(struct hsocket_t *sock)
-{
- return;
-}
-
-#endif /* HAVE_SSL */
-
-#ifdef __cplusplus
-extern "C"
-{
-#endif
-
extern herror_t hssl_read(struct hsocket_t * sock, char *buf, size_t len, size_t * received);
+
extern herror_t hssl_write(struct hsocket_t * sock, const char *buf, size_t len, size_t * sent);
#ifdef __cplusplus