summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNIIBE Yutaka <gniibe@fsij.org>2015-05-29 07:06:38 +0200
committerNIIBE Yutaka <gniibe@fsij.org>2015-05-29 07:06:38 +0200
commite5c69e87beebe99d362ac721ce4ea6b057a30a99 (patch)
tree447cf825188fea152df9670d5d57bd9a04dab27b
parentg10: Fix a race condition initially creating trustdb. (diff)
downloadgnupg2-e5c69e87beebe99d362ac721ce4ea6b057a30a99.tar.xz
gnupg2-e5c69e87beebe99d362ac721ce4ea6b057a30a99.zip
scd: Fix key template of ECC.
* scd/app-openpgp.c (build_ecc_privkey_template): Use correct value. -- Forthcoming OpenPGPcard specification 3.0 will address this 0x92.
-rw-r--r--scd/app-openpgp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scd/app-openpgp.c b/scd/app-openpgp.c
index 10bd64e6a..85202313b 100644
--- a/scd/app-openpgp.c
+++ b/scd/app-openpgp.c
@@ -2755,7 +2755,7 @@ build_ecc_privkey_template (app_t app, int keyno,
datalen = 0;
tp = privkey;
- tp += add_tlv (tp, 0x91, ecc_d_len); /* Tag 0x91??? */
+ tp += add_tlv (tp, 0x92, ecc_d_len);
datalen += ecc_d_len;
privkey_len = tp - privkey;