From 7ae551fd03b447e41d3a74e803a711350383ebc4 Mon Sep 17 00:00:00 2001 From: Geoff Thorpe Date: Mon, 30 Apr 2001 15:24:41 +0000 Subject: In RSA, DSA, DH, and RAND - if the "***_new()" function fails because the ENGINE code does not return a default, set an error. --- crypto/dsa/dsa_lib.c | 1 + 1 file changed, 1 insertion(+) (limited to 'crypto/dsa') 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; } -- cgit v1.2.3