diff options
Diffstat (limited to 'scard-opensc.c')
-rw-r--r-- | scard-opensc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scard-opensc.c b/scard-opensc.c index 6b80d1e68..dd21de39a 100644 --- a/scard-opensc.c +++ b/scard-opensc.c | |||
@@ -173,7 +173,7 @@ sc_private_decrypt(int flen, u_char *from, u_char *to, RSA *rsa, | |||
173 | r = sc_prkey_op_init(rsa, &key_obj); | 173 | r = sc_prkey_op_init(rsa, &key_obj); |
174 | if (r) | 174 | if (r) |
175 | return -1; | 175 | return -1; |
176 | r = sc_pkcs15_decipher(p15card, key_obj, from, flen, to, flen); | 176 | r = sc_pkcs15_decipher(p15card, key_obj, 0, from, flen, to, flen); |
177 | sc_unlock(card); | 177 | sc_unlock(card); |
178 | if (r < 0) { | 178 | if (r < 0) { |
179 | error("sc_pkcs15_decipher() failed: %s", sc_strerror(r)); | 179 | error("sc_pkcs15_decipher() failed: %s", sc_strerror(r)); |