7#ifndef BOTAN_X509_PKIX_ENUMS_H_
8#define BOTAN_X509_PKIX_ENUMS_H_
10#include <botan/types.h>
110 DigitalSignature = 1 << 15,
111 NonRepudiation = 1 << 14,
112 KeyEncipherment = 1 << 13,
113 DataEncipherment = 1 << 12,
115 KeyCertSign = 1 << 10,
117 EncipherOnly = 1 << 8,
118 DecipherOnly = 1 << 7,
129 CRL_SIGN BOTAN_DEPRECATED(
"Use CrlSign") = CrlSign,
168 return (m_value & (bits | ...)) > 0;
171 bool empty()
const {
return m_value == 0; }
173 uint32_t
value()
const {
return m_value; }
182 bool compatible_with(
const Public_Key& key)
const;
static Key_Constraints ca_constraints()
bool includes(Key_Constraints other) const
bool includes_any(auto &&...bits) 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
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)
std::string to_string(ErrorType type)
Convert an ErrorType to string.
@ DUPLICATE_CERT_EXTENSION
@ OCSP_RESPONSE_MISSING_KEYUSAGE
@ 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