adapt to new hx509_cert_get_SPKI
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@22456 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -257,12 +257,10 @@ hx509_ca_tbs_set_template(hx509_context context,
|
|||||||
tbs->notAfter = hx509_cert_get_notAfter(cert);
|
tbs->notAfter = hx509_cert_get_notAfter(cert);
|
||||||
if (flags & HX509_CA_TEMPLATE_SPKI) {
|
if (flags & HX509_CA_TEMPLATE_SPKI) {
|
||||||
free_SubjectPublicKeyInfo(&tbs->spki);
|
free_SubjectPublicKeyInfo(&tbs->spki);
|
||||||
ret = hx509_cert_get_SPKI(cert, &tbs->spki);
|
ret = hx509_cert_get_SPKI(context, cert, &tbs->spki);
|
||||||
tbs->flags.key = !ret;
|
tbs->flags.key = !ret;
|
||||||
if (ret) {
|
if (ret)
|
||||||
hx509_set_error_string(context, 0, ret, "Failed to copy SPKI");
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
if (flags & HX509_CA_TEMPLATE_KU) {
|
if (flags & HX509_CA_TEMPLATE_KU) {
|
||||||
KeyUsage ku;
|
KeyUsage ku;
|
||||||
|
Reference in New Issue
Block a user