Lines Matching defs:cn
56 free (l->rule.cn);
80 e->rule.cn = string_alloc (line, NULL);
167 if (!hash_add (cns->hash_table, e->rule.cn, &e->rule, false))
169 msg (D_PF_INFO, "PF: %s: duplicate common name in [clients] section: '%s'", prefix, e->rule.cn);
353 const char *cn,
361 cn, drop_accept (allow),
362 rule->cn, drop_accept (!rule->exclude));
368 cn, drop_accept (allow));
408 lookup_cn_rule (struct hash *h, const char *cn, const uint32_t cn_hash)
410 struct hash_element *he = hash_lookup_fast (h, hash_bucket (h, cn_hash), cn, cn_hash);
422 const char *cn;
424 if (tls_common_name_hash (tm, &cn, &cn_hash))
426 const struct pf_cn *rule = lookup_cn_rule (pfs->cns.hash_table, cn, cn_hash);
431 pf_cn_test_print ("PF_CN_MATCH", type, prefix, cn, !rule->exclude, rule);
442 pf_cn_test_print ("PF_CN_DEFAULT", type, prefix, cn, pfs->cns.default_allow, NULL);
657 e->cn,
667 struct pf_cn *e = lookup_cn_rule (s->hash_table, ce->rule.cn, cn_hash_function (ce->rule.cn, 0));
671 e->cn,
676 msg (lev, " %s LOOKUP FAILED", ce->rule.cn);