diff options
Diffstat (limited to 'tools/editor/editor_initialize_ssl.cpp')
-rw-r--r-- | tools/editor/editor_initialize_ssl.cpp | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/editor/editor_initialize_ssl.cpp b/tools/editor/editor_initialize_ssl.cpp new file mode 100644 index 0000000000..e0602a88c7 --- /dev/null +++ b/tools/editor/editor_initialize_ssl.cpp @@ -0,0 +1,21 @@ +#include "editor_initialize_ssl.h" +#include "certs_compressed.h" +#include "io/stream_peer_ssl.h" +#include "io/compression.h" + +void editor_initialize_certificates() { + + + ByteArray data; + data.resize(_certs_uncompressed_size); + { + ByteArray::Write w = data.write(); + Compression::decompress(w.ptr(),_certs_uncompressed_size,_certs_compressed,_certs_compressed_size,Compression::MODE_DEFLATE); + } + + StreamPeerSSL::load_certs_from_memory(data); + + +} + + |