summaryrefslogtreecommitdiffstats
path: root/apps/pkcs7.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>1999-04-12 17:23:57 +0000
committerBen Laurie <ben@openssl.org>1999-04-12 17:23:57 +0000
commitf73e07cf420ddad22b6148d8cbe28daf84ccae2d (patch)
tree3396fc9a31ba5a227211ea9e94600ddc4b4a58f2 /apps/pkcs7.c
parenta36a1a5146df87700eb8d3c7091cbd7106c958cf (diff)
Add type-safe STACKs and SETs.
Diffstat (limited to 'apps/pkcs7.c')
-rw-r--r--apps/pkcs7.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/pkcs7.c b/apps/pkcs7.c
index 9f96edc565..cac75f48b2 100644
--- a/apps/pkcs7.c
+++ b/apps/pkcs7.c
@@ -223,7 +223,7 @@ bad:
if (print_certs)
{
- STACK *certs=NULL;
+ STACK_OF(X509) *certs=NULL;
STACK *crls=NULL;
i=OBJ_obj2nid(p7->type);
@@ -245,9 +245,9 @@ bad:
{
X509 *x;
- for (i=0; i<sk_num(certs); i++)
+ for (i=0; i<sk_X509_num(certs); i++)
{
- x=(X509 *)sk_value(certs,i);
+ x=sk_X509_value(certs,i);
X509_NAME_oneline(X509_get_subject_name(x),
buf,256);