diff options
| author | Paul Buetow (mars.fritz.box) <paul@buetow.org> | 2013-12-15 11:49:02 +0100 |
|---|---|---|
| committer | Paul Buetow (mars.fritz.box) <paul@buetow.org> | 2013-12-15 11:49:02 +0100 |
| commit | 3a96ab7e91145b367d05e98533b5f426f762f83f (patch) | |
| tree | ac7758a706066e14b785ab6e5f7071a54baa856b /yhttpd/src/sock/sslsock.h | |
| parent | 332d7b2107833018b3ef67b64ffe121bff1ef4fb (diff) | |
add packagespackages
Diffstat (limited to 'yhttpd/src/sock/sslsock.h')
| -rw-r--r-- | yhttpd/src/sock/sslsock.h | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/yhttpd/src/sock/sslsock.h b/yhttpd/src/sock/sslsock.h deleted file mode 100644 index f5358cc..0000000 --- a/yhttpd/src/sock/sslsock.h +++ /dev/null @@ -1,41 +0,0 @@ -#include "../incl.h" - -#ifdef OPENSSL -#ifndef SSLSOCK_H -#define SSLSOCK_H - -#include "sock.h" - -#include <openssl/rsa.h> -#include <openssl/crypto.h> -#include <openssl/x509.h> -#include <openssl/pem.h> -#include <openssl/ssl.h> -#include <openssl/err.h> - -using namespace std; - -class sslsock : public sock -{ -private: - SSL_CTX* p_ctx; - string s_certificate_path; - string s_privatekey_path; - map<int,void*> map_certs; - -public: - - sslsock( ); - ~sslsock( ); - - int _send(socketcontainer *p_sock, const char *sz, int len); - int _read(socketcontainer *p_sock, char *sz, int len); - int _close(socketcontainer *p_sock); - void _main_loop_init(); - bool _main_loop_do_ssl_stuff(int &i_new_sock); - socketcontainer* _create_container(int& i_sock); - int _make_server_socket(int i_port); -}; - -#endif -#endif |
