gnupg/agent
Werner Koch 2183683bd6 Use inline functions to convert buffer data to scalars.
* common/host2net.h (buf16_to_ulong, buf16_to_uint): New.
(buf16_to_ushort, buf16_to_u16): New.
(buf32_to_size_t, buf32_to_ulong, buf32_to_uint, buf32_to_u32): New.
--

Commit 91b826a388 was not enough to
avoid all sign extension on shift problems.  Hanno Böck found a case
with an invalid read due to this problem.  To fix that once and for
all almost all uses of "<< 24" and "<< 8" are changed by this patch to
use an inline function from host2net.h.

Signed-off-by: Werner Koch <wk@gnupg.org>
2015-02-11 10:28:25 +01:00
..
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
Makefile.am Remove use of gnulib (part 1) 2014-11-11 10:13:10 +01:00
agent.h agent: Fix use of imported but unprotected openpgp keys. 2015-01-29 16:26:07 +01:00
cache.c gpg: Improve passphrase caching. 2014-09-17 15:12:08 +02:00
call-pinentry.c gpg-agent: Use "pinentry-basic" as fallback. 2015-02-04 10:28:38 +01:00
call-scd.c agent: Replace some sprintf. 2014-12-02 14:13:53 +01:00
command-ssh.c agent: Keep the session environment for restricted connections. 2014-12-19 13:07:09 +01:00
command.c agent: Fix use of imported but unprotected openpgp keys. 2015-01-29 16:26:07 +01:00
cvt-openpgp.c Use inline functions to convert buffer data to scalars. 2015-02-11 10:28:25 +01:00
cvt-openpgp.h Implement unattended OpenPGP secret key import. 2013-05-22 10:14:57 +02:00
divert-scd.c scd: ECDH Support. 2014-12-22 09:27:00 +09:00
findkey.c agent: Fix use of imported but unprotected openpgp keys. 2015-01-29 16:26:07 +01:00
genkey.c gpg: Re-enable the "Passphrase" parameter for batch key generation. 2015-01-21 11:31:20 +01:00
gpg-agent-w32info.rc w32: Add icons and version information. 2013-05-07 21:35:48 +02:00
gpg-agent.c gpg-agent: Use "pinentry-basic" as fallback. 2015-02-04 10:28:38 +01:00
keyformat.txt gpg: Finish experimental support for Ed25519. 2014-05-07 13:27:43 +02:00
learncard.c gpg: Let --card--status create a shadow key (card key stub). 2014-12-12 12:47:28 +01:00
pkdecrypt.c agent: Replace some sprintf. 2014-12-02 14:13:53 +01:00
pksign.c Change a couple of files to use abbreviated copyright notes. 2014-11-04 16:28:03 +01:00
preset-passphrase.c Add a hook to be called right after main. 2015-01-28 19:57:22 +01:00
protect-tool.c Add a hook to be called right after main. 2015-01-28 19:57:22 +01:00
protect.c agent: Fix use of imported but unprotected openpgp keys. 2015-01-29 16:26:07 +01:00
t-protect.c Implement unattended OpenPGP secret key import. 2013-05-22 10:14:57 +02:00
trans.c Changed to GPLv3. 2007-07-04 19:49:40 +00:00
trustlist.c agent: Make --allow-mark-trusted the default. 2014-03-07 09:48:26 +01:00
w32main.c Make use of the *_NAME etc macros. 2013-11-18 14:09:47 +01:00
w32main.h Changed to GPLv3. 2007-07-04 19:49:40 +00:00