mirror of
https://github.com/Palakis/obs-websocket.git
synced 2024-08-30 18:12:16 +00:00
23 lines
553 B
C++
23 lines
553 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
#include <QString>
|
|
#include <nlohmann/json.hpp>
|
|
#include <obs-data.h>
|
|
|
|
using json = nlohmann::json;
|
|
|
|
namespace Utils {
|
|
namespace Json {
|
|
bool JsonArrayIsValidObsArray(json j);
|
|
obs_data_t *JsonToObsData(json j);
|
|
json ObsDataToJson(obs_data_t *d, bool includeDefault = false);
|
|
}
|
|
|
|
namespace Crypto {
|
|
std::string GenerateSalt();
|
|
std::string GenerateSecret(std::string password, std::string salt);
|
|
bool CheckAuthenticationString(std::string secret, std::string challenge, std::string authenticationString);
|
|
}
|
|
}
|