Ergänze Header-Dateien um JSON-Unterstützung und füge die Methode generateToken hinzu
- Füge die JSON-Bibliothek in `ssl_server.h` hinzu, um JSON-Funktionalitäten zu unterstützen. - Ergänze die Methode `generateToken` in `base.h`, um die Token-Generierung zu ermöglichen. - Aktualisiere die Header-Dateien, um neue Methoden und Abhängigkeiten zu berücksichtigen.
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include <queue>
|
||||
#include <condition_variable>
|
||||
#include <vector>
|
||||
#include <json/json.h>
|
||||
|
||||
namespace Yc {
|
||||
namespace Lib {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user