diff options
author | NIIBE Yutaka <[email protected]> | 2015-07-23 05:10:03 +0000 |
---|---|---|
committer | NIIBE Yutaka <[email protected]> | 2015-07-23 05:10:03 +0000 |
commit | dbf4534f49a1fe3823bd6d6d7bb4d9df863b4789 (patch) | |
tree | ed0d06bb7a2e0b8526c7c029f042b4a325312ad2 /g10/card-util.c | |
parent | doc: Add a comment to --set-filename. (diff) | |
download | gnupg-dbf4534f49a1fe3823bd6d6d7bb4d9df863b4789.tar.gz gnupg-dbf4534f49a1fe3823bd6d6d7bb4d9df863b4789.zip |
scd: Format change to specify "rsa2048" for KEY-ATTR.
* g10/card-util.c (do_change_keysize): Put "rsa".
* scd/app-openpgp.c (change_keyattr, change_keyattr_from_string):
Change the command format.
(rsa_writekey): Check key type.
(do_writekey): Remove "ecdh" and "ecdsa" support which was available
in experimental libgcrypt before 1.6.0.
Diffstat (limited to 'g10/card-util.c')
-rw-r--r-- | g10/card-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/g10/card-util.c b/g10/card-util.c index dbd530eab..890bf2d77 100644 --- a/g10/card-util.c +++ b/g10/card-util.c @@ -1332,7 +1332,7 @@ do_change_keysize (int keyno, unsigned int nbits) gpg_error_t err; char args[100]; - snprintf (args, sizeof args, "--force %d 1 %u", keyno+1, nbits); + snprintf (args, sizeof args, "--force %d 1 rsa%u", keyno+1, nbits); err = agent_scd_setattr ("KEY-ATTR", args, strlen (args), NULL); if (err) log_error (_("error changing size of key %d to %u bits: %s\n"), |