Function security::check_common_name [−][src]
pub(crate) fn check_common_name(
cert_allowed_cn: &HashSet<String>,
ctx: &RpcContext<'_>
) -> Result<(), String>
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.