diff --git a/src/core/ssl_server.h b/src/core/ssl_server.h index a750aca..2e6fd9e 100644 --- a/src/core/ssl_server.h +++ b/src/core/ssl_server.h @@ -12,6 +12,7 @@ #include #include #include +#include namespace Yc { namespace Lib { diff --git a/src/lib/base.h b/src/lib/base.h index 7b87070..907c6d1 100755 --- a/src/lib/base.h +++ b/src/lib/base.h @@ -14,6 +14,7 @@ public: // Neue öffentliche Helper zum Entfernen aller "token"-Felder static void sanitizeTokens(Json::Value& v); static void sanitizeTokensInString(std::string& s); + static std::string generateToken(); protected: void send(int socket, std::string out); @@ -27,7 +28,6 @@ protected: static void unmarkWebSocket(int socket); static bool isWebSocket(int socket); static std::string webSocketAcceptKey(const std::string& clientKey); - static std::string generateToken(); }; } // namespace Lib