summaryrefslogtreecommitdiff
path: root/scard.c
diff options
context:
space:
mode:
Diffstat (limited to 'scard.c')
-rw-r--r--scard.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/scard.c b/scard.c
index 19d0e2a4c..e8319314c 100644
--- a/scard.c
+++ b/scard.c
@@ -24,7 +24,7 @@
24 24
25#include "includes.h" 25#include "includes.h"
26#ifdef SMARTCARD 26#ifdef SMARTCARD
27RCSID("$OpenBSD: scard.c,v 1.16 2001/12/19 07:18:56 deraadt Exp $"); 27RCSID("$OpenBSD: scard.c,v 1.17 2001/12/27 18:22:16 markus Exp $");
28 28
29#include <openssl/engine.h> 29#include <openssl/engine.h>
30#include <sectok.h> 30#include <sectok.h>
@@ -320,7 +320,8 @@ sc_get_engine(void)
320 smart_rsa.rsa_sign = def->rsa_sign; 320 smart_rsa.rsa_sign = def->rsa_sign;
321 smart_rsa.rsa_verify = def->rsa_verify; 321 smart_rsa.rsa_verify = def->rsa_verify;
322 322
323 smart_engine = ENGINE_new(); 323 if ((smart_engine = ENGINE_new()) == NULL)
324 fatal("ENGINE_new failed");
324 325
325 ENGINE_set_id(smart_engine, "sectok"); 326 ENGINE_set_id(smart_engine, "sectok");
326 ENGINE_set_name(smart_engine, "libsectok"); 327 ENGINE_set_name(smart_engine, "libsectok");