fn load_ca_certificates<P>(
    ssl_context: &mut SslContext,
    path: P) -> Result<(), RuntimeError>
    where P: AsRef<Path> {
    let path = path.as_ref();
    if path.is_dir() {
        load_ca_certificate_dir(ssl_context, path)
    } else {
        ssl_context.set_CA_file(path)
            .map_err(|err| RuntimeError::from(format!("{}", err)))
    }
}
/// Load CA certificates from a given path.
Load CA certificates from a given path.
Load CA certificates from a given path .
fn load_ca_certificates<P>(
    ssl_context: &mut SslContext,
    path: P) -> Result<(), RuntimeError>
    where P: AsRef<Path> {
    let path = path.as_ref();
    if path.is_dir() {
        load_ca_certificate_dir(ssl_context, path)
    } else {
        ssl_context.set_CA_file(path)
            .map_err(|err| RuntimeError::from(format!("{}", err)))
    }
}
fn load_ca_certificates < P > ( ssl_context : & mut SslContext , path : P ) -> Result < ( ) , RuntimeError > where P : AsRef < Path > { let path = path . as_ref ( ) ; if path . is_dir ( ) { load_ca_certificate_dir ( ssl_context , path ) } else { ssl_context . set_CA_file ( path ) . map_err ( | err | RuntimeError :: from ( format ! ( " " err ) ) ) } }
Load CA certificates from a given path.
Load CA certificates from a given path .
ssl_context
&mut SslContext
path
P
ssl_context
&mut SslContext
path
P