1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-14 21:47:19 +02:00

Allow for rmd160 signatures when using gpg-agent.

This commit is contained in:
Werner Koch 2006-03-21 13:01:45 +00:00
parent 70f1c32ffd
commit 7f99c71839
3 changed files with 13 additions and 1 deletions

View file

@ -1225,7 +1225,9 @@ agent_scd_pksign (const char *serialno, int hashalgo,
if (!rc)
{
init_membuf (&data, 1024);
snprintf (line, DIM(line)-1, "SCD PKSIGN %s", serialno);
snprintf (line, DIM(line)-1, "SCD PKSIGN %s%s",
hashalgo == GCRY_MD_RMD160? "--hash=rmd160 ": "",
serialno);
line[DIM(line)-1] = 0;
rc = test_transact (assuan_transact (app->assuan_ctx, line,
membuf_data_cb, &data,