1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-04-17 15:44:34 +02:00
Daniel Kahn Gillmor a3cb72af79
g10: Allow receiving cleartext secret keys from agent
* g10/export.c (match_curve_skey_pk): New function, testing whether an
OpenPGP public key and an S-expression use the same curve.
* g10/export.c (cleartext_secret_key_to_openpgp): New function,
filling in the secret key parameters of a PKT_public_key object from
a corresponding cleartext S-expression.
* g10/export.c, g10/main.h (receive_seckey_from_agent): Add cleartext
parameter, enabling retrieval of the secret key, unlocked.
* g10/export.c (do_export_stream): Send cleartext as 0, keeping current
behavior.
* g10/keygen.c (card_store_key_with_backup): Use cleartext=0 to ensure
that smartcard backups are all passphrase-locked.
--

This sets up internal functionality to be capable of exporting
cleartext secret keys, but does not change any existing behavior.

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2016-06-11 11:16:19 +02:00
..
2016-02-14 14:46:30 +01:00
2014-10-31 14:21:34 +01:00
2007-07-04 19:49:40 +00:00
2014-11-13 12:01:42 +01:00
2015-02-04 09:15:34 +01:00
2016-06-08 15:14:06 +02:00
2015-02-04 09:15:34 +01:00
2016-06-06 16:03:22 +02:00
2016-01-22 10:54:10 +01:00
2016-05-31 15:51:18 +02:00
2016-06-06 16:03:22 +02:00
2008-12-12 08:54:50 +00:00
2016-05-11 19:27:03 +09:00
2016-03-08 14:08:49 +01:00
2016-05-03 11:26:06 +02:00
2014-01-29 17:45:05 +01:00