summaryrefslogtreecommitdiffstats
path: root/crypto/dsa
diff options
context:
space:
mode:
authorGeoff Thorpe <geoff@openssl.org>2001-04-30 15:24:41 +0000
committerGeoff Thorpe <geoff@openssl.org>2001-04-30 15:24:41 +0000
commit7ae551fd03b447e41d3a74e803a711350383ebc4 (patch)
treef0052965089d923ade8bb8bd45fe8afd28d5b466 /crypto/dsa
parentc2e45f6ddf9219735e85d9b658a94e42c37ec0a2 (diff)
In RSA, DSA, DH, and RAND - if the "***_new()" function fails because the
ENGINE code does not return a default, set an error.
Diffstat (limited to 'crypto/dsa')
-rw-r--r--crypto/dsa/dsa_lib.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/dsa/dsa_lib.c b/crypto/dsa/dsa_lib.c
index 2abdd08c90..1b33705f46 100644
--- a/crypto/dsa/dsa_lib.c
+++ b/crypto/dsa/dsa_lib.c
@@ -152,6 +152,7 @@ DSA *DSA_new_method(ENGINE *engine)
{
if((ret->engine=ENGINE_get_default_DSA()) == NULL)
{
+ DSAerr(DSA_F_DSA_NEW,ERR_LIB_ENGINE);
OPENSSL_free(ret);
return NULL;
}