Crate security[][src]

Structs

CNChecker
Fetcher
SecurityConfig
SecurityManager

Functions

check_common_name

Check peer CN with cert-allowed-cn field. Return true when the match is successful (support wildcard pattern). Skip the check when the secure channel is not used.

check_key_file

Checks and opens key file. Returns Ok(None) if the path is empty.

load_key

Loads key file content. Returns Ok(vec![]) if the path is empty.

match_peer_names

Check peer CN with a set of allowed CN.

Type Definitions

CertResult