diff options
Diffstat (limited to 'scard.c')
-rw-r--r-- | scard.c | 10 |
1 files changed, 5 insertions, 5 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: scard.c,v 1.33 2006/07/25 02:01:34 stevesk Exp $ */ | 1 | /* $OpenBSD: scard.c,v 1.34 2006/08/01 23:36:12 stevesk Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2001 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2001 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -127,7 +127,7 @@ sc_init(void) | |||
127 | if (status == SCARD_ERROR_NOCARD) { | 127 | if (status == SCARD_ERROR_NOCARD) { |
128 | return SCARD_ERROR_NOCARD; | 128 | return SCARD_ERROR_NOCARD; |
129 | } | 129 | } |
130 | if (status < 0 ) { | 130 | if (status < 0) { |
131 | error("sc_open failed"); | 131 | error("sc_open failed"); |
132 | return status; | 132 | return status; |
133 | } | 133 | } |
@@ -217,7 +217,7 @@ sc_private_decrypt(int flen, u_char *from, u_char *to, RSA *rsa, | |||
217 | olen = len = sw = 0; | 217 | olen = len = sw = 0; |
218 | if (sc_fd < 0) { | 218 | if (sc_fd < 0) { |
219 | status = sc_init(); | 219 | status = sc_init(); |
220 | if (status < 0 ) | 220 | if (status < 0) |
221 | goto err; | 221 | goto err; |
222 | } | 222 | } |
223 | if (padding != RSA_PKCS1_PADDING) | 223 | if (padding != RSA_PKCS1_PADDING) |
@@ -257,7 +257,7 @@ sc_private_encrypt(int flen, u_char *from, u_char *to, RSA *rsa, | |||
257 | len = sw = 0; | 257 | len = sw = 0; |
258 | if (sc_fd < 0) { | 258 | if (sc_fd < 0) { |
259 | status = sc_init(); | 259 | status = sc_init(); |
260 | if (status < 0 ) | 260 | if (status < 0) |
261 | goto err; | 261 | goto err; |
262 | } | 262 | } |
263 | if (padding != RSA_PKCS1_PADDING) | 263 | if (padding != RSA_PKCS1_PADDING) |
@@ -380,7 +380,7 @@ sc_get_keys(const char *id, const char *pin) | |||
380 | key_free(k); | 380 | key_free(k); |
381 | return NULL; | 381 | return NULL; |
382 | } | 382 | } |
383 | if (status < 0 ) { | 383 | if (status < 0) { |
384 | error("sc_read_pubkey failed"); | 384 | error("sc_read_pubkey failed"); |
385 | key_free(k); | 385 | key_free(k); |
386 | return NULL; | 386 | return NULL; |