Lines Matching defs:chain
307 /// Disables automatic chain building when verifying a peer's certificate.
309 /// TLS peers are responsible for sending the entire certificate chain from the leaf to a
310 /// trusted root, but some will incorrectly not do so. OpenSSL will try to build the chain
747 /// chain. It should return a boolean indicating if verification succeeded.
762 /// has its own certificate chain and configuration.
792 /// If the peer's certificate chain is longer than this value, verification will fail.
968 /// of the certificate chain, or `set_certificate_chain_file` to load the entire chain from a
987 /// Loads a certificate chain from a file.
990 /// certificate, and the remainder forming the chain of certificates up to and including the
1009 /// Use `add_extra_chain_cert` to add the remainder of the certificate chain.
1015 /// Appends a certificate to the certificate chain.
1017 /// This chain should contain all certificates necessary to go from the certificate specified by
1829 /// Returns a shared reference to the stack of certificates making up the chain from the leaf.
1833 let mut chain = ptr::null_mut();
1834 ffi::SSL_CTX_get_extra_chain_certs(self.as_ptr(), &mut chain);
1835 StackRef::from_const_ptr_opt(chain).expect("extra chain certs must not be null")
2517 /// Returns the certificate chain of the peer, if present.
2519 /// On the client side, the chain includes the leaf certificate, but on the server side it does
2529 /// Returns the verified certificate chain of the peer, including the leaf certificate.
2532 /// [`X509VerifyResult::OK`]), this chain may be incomplete or invalid.
2650 let chain = ffi::SSL_get_srtp_profiles(self.as_ptr());
2652 StackRef::from_const_ptr_opt(chain)
3195 pub fn add_chain_cert(&mut self, chain: X509) -> Result<(), ErrorStack> {
3197 cvt(ffi::SSL_add0_chain_cert(self.as_ptr(), chain.as_ptr()) as c_int).map(|_| ())?;
3198 mem::forget(chain);
3249 /// Loads a certificate chain from a file.
3252 /// certificate, and the remainder forming the chain of certificates up to and including the