diff options
Diffstat (limited to 'scard.c')
-rw-r--r-- | scard.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -24,7 +24,7 @@ | |||
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | #ifdef SMARTCARD | 26 | #ifdef SMARTCARD |
27 | RCSID("$OpenBSD: scard.c,v 1.16 2001/12/19 07:18:56 deraadt Exp $"); | 27 | RCSID("$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"); |