diff options
author | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-04-11 16:34:49 +0000 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@OARcorp.com> | 2003-04-11 16:34:49 +0000 |
commit | 2e7f00fce6696c380a93ea939bf233760f499640 (patch) | |
tree | 4054b7b0d7a6722c69691523b63159feb4ce06b0 /cpukit/httpd/websSSL.h | |
parent | 2002-04-10 Mike Siers <mikes@poliac.com> (diff) | |
download | rtems-2e7f00fce6696c380a93ea939bf233760f499640.tar.bz2 |
2003-04-11 Joel Sherrill <joel@OARcorp.com>
* rtems_webserver/cgi.c, rtems_webserver/sockGen.c,
rtems_webserver/umui.c, rtems_webserver/websSSL.c,
rtems_webserver/websSSL.h, rtems_webserver/websda.c,
rtems_webserver/websda.h: New files. Not included in previous commit.
Diffstat (limited to 'cpukit/httpd/websSSL.h')
-rw-r--r-- | cpukit/httpd/websSSL.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/cpukit/httpd/websSSL.h b/cpukit/httpd/websSSL.h new file mode 100644 index 0000000000..62bcc44930 --- /dev/null +++ b/cpukit/httpd/websSSL.h @@ -0,0 +1,67 @@ +/* + * websSSL.h -- SSL Patch header + * + * Copyright (c) GoAhead Software Inc., 1992-2000. All Rights Reserved. + * + * See the file "license.txt" for information on usage and redistribution + * + * $Id$ + */ + +#ifndef _h_websSSL +#define _h_websSSL 1 + +/******************************** Description *********************************/ + +/* + * Header file for the GoAhead Patch for SSL. This defines the interface to + * integrate SSL into the GoAhead Webserver. + */ + +/********************************* Includes ***********************************/ + + +#ifdef OPENSSL +#define SSLEAY /* turn off a few special case MONOLITH macros */ +#define USE_SOCKETS /* needed for the _O_BINARY defs in the MS world */ +#include <openssl/ssl.h> +#else +#include <sslc.h> +#endif + +#ifndef UEMF + #include "basic/basic.h" + #include "emf/emf.h" +#else + #include "uemf.h" +#endif + +/********************************** Defines ***********************************/ + +typedef struct { + SSL *ssl; + BIO *bio; +} websSSL_t; + + +/******************************** Prototypes **********************************/ + +extern int websSSLOpen(); +extern int websSSLIsOpen(); +extern void websSSLClose(); + +extern int websSSLWrite(websSSL_t *wsp, char_t *buf, int nChars); +extern int websSSLGets(websSSL_t *wsp, char_t **buf); +extern int websSSLRead(websSSL_t *wsp, char_t *buf, int nChars); +extern int websSSLEof(websSSL_t *wsp); + +extern int websSSLFree(websSSL_t *wsp); +extern int websSSLFlush(websSSL_t *wsp); + +extern int websSSLSetKeyFile(char_t *keyFile); +extern int websSSLSetCertFile(char_t *certFile); + + +#endif /* _h_websSSL */ + +/*****************************************************************************/ |