7#ifndef BOTAN_X509_PKIX_ENUMS_H_
8#define BOTAN_X509_PKIX_ENUMS_H_
10#include <botan/types.h>
112 DigitalSignature = 1 << 15,
113 NonRepudiation = 1 << 14,
114 KeyEncipherment = 1 << 13,
115 DataEncipherment = 1 << 12,
117 KeyCertSign = 1 << 10,
119 EncipherOnly = 1 << 8,
120 DecipherOnly = 1 << 7,
165 bool includes_any(
auto&&... bits)
const {
return (m_value & (bits | ...)) > 0; }
167 bool empty()
const {
return m_value == 0; }
169 uint32_t
value()
const {
return m_value; }
178 bool compatible_with(
const Public_Key& key)
const;
static Key_Constraints ca_constraints()
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)
#define BOTAN_PUBLIC_API(maj, min)
#define BOTAN_DEPRECATED(msg)
std::string to_string(ErrorType type)
Convert an ErrorType to string.
@ TRUSTED_CERT_NOT_YET_VALID
@ DUPLICATE_CERT_EXTENSION
@ OCSP_RESPONSE_MISSING_KEYUSAGE
@ TRUSTED_CERT_HAS_EXPIRED
@ OCSP_ISSUER_NOT_TRUSTED
@ CA_CERT_NOT_FOR_CRL_ISSUER
@ CA_CERT_NOT_FOR_CERT_ISSUER
@ OCSP_SERVER_NOT_AVAILABLE
@ UNKNOWN_CRITICAL_EXTENSION
@ SIGNATURE_ALGO_BAD_PARAMS
@ V2_IDENTIFIERS_IN_V1_CERT
@ SIGNATURE_METHOD_TOO_WEAK