My Project 4.4.0
C++ Distributed Hash Table
Loading...
Searching...
No Matches
dht::crypto::RevocationList Class Reference

Public Member Functions

 RevocationList (const Blob &b)
 RevocationList (RevocationList &&o) noexcept
RevocationList & operator= (RevocationList &&o)
void pack (Blob &b) const
void unpack (const uint8_t *dat, size_t dat_size)
Blob getPacked () const
template<typename Packer>
void msgpack_pack (Packer &p) const
void msgpack_unpack (const msgpack::object &o)
void revoke (const Certificate &crt, time_point t=time_point::min())
bool isRevoked (const Certificate &crt) const
void sign (const PrivateKey &, const Certificate &, duration validity_period={}, uint64_t number=0)
void sign (const Identity &id, duration validity_period={}, uint64_t number=0)
bool isSignedBy (const Certificate &issuer) const
std::string toString () const
Blob getNumber () const
std::string getIssuerName () const
std::string getIssuerUID () const
time_point getUpdateTime () const
time_point getNextUpdateTime () const
gnutls_x509_crl_t get ()
gnutls_x509_crl_t getCopy () const

Detailed Description

Definition at line 227 of file crypto.h.

Constructor & Destructor Documentation

◆ RevocationList()

dht::crypto::RevocationList::RevocationList ( RevocationList && o)
inlinenoexcept

Definition at line 236 of file crypto.h.

Member Function Documentation

◆ get()

gnutls_x509_crl_t dht::crypto::RevocationList::get ( )
inline

Definition at line 304 of file crypto.h.

◆ getCopy()

gnutls_x509_crl_t dht::crypto::RevocationList::getCopy ( ) const
inline

Definition at line 305 of file crypto.h.

◆ getIssuerName()

std::string dht::crypto::RevocationList::getIssuerName ( ) const

Read CRL issuer Common Name (CN)

◆ getIssuerUID()

std::string dht::crypto::RevocationList::getIssuerUID ( ) const

Read CRL issuer User ID (UID)

◆ getNumber()

Blob dht::crypto::RevocationList::getNumber ( ) const

Read the CRL number extension field.

◆ getPacked()

Blob dht::crypto::RevocationList::getPacked ( ) const
inline

Definition at line 252 of file crypto.h.

◆ msgpack_pack()

template<typename Packer>
void dht::crypto::RevocationList::msgpack_pack ( Packer & p) const
inline

Definition at line 260 of file crypto.h.

◆ operator=()

RevocationList & dht::crypto::RevocationList::operator= ( RevocationList && o)
inline

Definition at line 243 of file crypto.h.

◆ sign() [1/2]

void dht::crypto::RevocationList::sign ( const Identity & id,
duration validity_period = {},
uint64_t number = 0 )
inline

Definition at line 281 of file crypto.h.

◆ sign() [2/2]

void dht::crypto::RevocationList::sign ( const PrivateKey & ,
const Certificate & ,
duration validity_period = {},
uint64_t number = 0 )

Sign this revocation list using provided key and certificate. Validity_period sets the duration until next update (default to no next update). If number is non-zero, it is stored verbatim (big-endian) as the CRL Number extension. Otherwise the number is initialized randomly on the first signature and incremented on subsequent ones.


The documentation for this class was generated from the following file: