|
| Certificate (gnutls_x509_crt_t crt) |
|
| Certificate (Certificate &&o) noexcept |
|
| Certificate (const Blob &crt) |
|
| Certificate (const std::string &pem) |
|
| Certificate (const uint8_t *dat, size_t dat_size) |
|
template<typename Iterator > |
| Certificate (const Iterator &begin, const Iterator &end) |
|
template<typename Iterator > |
| Certificate (const std::vector< std::pair< Iterator, Iterator > > &certs) |
|
Certificate & | operator= (Certificate &&o) noexcept |
|
void | pack (Blob &b) const |
|
void | unpack (const uint8_t *dat, size_t dat_size) |
|
Blob | getPacked () const |
|
template<typename Iterator > |
void | unpack (const Iterator &begin, const Iterator &end) |
|
template<typename Iterator > |
void | unpack (const std::vector< std::pair< Iterator, Iterator > > &certs) |
|
template<typename Packer > |
void | msgpack_pack (Packer &p) const |
|
void | msgpack_unpack (msgpack::object o) |
|
| operator bool () const |
|
PublicKey | getPublicKey () const |
|
InfoHash | getId () const |
|
PkId | getLongId () const |
|
std::string | getName () const |
|
std::string | getUID () const |
|
std::string | getIssuerName () const |
|
std::string | getIssuerUID () const |
|
std::vector< std::pair< NameType, std::string > > | getAltNames () const |
|
std::chrono::system_clock::time_point | getActivation () const |
|
std::chrono::system_clock::time_point | getExpiration () const |
|
bool | isCA () const |
|
std::string | toString (bool chain=true) const |
|
std::string | print () const |
|
void | revoke (const PrivateKey &, const Certificate &) |
|
std::vector< std::shared_ptr< RevocationList > > | getRevocationLists () const |
|
void | addRevocationList (RevocationList &&) |
|
void | addRevocationList (std::shared_ptr< RevocationList >) |
|
gnutls_x509_crt_t | getCopy () const |
|
std::vector< gnutls_x509_crt_t > | getChain (bool copy=false) const |
|
std::pair< std::vector< gnutls_x509_crt_t >, std::vector< gnutls_x509_crl_t > > | getChainWithRevocations (bool copy=false) const |
|
Definition at line 249 of file crypto.h.
template<typename Iterator >
void dht::crypto::Certificate::unpack |
( |
const Iterator & |
begin, |
|
|
const Iterator & |
end |
|
) |
| |
|
inline |
Import certificate chain (PEM or DER). Certificates are not checked during import.
Iterator is the type of an iterator or pointer to gnutls_x509_crt_t or Blob instances to import, that should be ordered from subject to issuer.
Definition at line 309 of file crypto.h.