Lines Matching refs:GeneralName
430 pub fn subject_alt_names(&self) -> Option<Stack<GeneralName>> {
458 pub fn issuer_alt_names(&self) -> Option<Stack<GeneralName>> {
517 pub fn authority_issuer(&self) -> Option<&StackRef<GeneralName>> {
1729 // SAFETY: CertificateIssuer is defined to be a stack of GeneralName in the RFC
1741 // SAFETY: CertificateIssuer is defined to be a stack of GeneralName in the RFC
1746 type Output = Stack<GeneralName>;
1985 pub struct GeneralName;
1986 /// Reference to `GeneralName`.
1990 impl GeneralName {
1995 ) -> Result<GeneralName, ErrorStack> {
1997 let gn = GeneralName::from_ptr(cvt_p(ffi::GENERAL_NAME_new())?);
2014 pub(crate) fn new_email(email: &[u8]) -> Result<GeneralName, ErrorStack> {
2015 unsafe { GeneralName::new(ffi::GEN_EMAIL, Asn1Type::IA5STRING, email) }
2018 pub(crate) fn new_dns(dns: &[u8]) -> Result<GeneralName, ErrorStack> {
2019 unsafe { GeneralName::new(ffi::GEN_DNS, Asn1Type::IA5STRING, dns) }
2022 pub(crate) fn new_uri(uri: &[u8]) -> Result<GeneralName, ErrorStack> {
2023 unsafe { GeneralName::new(ffi::GEN_URI, Asn1Type::IA5STRING, uri) }
2026 pub(crate) fn new_ip(ip: IpAddr) -> Result<GeneralName, ErrorStack> {
2029 GeneralName::new(ffi::GEN_IPADD, Asn1Type::OCTET_STRING, &addr.octets())
2032 GeneralName::new(ffi::GEN_IPADD, Asn1Type::OCTET_STRING, &addr.octets())
2037 pub(crate) fn new_rid(oid: Asn1Object) -> Result<GeneralName, ErrorStack> {
2054 Ok(GeneralName::from_ptr(gn))
2061 ) -> Result<GeneralName, ErrorStack> {
2085 Ok(GeneralName::from_ptr(gn))
2113 /// Returns the contents of this `GeneralName` if it is an `rfc822Name`.
2118 /// Returns the contents of this `GeneralName` if it is a `directoryName`.
2134 /// Returns the contents of this `GeneralName` if it is a `dNSName`.
2139 /// Returns the contents of this `GeneralName` if it is an `uniformResourceIdentifier`.
2144 /// Returns the contents of this `GeneralName` if it is an `iPAddress`.
2185 impl Stackable for GeneralName {
2218 pub fn fullname(&self) -> Option<&StackRef<GeneralName>> {