Botan 3.6.1
Crypto and TLS for C&
|
#include <x509_crl.h>
Public Member Functions | |
std::vector< uint8_t > | BER_encode () const |
CRL_Entry ()=default | |
CRL_Entry (const X509_Certificate &cert, CRL_Code reason=CRL_Code::Unspecified) | |
void | decode_from (BER_Decoder &) override |
void | encode_into (DER_Encoder &) const override |
const X509_Time & | expire_time () const |
const Extensions & | extensions () const |
CRL_Code | reason_code () const |
const std::vector< uint8_t > & | serial_number () const |
Friends | |
class | X509_CRL |
This class represents CRL entries
Definition at line 28 of file x509_crl.h.
|
default |
Create uninitialized CRL_Entry object
Botan::CRL_Entry::CRL_Entry | ( | const X509_Certificate & | cert, |
CRL_Code | reason = CRL_Code::Unspecified ) |
Construct an CRL entry.
cert | the certificate to revoke |
reason | the reason code to set in the entry |
Definition at line 28 of file crl_ent.cpp.
References Botan::X509_Certificate::serial_number(), and Botan::Unspecified.
|
inherited |
Return the encoding of this object. This is a convenience method when just one object needs to be serialized. Use DER_Encoder for complicated encodings.
Definition at line 19 of file asn1_obj.cpp.
References Botan::ASN1_Object::encode_into().
Referenced by Botan::PSS_Params::decode_from(), Botan::Certificate_Store_In_SQL::find_all_certs(), Botan::Certificate_Store_In_SQL::find_cert(), Botan::X509_Certificate::fingerprint(), Botan::Certificate_Store_In_SQL::insert_cert(), Botan::X509_Object::PEM_encode(), and Botan::Certificate_Store_In_SQL::revoke_cert().
|
overridevirtual |
Decode whatever this object is from from
from | the BER_Decoder that will be read from |
Implements Botan::ASN1_Object.
Definition at line 78 of file crl_ent.cpp.
References Botan::BER_Decoder::decode(), Botan::BER_Decoder::end_cons(), Botan::Extensions::get_extension_object_as(), Botan::BER_Decoder::more_items(), Botan::BigInt::serialize(), Botan::BER_Decoder::start_sequence(), and Botan::Unspecified.
|
overridevirtual |
Encode whatever this object is into to
to | the DER_Encoder that will be written to |
Implements Botan::ASN1_Object.
Definition at line 65 of file crl_ent.cpp.
References Botan::DER_Encoder::encode(), Botan::DER_Encoder::end_cons(), expire_time(), extensions(), Botan::BigInt::from_bytes(), serial_number(), and Botan::DER_Encoder::start_sequence().
const X509_Time & Botan::CRL_Entry::expire_time | ( | ) | const |
Get the revocation date of the certificate associated with this entry
Definition at line 114 of file crl_ent.cpp.
Referenced by encode_into(), and Botan::operator==().
const Extensions & Botan::CRL_Entry::extensions | ( | ) | const |
Get the extensions on this CRL entry
Definition at line 122 of file crl_ent.cpp.
Referenced by encode_into().
CRL_Code Botan::CRL_Entry::reason_code | ( | ) | const |
Get the entries reason code
Definition at line 118 of file crl_ent.cpp.
Referenced by Botan::operator==().
const std::vector< uint8_t > & Botan::CRL_Entry::serial_number | ( | ) | const |
Get the serial number of the certificate associated with this entry.
Definition at line 110 of file crl_ent.cpp.
Referenced by encode_into(), and Botan::operator==().
|
friend |
Definition at line 69 of file x509_crl.h.