use const_oid::{db::rfc5280::ID_CE_POLICY_CONSTRAINTS, AssociatedOid, ObjectIdentifier};
use der::Sequence;
#[derive(Clone, Debug, Eq, PartialEq, Sequence)]
#[allow(missing_docs)]
pub struct PolicyConstraints {
#[asn1(context_specific = "0", optional = "true", tag_mode = "IMPLICIT")]
pub require_explicit_policy: Option<u32>,
#[asn1(context_specific = "1", optional = "true", tag_mode = "IMPLICIT")]
pub inhibit_policy_mapping: Option<u32>,
}
impl AssociatedOid for PolicyConstraints {
const OID: ObjectIdentifier = ID_CE_POLICY_CONSTRAINTS;
}
impl_extension!(PolicyConstraints, critical = true);