Lines Matching refs:file
477 /// An identifier of the format of a certificate or key file.
909 /// Loads trusted root certificates from a file.
911 /// The file should contain a sequence of PEM-formatted CA certificates.
913 pub fn set_ca_file<P: AsRef<Path>>(&mut self, file: P) -> Result<(), ErrorStack> {
914 let file = CString::new(file.as_ref().as_os_str().to_str().unwrap()).unwrap();
918 file.as_ptr() as *const _,
965 /// Loads a leaf certificate from a file.
969 /// single file.
973 file: P,
976 let file = CString::new(file.as_ref().as_os_str().to_str().unwrap()).unwrap();
980 file.as_ptr() as *const _,
987 /// Loads a certificate chain from a file.
989 /// The file should contain a sequence of PEM-formatted certificates, the first being the leaf
995 file: P,
997 let file = CString::new(file.as_ref().as_os_str().to_str().unwrap()).unwrap();
1001 file.as_ptr() as *const _,
1028 /// Loads the private key from a file.
1032 file: P,
1035 let file = CString::new(file.as_ref().as_os_str().to_str().unwrap()).unwrap();
1039 file.as_ptr() as *const _,
3212 /// Loads the private key from a file.
3249 /// Loads a certificate chain from a file.
3251 /// The file should contain a sequence of PEM-formatted certificates, the first being the leaf