Struct openssl::x509::X509NameBuilder [−][src]
pub struct X509NameBuilder(_);
Expand description
A builder used to construct an X509Name
.
Implementations
Creates a new builder.
Add a field entry by str.
This corresponds to X509_NAME_add_entry_by_txt
.
pub fn append_entry_by_text_with_type(
&mut self,
field: &str,
value: &str,
ty: Asn1Type
) -> Result<(), ErrorStack>
pub fn append_entry_by_text_with_type(
&mut self,
field: &str,
value: &str,
ty: Asn1Type
) -> Result<(), ErrorStack>
Add a field entry by str with a specific type.
This corresponds to X509_NAME_add_entry_by_txt
.
Add a field entry by NID.
This corresponds to X509_NAME_add_entry_by_NID
.
pub fn append_entry_by_nid_with_type(
&mut self,
field: Nid,
value: &str,
ty: Asn1Type
) -> Result<(), ErrorStack>
pub fn append_entry_by_nid_with_type(
&mut self,
field: Nid,
value: &str,
ty: Asn1Type
) -> Result<(), ErrorStack>
Add a field entry by NID with a specific type.
This corresponds to X509_NAME_add_entry_by_NID
.