mirror of https://github.com/breard-r/acmed.git
Rodolphe Breard
4 years ago
9 changed files with 151 additions and 7 deletions
-
6CHANGELOG.md
-
20acme_common/src/crypto.rs
-
13acme_common/src/crypto/openssl_certificate.rs
-
24acme_common/src/crypto/openssl_subject_attribute.rs
-
1acmed/src/acme_proto.rs
-
3acmed/src/certificate.rs
-
52acmed/src/config.rs
-
1acmed/src/main_event_loop.rs
-
38man/en/acmed.toml.5
@ -0,0 +1,24 @@ |
|||
use openssl::nid::Nid;
|
|||
|
|||
pub type SubjectAttribute = super::BaseSubjectAttribute;
|
|||
|
|||
impl SubjectAttribute {
|
|||
pub fn get_nid(&self) -> Nid {
|
|||
match self {
|
|||
SubjectAttribute::CountryName => Nid::COUNTRYNAME,
|
|||
SubjectAttribute::LocalityName => Nid::LOCALITYNAME,
|
|||
SubjectAttribute::StateOrProvinceName => Nid::STATEORPROVINCENAME,
|
|||
SubjectAttribute::StreetAddress => Nid::STREETADDRESS,
|
|||
SubjectAttribute::OrganizationName => Nid::ORGANIZATIONNAME,
|
|||
SubjectAttribute::OrganizationalUnitName => Nid::ORGANIZATIONALUNITNAME,
|
|||
SubjectAttribute::Name => Nid::NAME,
|
|||
SubjectAttribute::GivenName => Nid::GIVENNAME,
|
|||
SubjectAttribute::Initials => Nid::INITIALS,
|
|||
SubjectAttribute::Title => Nid::TITLE,
|
|||
SubjectAttribute::Surname => Nid::SURNAME,
|
|||
SubjectAttribute::Pseudonym => Nid::PSEUDONYM,
|
|||
SubjectAttribute::GenerationQualifier => Nid::GENERATIONQUALIFIER,
|
|||
SubjectAttribute::FriendlyName => Nid::FRIENDLYNAME,
|
|||
}
|
|||
}
|
|||
}
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue