diff options
author | NIIBE Yutaka <[email protected]> | 2022-04-22 02:50:19 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2022-04-22 02:50:19 +0000 |
commit | e8fb8e2b3e66d5ea8a3dc90afdc14611abf2c3da (patch) | |
tree | 792a80b0405db963a76a8befcd6c7440e5020fcd /scd/app-openpgp.c | |
parent | Post release updates (diff) | |
download | gnupg-e8fb8e2b3e66d5ea8a3dc90afdc14611abf2c3da.tar.gz gnupg-e8fb8e2b3e66d5ea8a3dc90afdc14611abf2c3da.zip |
scd: Don't inhibit SSH authentication for larger data if it can.
* scd/app-openpgp.c (do_auth): Use command chaining if available.
--
GnuPG-bug-id: 5935
Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'scd/app-openpgp.c')
-rw-r--r-- | scd/app-openpgp.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c index 05e1f3977..439052f8c 100644 --- a/scd/app-openpgp.c +++ b/scd/app-openpgp.c @@ -5490,6 +5490,11 @@ do_auth (app_t app, ctrl_t ctrl, const char *keyidstr, exmode = 1; /* Use extended length. */ le_value = app->app_local->keyattr[2].rsa.n_bits / 8; } + else if (app->app_local->cardcap.cmd_chaining && indatalen > 254) + { + exmode = -254; /* Command chaining with max. 254 bytes. */ + le_value = 0; + } else if (indatalen > 255) { if (!app->app_local->cardcap.ext_lc_le) |