summaryrefslogtreecommitdiff
path: root/core/io/stream_peer_ssl.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/io/stream_peer_ssl.h')
-rw-r--r--core/io/stream_peer_ssl.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/core/io/stream_peer_ssl.h b/core/io/stream_peer_ssl.h
index be7504cd8f..4b1c8e93bb 100644
--- a/core/io/stream_peer_ssl.h
+++ b/core/io/stream_peer_ssl.h
@@ -5,11 +5,23 @@
class StreamPeerSSL : public StreamPeer {
OBJ_TYPE(StreamPeerSSL,StreamPeer);
+public:
+
+ typedef void (*LoadCertsFromMemory)(const ByteArray& p_certs);
protected:
static StreamPeerSSL* (*_create)();
static void _bind_methods();
+
+ static LoadCertsFromMemory load_certs_func;
+ static bool available;
+
+
+friend class Main;
+ static bool initialize_certs;
+
public:
+
enum Status {
STATUS_DISCONNECTED,
STATUS_CONNECTED,
@@ -25,6 +37,8 @@ public:
static StreamPeerSSL* create();
+ static void load_certs_from_memory(const ByteArray& p_memory);
+ static bool is_available();
StreamPeerSSL();
};