Explorar o código

SSL Verbindung unterstützt

Kolja Strohm %!s(int64=6) %!d(string=hai) anos
pai
achega
d85bd51606
Modificáronse 4 ficheiros con 14 adicións e 3 borrados
  1. 2 0
      Network/Klient.cpp
  2. 6 2
      Network/Klient.h
  3. 1 0
      Network/Server.cpp
  4. 5 1
      Network/Server.h

+ 2 - 0
Network/Klient.cpp

@@ -1,3 +1,5 @@
+#include <openssl/bio.h>
+#include <openssl/ssl.h>
 #include "Klient.h"
 #ifndef WIN32
 #include <string.h>

+ 6 - 2
Network/Klient.h

@@ -2,8 +2,12 @@
 #define Klient_H
 
 #include "Network.h"
-#include <openssl/bio.h>
-#include <openssl/ssl.h>
+
+#ifndef HEADER_OPENSSL_TYPES_H
+struct SSL_CTX;
+struct SSL;
+struct BIO;
+#endif
 
 namespace Framework
 {

+ 1 - 0
Network/Server.cpp

@@ -1,3 +1,4 @@
+#include <openssl/ssl.h>
 #include "Server.h"
 #ifndef WIN32
 #include <string.h>

+ 5 - 1
Network/Server.h

@@ -2,7 +2,11 @@
 #define Server_H
 
 #include "Network.h"
-#include <openssl/ssl.h>
+
+#ifndef HEADER_OPENSSL_TYPES_H
+struct SSL_CTX;
+struct SSL;
+#endif
 
 namespace Framework
 {