summaryrefslogtreecommitdiffstats
path: root/scd/app-p15.c
diff options
context:
space:
mode:
authorWerner Koch <wk@gnupg.org>2023-12-20 16:52:47 +0100
committerWerner Koch <wk@gnupg.org>2023-12-20 16:52:47 +0100
commitf2904737e5594676fdc5f1cadf3cc52621bc901a (patch)
tree2b705a86f07258437a1d6da2047c38574ec82afe /scd/app-p15.c
parentscd:p15: Add support for D-Trust Card 4.1/4.4 (diff)
downloadgnupg2-f2904737e5594676fdc5f1cadf3cc52621bc901a.tar.xz
gnupg2-f2904737e5594676fdc5f1cadf3cc52621bc901a.zip
scd:p15: Add a diagnostic for unsupported DTRUST4 features.
* scd/app-p15.c (do_sign): Add a diagnostic.
Diffstat (limited to 'scd/app-p15.c')
-rw-r--r--scd/app-p15.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/scd/app-p15.c b/scd/app-p15.c
index 1ff4f47c7..8edd737a6 100644
--- a/scd/app-p15.c
+++ b/scd/app-p15.c
@@ -5752,6 +5752,7 @@ do_sign (app_t app, ctrl_t ctrl, const char *keyidstr, int hashalgo,
if (prkdf->is_ecc)
{
/* Not implemented due to lacking test hardware. */
+ log_info ("Note: ECC is not yet implemented for DTRUST 4 cards\n");
err = gpg_error (GPG_ERR_UNSUPPORTED_ALGORITHM);
}
else
@@ -5948,6 +5949,7 @@ do_decipher (app_t app, ctrl_t ctrl, const char *keyidstr,
if (prkdf->is_ecc)
{
/* Not implemented due to lacking test hardware. */
+ log_info ("Note: ECC is not yet implemented for DTRUST 4 cards\n");
err = gpg_error (GPG_ERR_UNSUPPORTED_ALGORITHM);
}
else
@@ -6267,7 +6269,8 @@ app_select_p15 (app_t app)
if (rc)
{
/* D-TRUST Card 4.x uses a different AID. */
- rc = iso7816_select_application_ext (slot, pkcs15dtrust4_aid, sizeof pkcs15dtrust4_aid, 1,
+ rc = iso7816_select_application_ext (slot, pkcs15dtrust4_aid,
+ sizeof pkcs15dtrust4_aid, 1,
&fci, &fcilen);
}
if (rc)