7#ifndef BOTAN_X509_PKIX_ENUMS_H_
8#define BOTAN_X509_PKIX_ENUMS_H_
10#include <botan/exceptn.h>
11#include <botan/types.h>
191 bool includes_any(
auto&&... bits)
const {
return (m_value & (bits | ...)) > 0; }
193 bool empty()
const {
return m_value == 0; }
195 uint32_t
value()
const {
return m_value; }
204 bool compatible_with(
const Public_Key& key)
const;
249 throw Decoding_Error(
"ReasonFlags contains undefined reason bits");
252 throw Decoding_Error(
"ReasonFlags must have at least one defined reason");
262 uint16_t
value()
const {
return m_value; }
269 return ReasonFlags(
static_cast<uint16_t
>(
static_cast<uint16_t
>(a) |
static_cast<uint16_t
>(b)));
#define BOTAN_PUBLIC_API(maj, min)
#define BOTAN_DEPRECATED(msg)
static Key_Constraints ca_constraints()
~Key_Constraints()=default
bool includes(Key_Constraints other) const
void operator|=(Key_Constraints::Bits other)
bool operator==(const Key_Constraints &) const =default
Key_Constraints(uint32_t bits)
Key_Constraints(Key_Constraints &&other)=default
bool includes(Key_Constraints::Bits other) const
Key_Constraints(const Key_Constraints &other)=default
bool includes_any(auto &&... bits) const
Key_Constraints & operator=(Key_Constraints &&other)=default
Key_Constraints & operator=(const Key_Constraints &other)=default
Key_Constraints(Key_Constraints::Bits bits)
static constexpr uint16_t DefinedReasonBits
bool includes(ReasonFlags::Bits other) const
ReasonFlags(uint16_t bits)
ReasonFlags(ReasonFlags::Bits bits)
bool operator==(const ReasonFlags &) const =default
bool includes(ReasonFlags other) const
ASN1_Type operator|(ASN1_Type x, ASN1_Type y)
@ TRUSTED_CERT_NOT_YET_VALID
@ DUPLICATE_CERT_EXTENSION
@ OCSP_RESPONSE_MISSING_KEYUSAGE
@ TRUSTED_CERT_HAS_EXPIRED
@ OCSP_ISSUER_NOT_TRUSTED
@ CRL_HAS_UNKNOWN_CRITICAL_EXTENSION
@ CA_CERT_NOT_FOR_CRL_ISSUER
@ EXTENSION_ENCODING_ERROR
@ CA_CERT_NOT_FOR_CERT_ISSUER
@ FIRST_ERROR_STATUS_TO_SKIP_REVOCATION
@ OCSP_SERVER_NOT_AVAILABLE
@ NO_REV_AVAIL_INVALID_USE
@ UNKNOWN_CRITICAL_EXTENSION
@ SIGNATURE_ALGO_BAD_PARAMS
@ V2_IDENTIFIERS_IN_V1_CERT
@ SIGNATURE_METHOD_TOO_WEAK
std::string to_string(ErrorType type)
Convert an ErrorType to string.