# Function cargo::sources::git::known_hosts::certificate_check

source ·

    pub fn certificate_check(
        gctx: &GlobalContext,
        cert: &Cert<'_>,
        host: &str,
        port: Option<u16>,
        config_known_hosts: Option<&Vec<Value<String>>>,
        diagnostic_home_config: &str,
    ) -> CargoResult<CertificateCheckStatus>

Expand description

The git2 callback used to validate a certificate (only ssh known hosts are validated).