aboutsummaryrefslogtreecommitdiffstats
path: root/apps/x509.c
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2008-06-04 11:01:43 +0000
committerBen Laurie <ben@openssl.org>2008-06-04 11:01:43 +0000
commit5ce278a77bd7d23bcf965cfa37afb7b937c1a17d (patch)
treea69f3fe7e5a7e222cdd1e9314e671ffbcf79fc27 /apps/x509.c
parent37cf49a3df4b0094c5d335008705518e93b2dad2 (diff)
downloadopenssl-5ce278a77bd7d23bcf965cfa37afb7b937c1a17d.tar.gz
More type-checking.
Diffstat (limited to 'apps/x509.c')
-rw-r--r--apps/x509.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/x509.c b/apps/x509.c
index 1fa93aaeba..e08fdac8b9 100644
--- a/apps/x509.c
+++ b/apps/x509.c
@@ -738,13 +738,14 @@ bad:
else if ((email == i) || (ocsp_uri == i))
{
int j;
- STACK *emlst;
+ STACK_OF(STRING) *emlst;
if (email == i)
emlst = X509_get1_email(x);
else
emlst = X509_get1_ocsp(x);
- for (j = 0; j < sk_num(emlst); j++)
- BIO_printf(STDout, "%s\n", sk_value(emlst, j));
+ for (j = 0; j < sk_STRING_num(emlst); j++)
+ BIO_printf(STDout, "%s\n",
+ sk_STRING_value(emlst, j));
X509_email_free(emlst);
}
else if (aliasout == i)