diff options
author | steve <steve> | 2006-05-07 17:08:59 +0000 |
---|---|---|
committer | steve <steve> | 2006-05-07 17:08:59 +0000 |
commit | ceda2d16225c33eb8c4df41598ebff0ffc17e53e (patch) | |
tree | e60e4b5b29e3da30283e373d613578247d6c2c87 /apps/req.c | |
parent | 48c1b47a296463eee10395399b5e050bde16bfeb (diff) | |
download | openssl-ceda2d16225c33eb8c4df41598ebff0ffc17e53e.tar.gz |
Add support for default public key digest type ctrl.
Diffstat (limited to 'apps/req.c')
-rw-r--r-- | apps/req.c | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/apps/req.c b/apps/req.c index b9a3852cf..4c95bb9e3 100644 --- a/apps/req.c +++ b/apps/req.c @@ -193,7 +193,7 @@ int MAIN(int argc, char **argv) char *p; char *subj = NULL; int multirdn = 0; - const EVP_MD *md_alg=NULL,*digest=EVP_sha1(); + const EVP_MD *md_alg=NULL,*digest=NULL; unsigned long chtype = MBSTRING_ASC; #ifndef MONOLITH char *to_free; @@ -894,16 +894,7 @@ loop: BIO_printf(bio_err,"you need to specify a private key\n"); goto end; } -#if 0 -#ifndef OPENSSL_NO_DSA - if (pkey->type == EVP_PKEY_DSA) - digest=EVP_dss1(); -#endif -#ifndef OPENSSL_NO_ECDSA - if (pkey->type == EVP_PKEY_EC) - digest=EVP_ecdsa(); -#endif -#endif + if (req == NULL) { req=X509_REQ_new(); |