use core::cmp::Ordering;
use der::{asn1::SetOfVec, AnyRef, Choice, Sequence, ValueOrd};
use spki::ObjectIdentifier;
use x509_cert::crl::CertificateList;
#[derive(Clone, Debug, PartialEq, Eq, Choice)]
#[allow(clippy::large_enum_variant)]
pub enum RevocationInfoChoice<'a> {
Crl(CertificateList),
#[asn1(context_specific = "1", tag_mode = "IMPLICIT", constructed = "true")]
Other(OtherRevocationInfoFormat<'a>),
}
pub type RevocationInfoChoices<'a> = SetOfVec<RevocationInfoChoice<'a>>;
#[derive(Clone, Debug, PartialEq, Eq, Sequence)]
pub struct OtherRevocationInfoFormat<'a> {
other_rev_info_format: ObjectIdentifier,
other_rev_info: AnyRef<'a>,
}
impl ValueOrd for RevocationInfoChoice<'_> {
fn value_cmp(&self, _other: &Self) -> der::Result<Ordering> {
Ok(Ordering::Equal)
}
}