summaryrefslogtreecommitdiff
path: root/scard-opensc.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2002-04-23 22:48:46 +1000
committerDamien Miller <djm@mindrot.org>2002-04-23 22:48:46 +1000
commitf6195f2be82cae07660db8f7c3039567f37ffa74 (patch)
tree5acf61fca1ea4bc07f5aa180feb78a0724305116 /scard-opensc.c
parent654a4ef9699c7e396626abd23d725e8534f953c1 (diff)
downloadopenssh-git-f6195f2be82cae07660db8f7c3039567f37ffa74.tar.gz
- (djm) Applied OpenSC smartcard updates from Markus &
Antti Tapaninen <aet@cc.hut.fi>
Diffstat (limited to 'scard-opensc.c')
-rw-r--r--scard-opensc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scard-opensc.c b/scard-opensc.c
index 6b80d1e6..dd21de39 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,
r = sc_prkey_op_init(rsa, &key_obj);
if (r)
return -1;
- r = sc_pkcs15_decipher(p15card, key_obj, from, flen, to, flen);
+ r = sc_pkcs15_decipher(p15card, key_obj, 0, from, flen, to, flen);
sc_unlock(card);
if (r < 0) {
error("sc_pkcs15_decipher() failed: %s", sc_strerror(r));