summaryrefslogtreecommitdiffstats
path: root/nanohttp/nanohttp-ssl.h
diff options
context:
space:
mode:
authorGravatar snowdrop2006-01-10 11:21:55 +0000
committerGravatar snowdrop2006-01-10 11:21:55 +0000
commitc24e5b5135d745098ea6e5c4664a88ada6b99225 (patch)
tree5a699cafd54fe64e08c10f2a2912f1d800cc0a6b /nanohttp/nanohttp-ssl.h
parent56841f81e5c0082ec7c36e44737d07f60fada535 (diff)
downloadcsoap-c24e5b5135d745098ea6e5c4664a88ada6b99225.tar.gz
csoap-c24e5b5135d745098ea6e5c4664a88ada6b99225.tar.bz2
indent with 'indent -nut -bli0 -fca' command
Diffstat (limited to 'nanohttp/nanohttp-ssl.h')
-rw-r--r--nanohttp/nanohttp-ssl.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/nanohttp/nanohttp-ssl.h b/nanohttp/nanohttp-ssl.h
index c783812..449c78c 100644
--- a/nanohttp/nanohttp-ssl.h
+++ b/nanohttp/nanohttp-ssl.h
@@ -23,7 +23,7 @@
*/
/* Do enter only if --with-ssl was specified by the configure script */
-#ifdef HAVE_SSL
+#ifdef HAVE_SSL
#ifdef TRU64
#include <arpa/inet.h>
@@ -47,9 +47,10 @@ typedef unsigned int uint32_t;
#define CERT_SUBJECT 0
#define CERT_ISSUER 1
-typedef struct Con {
- SSL* ssl;
- int sock;
+typedef struct Con
+{
+ SSL *ssl;
+ int sock;
} Con;
/*
@@ -62,7 +63,7 @@ typedef struct Con {
* Initialize the context
*/
-SSL_CTX *initialize_ctx(char *keyfile, char *password, char* calist);
+SSL_CTX *initialize_ctx (char *keyfile, char *password, char *calist);
/*
* Quick function for verifying a portion of the cert
@@ -70,7 +71,7 @@ SSL_CTX *initialize_ctx(char *keyfile, char *password, char* calist);
* returns non-zero if everything went ok
*/
-int verify_sn(X509* cert, int who, int nid, char* str);
+int verify_sn (X509 * cert, int who, int nid, char *str);
/*
* Called by framework for verify
@@ -82,22 +83,21 @@ int verify_sn(X509* cert, int who, int nid, char* str);
* This function MUST be implemented by user client/server code somewhere
*/
-int user_verify(X509* cert);
+int user_verify (X509 * cert);
/*
* Create the ssl socket and return it
* pass in the context and an open socket
*/
-SSL* init_ssl(SSL_CTX* ctx, int sock, int type);
+SSL *init_ssl (SSL_CTX * ctx, int sock, int type);
/*
* Close the ssl connection (socket is still left open)
*/
-void ssl_cleanup();
+void ssl_cleanup ();
#endif
#endif /* HAVE_SSL */
-