hx509_certs_find is now exposed.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@16811 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2006-03-26 23:49:04 +00:00
parent a27d1186bf
commit 099a14e094
4 changed files with 7 additions and 7 deletions

View File

@@ -113,7 +113,7 @@ find_CMSIdentifier(hx509_context context,
q.match |= match; q.match |= match;
ret = _hx509_certs_find(context, certs, &q, &cert); ret = hx509_certs_find(context, certs, &q, &cert);
if (ret) if (ret)
return ret; return ret;

View File

@@ -156,7 +156,7 @@ match_localkeyid(hx509_context context,
q.local_key_id = &value->localKeyId; q.local_key_id = &value->localKeyId;
ret = _hx509_certs_find(context, certs, &q, &cert); ret = hx509_certs_find(context, certs, &q, &cert);
if (ret == 0) { if (ret == 0) {
if (value->private_key) { if (value->private_key) {

View File

@@ -215,7 +215,7 @@ cms_create_sd(struct cms_create_sd_options *opt, int argc, char **argv)
q.friendlyname = opt->signer_string; q.friendlyname = opt->signer_string;
} }
ret = _hx509_certs_find(context, store, &q, &cert); ret = hx509_certs_find(context, store, &q, &cert);
if (ret) if (ret)
errx(1, "hx509_certs_find: %d", ret); errx(1, "hx509_certs_find: %d", ret);
@@ -371,7 +371,7 @@ cms_create_enveloped(struct cms_envelope_options *opt, int argc, char **argv)
_hx509_query_clear(&q); _hx509_query_clear(&q);
q.match |= HX509_QUERY_KU_ENCIPHERMENT; q.match |= HX509_QUERY_KU_ENCIPHERMENT;
ret = _hx509_certs_find(context, certs, &q, &cert); ret = hx509_certs_find(context, certs, &q, &cert);
if (ret) if (ret)
errx(1, "hx509_certs_find: %d", ret); errx(1, "hx509_certs_find: %d", ret);
@@ -661,9 +661,9 @@ query(struct query_options *opt, int argc, char **argv)
q.match |= HX509_QUERY_PRIVATE_KEY; q.match |= HX509_QUERY_PRIVATE_KEY;
ret = _hx509_certs_find(context, certs, &q, &c); ret = hx509_certs_find(context, certs, &q, &c);
if (ret) if (ret)
warnx("_hx509_certs_find: %d", ret); warnx("hx509_certs_find: %d", ret);
else else
printf("match found\n"); printf("match found\n");

View File

@@ -104,7 +104,7 @@ verify_crl(hx509_context context,
q.match = HX509_QUERY_MATCH_SUBJECT_NAME; q.match = HX509_QUERY_MATCH_SUBJECT_NAME;
q.subject_name = &crl->tbsCertList.issuer; q.subject_name = &crl->tbsCertList.issuer;
ret = _hx509_certs_find(context, certs, &q, &signer); ret = hx509_certs_find(context, certs, &q, &signer);
if (ret) if (ret)
return ret; return ret;