|
Botan
2.13.0
Crypto and TLS for C++11
|
#include <crl_ent.h>
Public Member Functions | |
| std::vector< uint8_t > | BER_encode () const |
| CRL_Entry ()=default | |
| CRL_Entry (const X509_Certificate &cert, CRL_Code reason=UNSPECIFIED) | |
| void | decode_from (class BER_Decoder &) override |
| void | encode_into (class 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 |
|
default |
Create uninitialized CRL_Entry object
| Botan::CRL_Entry::CRL_Entry | ( | const X509_Certificate & | cert, |
| CRL_Code | reason = 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 16 of file asn1_obj.cpp.
References Botan::ASN1_Object::encode_into().
Referenced by Botan::PSSR::config_for_x509(), 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 80 of file crl_ent.cpp.
References Botan::BER_Decoder::decode(), Botan::BigInt::encode(), Botan::BER_Decoder::end_cons(), Botan::BER_Decoder::more_items(), Botan::SEQUENCE, Botan::BER_Decoder::start_cons(), 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 66 of file crl_ent.cpp.
References Botan::BigInt::decode(), Botan::DER_Encoder::encode(), Botan::DER_Encoder::end_cons(), expire_time(), extensions(), Botan::SEQUENCE, serial_number(), and Botan::DER_Encoder::start_cons().
| const X509_Time & Botan::CRL_Entry::expire_time | ( | ) | const |
Get the revocation date of the certificate associated with this entry
Definition at line 124 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 134 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 129 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 119 of file crl_ent.cpp.
Referenced by encode_into(), and Botan::operator==().
1.8.9.1