summaryrefslogtreecommitdiffstats
path: root/engines/ccgost
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2012-11-18 15:21:02 +0000
committerDr. Stephen Henson <steve@openssl.org>2012-11-18 15:21:02 +0000
commite7b85bc40200961984925604ca444517359a6067 (patch)
tree4f9bea32db8dcb239ed60fd3a5b5468dfe37cd4b /engines/ccgost
parent07eaaab2f6e509cc4f6dc6fe5775410bb325c34d (diff)
PR: 2880
Submitted by: "Florian Rüchel" <florian.ruechel@ruhr-uni-bochum.de> Correctly handle local machine keys in the capi ENGINE.
Diffstat (limited to 'engines/ccgost')
-rw-r--r--engines/ccgost/gost_eng.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/engines/ccgost/gost_eng.c b/engines/ccgost/gost_eng.c
index ebf0b625b5..8f29bf6f85 100644
--- a/engines/ccgost/gost_eng.c
+++ b/engines/ccgost/gost_eng.c
@@ -78,6 +78,11 @@ static int bind_gost (ENGINE *e,const char *id)
{
int ret = 0;
if (id && strcmp(id, engine_gost_id)) return 0;
+ if (ameth_GostR3410_94)
+ {
+ printf("GOST engine already loaded\n");
+ goto end;
+ }
if (!ENGINE_set_id(e, engine_gost_id))
{