mirror of
https://github.com/oxen-io/oxen-storage-server.git
synced 2023-12-13 21:00:26 +01:00
26 lines
508 B
C++
26 lines
508 B
C++
#pragma once
|
|
|
|
#include <string>
|
|
|
|
#include <filesystem>
|
|
|
|
namespace oxen {
|
|
|
|
struct oxend_key_pair_t;
|
|
|
|
class Security {
|
|
public:
|
|
Security(const oxend_key_pair_t& key_pair,
|
|
const std::filesystem::path& base_path);
|
|
|
|
std::string base64_sign(const std::string& body);
|
|
void generate_cert_signature();
|
|
std::string get_cert_signature() const;
|
|
|
|
private:
|
|
const oxend_key_pair_t& key_pair_;
|
|
std::string cert_signature_;
|
|
std::filesystem::path base_path_;
|
|
};
|
|
} // namespace oxen
|