mirror of https://github.com/breard-r/acmed.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
1006 B
25 lines
1006 B
use openssl::nid::Nid;
|
|
|
|
pub type SubjectAttribute = super::BaseSubjectAttribute;
|
|
|
|
impl SubjectAttribute {
|
|
pub fn get_nid(&self) -> Nid {
|
|
match self {
|
|
SubjectAttribute::CountryName => Nid::COUNTRYNAME,
|
|
SubjectAttribute::GenerationQualifier => Nid::GENERATIONQUALIFIER,
|
|
SubjectAttribute::GivenName => Nid::GIVENNAME,
|
|
SubjectAttribute::Initials => Nid::INITIALS,
|
|
SubjectAttribute::LocalityName => Nid::LOCALITYNAME,
|
|
SubjectAttribute::Name => Nid::NAME,
|
|
SubjectAttribute::OrganizationName => Nid::ORGANIZATIONNAME,
|
|
SubjectAttribute::OrganizationalUnitName => Nid::ORGANIZATIONALUNITNAME,
|
|
SubjectAttribute::Pkcs9EmailAddress => Nid::PKCS9_EMAILADDRESS,
|
|
SubjectAttribute::PostalAddress => Nid::POSTALADDRESS,
|
|
SubjectAttribute::PostalCode => Nid::POSTALCODE,
|
|
SubjectAttribute::StateOrProvinceName => Nid::STATEORPROVINCENAME,
|
|
SubjectAttribute::Street => Nid::STREETADDRESS,
|
|
SubjectAttribute::Surname => Nid::SURNAME,
|
|
SubjectAttribute::Title => Nid::TITLE,
|
|
}
|
|
}
|
|
}
|