Fix a bug in the modified purpose code: it wasn't updated to use the

new purpose getting function.

Update the ca-cert.pem and pca-cert.pem "CA" certificates so they
really are CA certificate: that is they have the appropriate extensions.
This commit is contained in:
Dr. Stephen Henson
1999-12-03 00:53:48 +00:00
parent dd4134101f
commit 6ea5314007
3 changed files with 32 additions and 28 deletions

View File

@@ -107,7 +107,7 @@ int X509_check_purpose(X509 *x, int id, int ca)
if(id == -1) return 1;
idx = X509_PURPOSE_get_by_id(id);
if(idx == -1) return -1;
pt = sk_X509_PURPOSE_value(xptable, idx);
pt = X509_PURPOSE_iget(idx);
return pt->check_purpose(pt, x, ca);
}