diff options
author | ben <ben> | 2008-06-04 11:00:41 +0000 |
---|---|---|
committer | ben <ben> | 2008-06-04 11:00:41 +0000 |
commit | 10f38e3afc9aeb169c2187fcda5d94f53736a72c (patch) | |
tree | 22d02c4f8d50e55c9ac075968433c2a5a0b7f3d4 /apps/req.c | |
parent | 8e60fecb8cd4c2d2863bc3e8332f293303f7bd0a (diff) | |
download | openssl-10f38e3afc9aeb169c2187fcda5d94f53736a72c.tar.gz |
More type-checking.
Diffstat (limited to 'apps/req.c')
-rw-r--r-- | apps/req.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/req.c b/apps/req.c index 7953f9ddc..75d87808f 100644 --- a/apps/req.c +++ b/apps/req.c @@ -165,7 +165,7 @@ int MAIN(int argc, char **argv) EVP_PKEY_CTX *genctx = NULL; const char *keyalg = NULL; char *keyalgstr = NULL; - STACK *pkeyopts = NULL; + STACK_OF(STRING) *pkeyopts = NULL; EVP_PKEY *pkey=NULL; int i=0,badops=0,newreq=0,verbose=0,pkey_type=-1; long newkey = -1; @@ -306,8 +306,8 @@ int MAIN(int argc, char **argv) if (--argc < 1) goto bad; if (!pkeyopts) - pkeyopts = sk_new_null(); - if (!pkeyopts || !sk_push(pkeyopts, *(++argv))) + pkeyopts = sk_STRING_new_null(); + if (!pkeyopts || !sk_STRING_push(pkeyopts, *(++argv))) goto bad; } else if (strcmp(*argv,"-batch") == 0) @@ -667,9 +667,9 @@ bad: if (pkeyopts) { char *genopt; - for (i = 0; i < sk_num(pkeyopts); i++) + for (i = 0; i < sk_STRING_num(pkeyopts); i++) { - genopt = sk_value(pkeyopts, i); + genopt = sk_STRING_value(pkeyopts, i); if (pkey_ctrl_string(genctx, genopt) <= 0) { BIO_printf(bio_err, @@ -1083,7 +1083,7 @@ end: if (genctx) EVP_PKEY_CTX_free(genctx); if (pkeyopts) - sk_free(pkeyopts); + sk_STRING_free(pkeyopts); #ifndef OPENSSL_NO_ENGINE if (gen_eng) ENGINE_free(gen_eng); |