fn try_from(x509_stack: &StackRef<X509>) -> Result<Self, Self::Error> {
        let mut chain = Vec::new();
        for x509 in x509_stack.iter().rev() {
            let cert = TlsPublicKeyCert::new_from_x509(x509.to_owned()).map_err(|e| {
                CspCertificateChainCreationError::CertificateMalformed {
                    internal_error: e.internal_error,
                }
            })?;
            chain.push(cert);
        }
        Self::new(chain)
    }
/// Perform the conversion assuming that the stack's iterator first returns
/// the leaf certificate of the chain that is represented by the stack.
Perform the conversion assuming that the stack's iterator first returns
the leaf certificate of the chain that is represented by the stack.
Perform the conversion assuming that the stack ' s iterator first returns the leaf certificate of the chain that is represented by the stack .
fn try_from(x509_stack: &StackRef<X509>) -> Result<Self, Self::Error> {
        let mut chain = Vec::new();
        for x509 in x509_stack.iter().rev() {
            let cert = TlsPublicKeyCert::new_from_x509(x509.to_owned()).map_err(|e| {
                CspCertificateChainCreationError::CertificateMalformed {
                    internal_error: e.internal_error,
                }
            })?;
            chain.push(cert);
        }
        Self::new(chain)
    }
fn try_from ( x509_stack : & StackRef < X509 > ) -> Result < Self , Self :: Error > { let mut chain = Vec :: new ( ) ; for x509 in x509_stack . iter ( ) . rev ( ) { let cert = TlsPublicKeyCert :: new_from_x509 ( x509 . to_owned ( ) ) . map_err ( | e | { CspCertificateChainCreationError :: CertificateMalformed { internal_error : e . internal_error , } } ) ? ; chain . push ( cert ) ; } Self :: new ( chain ) }
Perform the conversion assuming that the stack's iterator first returns
the leaf certificate of the chain that is represented by the stack.
Perform the conversion assuming that the stack ' s iterator first returns the leaf certificate of the chain that is represented by the stack .
x509_stack
&StackRef<X509>
x509_stack
&StackRef<X509>