diff options
author | Juan Linietsky <reduzio@gmail.com> | 2014-04-28 21:56:43 -0300 |
---|---|---|
committer | Juan Linietsky <reduzio@gmail.com> | 2014-04-28 21:56:43 -0300 |
commit | 87f37bc5a305e6a68ef232be580350588e300fcc (patch) | |
tree | 608af97f58c0dd7f2f6f86d973b072f7888bfca0 /drivers/openssl/stream_peer_ssl.h | |
parent | 7fadc2f93a18f2b5487fbcd6e90bcde781c53fec (diff) |
-Added OpenSSL and HTTPS support
-Built-in version of the library for Windows, Android and iOS (other OSs use system one)
-Small fixes all around
Diffstat (limited to 'drivers/openssl/stream_peer_ssl.h')
-rw-r--r-- | drivers/openssl/stream_peer_ssl.h | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/drivers/openssl/stream_peer_ssl.h b/drivers/openssl/stream_peer_ssl.h deleted file mode 100644 index 74866c2da4..0000000000 --- a/drivers/openssl/stream_peer_ssl.h +++ /dev/null @@ -1,43 +0,0 @@ -#ifndef STREAM_PEER_SSL_H -#define STREAM_PEER_SSL_H - -#ifdef OPENSSL_ENABLED - -#include "io/stream_peer.h" -#include <openssl/applink.c> // To prevent crashing (see the OpenSSL FAQ) -#include <openssl/bio.h> // BIO objects for I/O -#include <openssl/ssl.h> // SSL and SSL_CTX for SSL connections -#include <openssl/err.h> // Error reporting - -#include <stdio.h> // If you don't know what this is for stop reading now. -class StreamPeerSSL : public StreamPeer { - - OBJ_TYPE(StreamPeerSSL,StreamPeer); -public: - - enum ConnectFlags { - - CONNECT_FLAG_BUG_WORKAROUNDS=1, - CONNECT_FLAG_NO_SSLV2=2, - CONNECT_FLAG_NO_SSLV3=4, - CONNECT_FLAG_NO_TLSV1=8, - CONNECT_FLAG_NO_COMPRESSION=16, - }; - - SSL_CTX* ctx; - SSL* ssl; - BIO* bio; - - -public: - - - Error connect(const String &p_host,int p_port); - static void initialize_ssl(); - static void finalize_ssl(); - - StreamPeerSSL(); -}; - -#endif -#endif // STREAM_PEER_SSL_H |