summaryrefslogtreecommitdiffstats
path: root/crypto/x509v3/v3_purp.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>1999-12-03 00:53:48 +0000
committerDr. Stephen Henson <steve@openssl.org>1999-12-03 00:53:48 +0000
commit6ea531400763750835be7e949dac9d5b24b9e0a6 (patch)
tree7d98357fb5d9668f335b1ceba113620171896d2c /crypto/x509v3/v3_purp.c
parentdd4134101fb41261b20fe47fdf9068c84e923102 (diff)
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.
Diffstat (limited to 'crypto/x509v3/v3_purp.c')
-rw-r--r--crypto/x509v3/v3_purp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/x509v3/v3_purp.c b/crypto/x509v3/v3_purp.c
index 5e7b4c3ab9..c5fca40c4c 100644
--- a/crypto/x509v3/v3_purp.c
+++ b/crypto/x509v3/v3_purp.c
@@ -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);
}