pub fn new_with_extras(
        chain: Vec<key::Certificate>,
        priv_key: &key::PrivateKey,
        ocsp: Vec<u8>,
        scts: Vec<u8>,
    ) -> Result<AlwaysResolvesChain, Error> {
        let mut r = AlwaysResolvesChain::new(chain, priv_key)?;

        {
            let cert = Arc::make_mut(&mut r.0);
            if !ocsp.is_empty() {
                cert.ocsp = Some(ocsp);
            }
            if !scts.is_empty() {
                cert.sct_list = Some(scts);
            }
        }

        Ok(r)
    }
/// Creates an `AlwaysResolvesChain`, auto-detecting the underlying private
/// key type and encoding.
///
/// If non-empty, the given OCSP response and SCTs are attached.
Creates an `AlwaysResolvesChain`, auto-detecting the underlying private
key type and encoding.

If non-empty, the given OCSP response and SCTs are attached.
Creates an ` AlwaysResolvesChain ` auto - detecting the underlying private key type and encoding . If non - empty the given OCSP response and SCTs are attached .
pub fn new_with_extras(
        chain: Vec<key::Certificate>,
        priv_key: &key::PrivateKey,
        ocsp: Vec<u8>,
        scts: Vec<u8>,
    ) -> Result<AlwaysResolvesChain, Error> {
        let mut r = AlwaysResolvesChain::new(chain, priv_key)?;
        {
            let cert = Arc::make_mut(&mut r.0);
            if !ocsp.is_empty() {
                cert.ocsp = Some(ocsp);
            }
            if !scts.is_empty() {
                cert.sct_list = Some(scts);
            }
        }
        Ok(r)
    }
pub fn new_with_extras ( chain : Vec < key :: Certificate > , priv_key : & key :: PrivateKey , ocsp : Vec < u8 > , scts : Vec < u8 > , ) -> Result < AlwaysResolvesChain , Error > { let mut r = AlwaysResolvesChain :: new ( chain , priv_key ) ? ; { let cert = Arc :: make_mut ( & mut r . 0 ) ; if ! ocsp . is_empty ( ) { cert . ocsp = Some ( ocsp ) ; } if ! scts . is_empty ( ) { cert . sct_list = Some ( scts ) ; } } Ok ( r ) }
Creates an `AlwaysResolvesChain`, auto-detecting the underlying private
key type and encoding.
Creates an ` AlwaysResolvesChain ` auto - detecting the underlying private key type and encoding .
chain
Vec<key::Certificate>
priv_key
&key::PrivateKey
ocsp
Vec<u8>
scts
Vec<u8>
chain
Vec<key::Certificate>
priv_key
&key::PrivateKey
ocsp
Vec<u8>
scts
Vec<u8>