diff options
Diffstat (limited to 'scd/app-nks.c')
-rw-r--r-- | scd/app-nks.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scd/app-nks.c b/scd/app-nks.c index 1f3aad209..076b9139f 100644 --- a/scd/app-nks.c +++ b/scd/app-nks.c @@ -271,7 +271,8 @@ get_chv_status (app_t app, int sigg, int pwid) command[2] = 0x00; command[3] = pwid; - if (apdu_send_direct (app->slot, 0, command, 4, 0, &result, &resultlen)) + if (apdu_send_direct (app->slot, 0, (unsigned char *)command, + 4, 0, &result, &resultlen)) rc = -1; /* Error. */ else if (resultlen < 2) rc = -1; /* Error. */ @@ -1055,7 +1056,7 @@ do_decipher (app_t app, const char *keyidstr, Command chaining does not work. */ if (!rc) rc = iso7816_decipher (app->slot, app->app_local->nks_version > 2? 1:0, - indata, indatalen, 0x81, + indata, indatalen, 0, 0x81, outdata, outdatalen); return rc; } |