diff options
author | NIIBE Yutaka <[email protected]> | 2023-06-27 06:43:35 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2023-06-28 05:03:45 +0000 |
commit | 25b59cf6ce86dcd50845cdd2e1cf0645531e7a46 (patch) | |
tree | 5d52b95a0c9e26855178af89fc63a8cc6e512309 | |
parent | wks: Make --add-revocs the default. (diff) | |
download | gnupg-25b59cf6ce86dcd50845cdd2e1cf0645531e7a46.tar.gz gnupg-25b59cf6ce86dcd50845cdd2e1cf0645531e7a46.zip |
scd:piv: Fix authentication with Administration Key.
* scd/app-piv.c (auth_adm_key): Fix the value of the Response Tag.
(do_setattr): Fix the comment.
--
Cherry-pick master commit of:
7cfbf0dd72d8d5c14fbf19c13722d153bd1cbd70
Reported-by: Heiko Schäfer <[email protected]>
Signed-off-by: NIIBE Yutaka <[email protected]>
-rw-r--r-- | scd/app-piv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scd/app-piv.c b/scd/app-piv.c index a51ac31ec..c8ef7b43a 100644 --- a/scd/app-piv.c +++ b/scd/app-piv.c @@ -928,7 +928,7 @@ auth_adm_key (app_t app, const unsigned char *value, size_t valuelen) tmpl[12] = 0x81; tmpl[13] = 8; gcry_create_nonce (tmpl+14, 8); - tmpl[22] = 0x80; + tmpl[22] = 0x82; tmpl[23] = 0; tmpllen = 24; xfree (outdata); @@ -1039,7 +1039,7 @@ do_setattr (app_t app, ctrl_t ctrl, const char *name, int special; /* Special mode to use for thus NAME. */ } table[] = { /* Authenticate using the PIV Card Application Administration Key - * (0x0B). Note that Yubico calls this key the "management key" + * (0x9B). Note that Yubico calls this key the "management key" * which we don't do because that term is too similar to "Cert * Management Key" (0x9D). */ { "AUTH-ADM-KEY", 0x0000, 0x0000, 1 }, |