security_db.hh
Go to the documentation of this file.
#pragma once
#include "security_cache.hh"
class security_db : public security_cache {
public:
security_db(const std::string& p_db_path);
~security_db();
int store_certificate(const CHARSTRING& p_cert_id, const OCTETSTRING& p_cert, const OCTETSTRING& p_private_key, const OCTETSTRING& p_public_key_x, const OCTETSTRING& p_public_key_y, const OCTETSTRING& p_hashid8, const OCTETSTRING& p_issuer, const OCTETSTRING& p_private_enc_key, const OCTETSTRING& p_public_enc_key_x, const OCTETSTRING& p_public_enc_key_y);
int clear();
private:
int load_from_files(const std::string& p_db_path);
}; // End of class security_db
security_cache.hh
security_db::store_certificate
int store_certificate(const CHARSTRING &p_cert_id, const OCTETSTRING &p_cert, const OCTETSTRING &p_private_key, const OCTETSTRING &p_public_key_x, const OCTETSTRING &p_public_key_y, const OCTETSTRING &p_hashid8, const OCTETSTRING &p_issuer, const OCTETSTRING &p_private_enc_key, const OCTETSTRING &p_public_enc_key_x, const OCTETSTRING &p_public_enc_key_y)
Definition: security_db.cc:47
security_db::clear
int clear()
Definition: security_db.cc:25
security_db::~security_db
~security_db()
Default private dtor.
Definition: security_db.cc:21
security_db
This class provides security record description for security database.
Definition: security_db.hh:9
security_db::load_from_files
int load_from_files(const std::string &p_db_path)
Definition: security_db.cc:31
security_cache
This class provides security record description for in memory security database. In memory mens there...
Definition: security_cache.hh:17
security_db::security_db
security_db(const std::string &p_db_path)
Ctor with full path to the certificates storage.
Definition: security_db.cc:14