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:
@@ -113,7 +113,7 @@ find_CMSIdentifier(hx509_context context,
|
||||
|
||||
q.match |= match;
|
||||
|
||||
ret = _hx509_certs_find(context, certs, &q, &cert);
|
||||
ret = hx509_certs_find(context, certs, &q, &cert);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
@@ -156,7 +156,7 @@ match_localkeyid(hx509_context context,
|
||||
|
||||
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 (value->private_key) {
|
||||
|
@@ -215,7 +215,7 @@ cms_create_sd(struct cms_create_sd_options *opt, int argc, char **argv)
|
||||
q.friendlyname = opt->signer_string;
|
||||
}
|
||||
|
||||
ret = _hx509_certs_find(context, store, &q, &cert);
|
||||
ret = hx509_certs_find(context, store, &q, &cert);
|
||||
if (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);
|
||||
q.match |= HX509_QUERY_KU_ENCIPHERMENT;
|
||||
ret = _hx509_certs_find(context, certs, &q, &cert);
|
||||
ret = hx509_certs_find(context, certs, &q, &cert);
|
||||
if (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;
|
||||
|
||||
|
||||
ret = _hx509_certs_find(context, certs, &q, &c);
|
||||
ret = hx509_certs_find(context, certs, &q, &c);
|
||||
if (ret)
|
||||
warnx("_hx509_certs_find: %d", ret);
|
||||
warnx("hx509_certs_find: %d", ret);
|
||||
else
|
||||
printf("match found\n");
|
||||
|
||||
|
@@ -104,7 +104,7 @@ verify_crl(hx509_context context,
|
||||
q.match = HX509_QUERY_MATCH_SUBJECT_NAME;
|
||||
q.subject_name = &crl->tbsCertList.issuer;
|
||||
|
||||
ret = _hx509_certs_find(context, certs, &q, &signer);
|
||||
ret = hx509_certs_find(context, certs, &q, &signer);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
Reference in New Issue
Block a user