oxen-storage-server/httpserver/security.h
2021-01-07 15:12:15 +11:00

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