diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2000-12-27 13:42:43 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2000-12-27 13:42:43 +0000 |
commit | 28ddfc61dc90ec257810ee089e2639196afa589f (patch) | |
tree | a57a7dbceb0f0ceeff6c67bbcda1dd2b90b0de50 /crypto/x509 | |
parent | 725c88879c1e76f2b7e5242a7b87df9e9cd58518 (diff) |
X509V3_add_i2d() needs to be able to allocate a
STACK_OF(X509_EXTENSION) so it should be passed
STACK_OF(X509_EXTENSION) ** in the first argument.
Modify wrappers appropriately.
Diffstat (limited to 'crypto/x509')
-rw-r--r-- | crypto/x509/x509_ext.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crypto/x509/x509_ext.c b/crypto/x509/x509_ext.c index 9b602581ef..e7fdacb5e4 100644 --- a/crypto/x509/x509_ext.c +++ b/crypto/x509/x509_ext.c @@ -104,7 +104,7 @@ void *X509_CRL_get_ext_d2i(X509_CRL *x, int nid, int *crit, int *idx) int X509_CRL_add1_ext_i2d(X509_CRL *x, int nid, void *value, int crit, unsigned long flags) { - return X509V3_add1_i2d(x->crl->extensions, nid, value, crit, flags); + return X509V3_add1_i2d(&x->crl->extensions, nid, value, crit, flags); } int X509_CRL_add_ext(X509_CRL *x, X509_EXTENSION *ex, int loc) @@ -155,7 +155,7 @@ void *X509_get_ext_d2i(X509 *x, int nid, int *crit, int *idx) int X509_add1_ext_i2d(X509 *x, int nid, void *value, int crit, unsigned long flags) { - return X509V3_add1_i2d(x->cert_info->extensions, nid, value, crit, + return X509V3_add1_i2d(&x->cert_info->extensions, nid, value, crit, flags); } @@ -203,7 +203,7 @@ void *X509_REVOKED_get_ext_d2i(X509_REVOKED *x, int nid, int *crit, int *idx) int X509_REVOKED_add1_ext_i2d(X509_REVOKED *x, int nid, void *value, int crit, unsigned long flags) { - return X509V3_add1_i2d(x->extensions, nid, value, crit, flags); + return X509V3_add1_i2d(&x->extensions, nid, value, crit, flags); } IMPLEMENT_STACK_OF(X509_EXTENSION) |