aboutsummaryrefslogtreecommitdiffstats
path: root/scd/app-dinsig.c
diff options
context:
space:
mode:
authorNIIBE Yutaka <[email protected]>2017-03-06 05:59:02 +0000
committerNIIBE Yutaka <[email protected]>2017-03-06 05:59:02 +0000
commit9bf39ed75ddbd35908bcd0996f55325ff801619a (patch)
tree0f835c9e641909bfad8a69f0702f29de0e87761f /scd/app-dinsig.c
parentscd: Clean up old code. (diff)
downloadgnupg-9bf39ed75ddbd35908bcd0996f55325ff801619a.tar.gz
gnupg-9bf39ed75ddbd35908bcd0996f55325ff801619a.zip
scd: More cleanup of old code.
* scd/app-dinsig.c (do_sign): Remove assignment to HASHALGO. * scd/app-p15.c (parse_keyusage_flags): Remove assign to MASK. (read_ef_aodf): Likewise. (read_ef_cdf): Change the control to parse_error. * scd/app-sc-hsm.c (parse_keyusage_flags): Remove assign to MASK. (read_ef_prkd): Remove assign to S. (read_ef_prkd): Check if PRKDF is not null. (read_ef_cd): Likewise for CDF. Signed-off-by: NIIBE Yutaka <[email protected]>
Diffstat (limited to 'scd/app-dinsig.c')
-rw-r--r--scd/app-dinsig.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/scd/app-dinsig.c b/scd/app-dinsig.c
index 5d6584520..f7ecc4bd2 100644
--- a/scd/app-dinsig.c
+++ b/scd/app-dinsig.c
@@ -456,7 +456,6 @@ do_sign (app_t app, const char *keyidstr, int hashalgo,
/* Fixme: This is a kludge. A better solution is not to use
SHA1 as default but use an autodetection. However this
needs changes in all app-*.c */
- hashalgo = GCRY_MD_SHA256;
datalen = indatalen;
}
else