Skip to main content

name_matches

Function name_matches 

Source
pub fn name_matches(
    cert: &Certificate,
    field: NameField,
    name: &str,
) -> Result<(), Failure>
Expand description

Checks that name matches the certificate field.

ยงErrors

Failure::Mismatch, or Failure::InvalidClientIp if field is NameField::Ip and name is not an IP address.