Botan 3.6.1
Crypto and TLS for C&
Botan::Cert_Extension::CRL_ReasonCode Class Referencefinal

#include <x509_ext.h>

Inheritance diagram for Botan::Cert_Extension::CRL_ReasonCode:
Botan::Certificate_Extension

Public Member Functions

std::unique_ptr< Certificate_Extensioncopy () const override
 
 CRL_ReasonCode (CRL_Code r=CRL_Code::Unspecified)
 
CRL_Code get_reason () const
 
OID oid_of () const override
 
virtual void validate (const X509_Certificate &subject, const X509_Certificate &issuer, const std::vector< X509_Certificate > &cert_path, std::vector< std::set< Certificate_Status_Code > > &cert_status, size_t pos)
 

Static Public Member Functions

static OID static_oid ()
 

Detailed Description

CRL Entry Reason Code Extension

Definition at line 368 of file x509_ext.h.

Constructor & Destructor Documentation

◆ CRL_ReasonCode()

Botan::Cert_Extension::CRL_ReasonCode::CRL_ReasonCode ( CRL_Code r = CRL_Code::Unspecified)
inlineexplicit

Definition at line 374 of file x509_ext.h.

374: m_reason(r) {}

Member Function Documentation

◆ copy()

std::unique_ptr< Certificate_Extension > Botan::Cert_Extension::CRL_ReasonCode::copy ( ) const
inlineoverridevirtual

Make a copy of this extension

Returns
copy of this

Implements Botan::Certificate_Extension.

Definition at line 370 of file x509_ext.h.

370 {
371 return std::make_unique<CRL_ReasonCode>(m_reason);
372 }

◆ get_reason()

CRL_Code Botan::Cert_Extension::CRL_ReasonCode::get_reason ( ) const
inline

Definition at line 376 of file x509_ext.h.

376{ return m_reason; }

◆ oid_of()

OID Botan::Cert_Extension::CRL_ReasonCode::oid_of ( ) const
inlineoverridevirtual
Returns
OID representing this extension

Implements Botan::Certificate_Extension.

Definition at line 380 of file x509_ext.h.

380{ return static_oid(); }

◆ static_oid()

static OID Botan::Cert_Extension::CRL_ReasonCode::static_oid ( )
inlinestatic

Definition at line 378 of file x509_ext.h.

378{ return OID("2.5.29.21"); }

◆ validate()

void Botan::Certificate_Extension::validate ( const X509_Certificate & subject,
const X509_Certificate & issuer,
const std::vector< X509_Certificate > & cert_path,
std::vector< std::set< Certificate_Status_Code > > & cert_status,
size_t pos )
virtualinherited

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