1
0
mirror of git://git.gnupg.org/gnupg.git synced 2024-11-09 21:28:51 +01:00
gnupg/agent
Werner Koch 638526d37f
agent: Allow signing with card key even without a stub key.
* agent/call-scd.c (agent_card_serialno): Allow NULL for R_SERIAL.
(struct readkey_status_parm_s): New.
(readkey_status_cb): New.
(agent_card_readkey): Add optional arg R_KEYREF and change all
callers.
* agent/findkey.c (key_parms_from_sexp): Allow also a "public-key".
* agent/divert-scd.c (ask_for_card): Allow for SHADOW_INFO being NULL.
* agent/pksign.c (agent_pksign_do): Fallback to sign with an on-card
if there is no stub key yet.  Create the stub key.  Also fixed a
misnaming between s_pkey and s_skey.
--

This change allows to create OpenPGP keys directly from a card without
first making sure that a stub key exists.  It is also the less
surprising behaviour.

Signed-off-by: Werner Koch <wk@gnupg.org>
2020-02-13 11:45:41 +01:00
..
agent.h agent: Allow signing with card key even without a stub key. 2020-02-13 11:45:41 +01:00
all-tests.scm tests: Make it possible to run all tests using our infrastructure. 2017-05-11 18:12:37 +02:00
cache.c scd: Use a scdaemon internal key to protect the PIN cache IPC. 2020-01-09 12:00:50 +01:00
call-pinentry.c agent: Improve --debug-pinentry diagnostics 2019-11-25 11:39:56 +01:00
call-scd.c agent: Allow signing with card key even without a stub key. 2020-02-13 11:45:41 +01:00
ChangeLog-2011 Fix typos 2015-10-28 10:20:17 +01:00
command-ssh.c agent: Allow signing with card key even without a stub key. 2020-02-13 11:45:41 +01:00
command.c agent: Allow signing with card key even without a stub key. 2020-02-13 11:45:41 +01:00
cvt-openpgp.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
cvt-openpgp.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
divert-scd.c agent: Allow signing with card key even without a stub key. 2020-02-13 11:45:41 +01:00
findkey.c agent: Allow signing with card key even without a stub key. 2020-02-13 11:45:41 +01:00
genkey.c agent: Remove unused agent_show_message. 2019-05-28 11:29:25 +09:00
gpg-agent-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpg-agent.c build: Always use EXTERN_UNLESS_MAIN_MODULE pattern. 2020-02-10 16:50:47 +01:00
keyformat.txt agent: Allow the use of "Label:" in a key file. 2019-05-07 11:09:09 +02:00
learncard.c agent: Allow signing with card key even without a stub key. 2020-02-13 11:45:41 +01:00
Makefile.am tests: Make it possible to run all tests using our infrastructure. 2017-05-11 18:12:37 +02:00
pkdecrypt.c agent: Support scdaemon operation using KEYGRIP. 2019-05-15 17:13:32 +09:00
pksign.c agent: Allow signing with card key even without a stub key. 2020-02-13 11:45:41 +01:00
preset-passphrase.c build: Always use EXTERN_UNLESS_MAIN_MODULE pattern. 2020-02-10 16:50:47 +01:00
protect-tool.c build: Always use EXTERN_UNLESS_MAIN_MODULE pattern. 2020-02-10 16:50:47 +01:00
protect.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
t-protect.c build: Always use EXTERN_UNLESS_MAIN_MODULE pattern. 2020-02-10 16:50:47 +01:00
trans.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
trustlist.c agent: Replace most assert by log_assert. 2019-05-14 10:31:46 +02:00
w32main.c agent: Resolve conflict of util.h. 2017-03-07 19:22:48 +09:00
w32main.h Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00