Add language to support querying certificates to find a match. Support constructs like "1.3.6.1.5.2.3.5" IN %{certificate.eku} AND %{certificate.subject} TAILMATCH "C=SE"".
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22677 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -942,6 +942,9 @@ query(struct query_options *opt, int argc, char **argv)
|
||||
if (opt->digitalSignature_flag)
|
||||
hx509_query_match_option(q, HX509_QUERY_OPTION_KU_DIGITALSIGNATURE);
|
||||
|
||||
if (opt->expr_string)
|
||||
hx509_query_match_expr(context, q, opt->expr_string);
|
||||
|
||||
ret = hx509_certs_find(context, certs, q, &c);
|
||||
hx509_query_free(context, q);
|
||||
if (ret)
|
||||
|
Reference in New Issue
Block a user