i2pd/Family.h

36 lines
555 B
C
Raw Normal View History

2016-02-18 23:57:43 +03:00
#ifndef FAMILY_H__
#define FAMILY_H_
#include <map>
#include <string>
#include <memory>
#include "Signature.h"
#include "Identity.h"
2016-02-18 23:57:43 +03:00
namespace i2p
{
namespace data
{
class Families
{
public:
Families ();
~Families ();
void LoadCertificates ();
bool VerifyFamily (const char * family, const IdentHash& ident,
const char * signature, const char * key);
2016-02-18 23:57:43 +03:00
private:
void LoadCertificate (const std::string& filename);
private:
std::map<std::string, std::shared_ptr<i2p::crypto::Verifier> > m_SigningKeys;
};
}
}
#endif