Enum openssl::x509::extension::AltNameOption [] [src]

pub enum AltNameOption {
    Other,
    Email,
    DNS,
    Directory,
    URI,
    IPAddress,
    RegisteredID,
}

Variants

Other

The value is specified as OID;content. See man ASN1_generate_nconf for more information on the content syntax.

use openssl::x509::extension::Extension::*;
use openssl::x509::extension::AltNameOption::Other as OtherName;

generator.add_extension(SubjectAltName(vec![(OtherName,"2.999.3;ASN1:UTF8:some other name".to_owned())]));
EmailDNSDirectoryURIIPAddressRegisteredID

Trait Implementations

impl Copy for AltNameOption
[src]

impl Clone for AltNameOption
[src]

fn clone(&self) -> AltNameOption

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)
1.0.0

Performs copy-assignment from source. Read more

impl Display for AltNameOption
[src]

fn fmt(&self, f: &mut Formatter) -> Result<()Error>

Formats the value using the given formatter.