gnupg/agent
Daniel Kahn Gillmor e4a158faac agent: correct length for uri and comment on 64-bit big-endian platforms
* agent/findkey.c (agent_public_key_from_file): pass size_t as int to
gcry_sexp_build_array's %b.

--

This is only a problem on big-endian systems where size_t is not the
same size as an int.  It was causing failures on debian's s390x,
powerpc64, and sparc64 platforms.

There may well be other failures with %b on those platforms in the
codebase, and it probably needs an audit.

Once you have a key in private-keys-v1.d/$KEYGRIP.key with a comment
or a uri of reasonable length associated with it, this fix can be
tested with:

   gpg-agent --server <<<"READKEY $KEYGRIP"

On the failing platforms, the printed comment will be of length 0.

Gnupg-bug-id: 4501
Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>
2019-05-14 00:13:35 -04:00
..
ChangeLog-2011 Fix typos 2015-10-28 10:20:17 +01:00
Makefile.am tests: Make it possible to run all tests using our infrastructure. 2017-05-11 18:12:37 +02:00
agent.h agent: Put Token lines into the key files. 2019-05-03 15:54:54 +02: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 agent: New commands PUT_SECRET and GET_SECRET. 2018-07-02 21:36:19 +02:00
call-pinentry.c agent: Terminate pinentry process gracefully, by watching socket. 2019-02-19 14:36:50 +09:00
call-scd.c agent: Fix detection of exit of scdaemon. 2019-03-06 11:00:10 +09:00
command-ssh.c agent: Put Token lines into the key files. 2019-05-03 15:54:54 +02:00
command.c dirmngr: Add a CSRF expection for pm.me 2019-05-09 14:50:41 +02:00
cvt-openpgp.c agent: Put Token lines into the key files. 2019-05-03 15:54:54 +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: Minor change to the KEYTOCARD command. 2019-03-05 12:08:27 +01:00
findkey.c agent: correct length for uri and comment on 64-bit big-endian platforms 2019-05-14 00:13:35 -04:00
genkey.c agent: Put Token lines into the key files. 2019-05-03 15:54:54 +02:00
gpg-agent-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpg-agent.c agent: Re-introduce --enable-extended-key-format. 2019-03-06 17:58:39 +01:00
keyformat.txt agent: Allow the use of "Label:" in a key file. 2019-05-07 11:09:09 +02:00
learncard.c all: fix spelling and typos 2018-10-24 15:56:18 -04:00
pkdecrypt.c Use the gpgrt log functions if possible. 2017-11-27 15:00:25 +01:00
pksign.c agent: PKSIGN should return signature in same format for card. 2019-02-27 10:37:26 +09:00
preset-passphrase.c Fix usage of ARGPARSE_OPTS. 2017-07-19 13:41:18 +09:00
protect-tool.c agent: Put Token lines into the key files. 2019-05-03 15:54:54 +02:00
protect.c agent: Put Token lines into the key files. 2019-05-03 15:54:54 +02:00
t-protect.c agent: Fix description of shadow format. 2017-12-08 09:19:50 +09:00
trans.c Change all http://www.gnu.org in license notices to https:// 2016-11-05 12:02:19 +01:00
trustlist.c Spelling fixes in docs and comments. 2017-04-28 10:06:33 +09: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