1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-03-20 21:29:58 +01:00
Werner Koch 0f0e0559f9 agent: Fix length detection of canonical formatted openpgp keys.
* agent/command.c (cmd_import_key): Pass 0 instead of KEYLEN to
gcry_sexp_canon_len.
--

We used to pass KEYLEN to the gcry_sexp_canon_len for no good reason:
convert_from_openpgp is guaranteed to return a valid canonical
S-expression and KEYLEN would thus act only as an upper limit.  This
is not a problem because usually the original input key is longer than
the returned unprotected key.  A future patch may change this
assertion and thus we better fix this bug now.

Signed-off-by: Werner Koch <wk@gnupg.org>
2013-05-22 09:56:30 +02:00
..
2013-02-22 09:42:46 +01:00
2011-06-01 21:43:30 +02:00
2013-02-22 12:55:11 +09:00
2012-08-24 09:44:33 +02:00
2012-12-12 18:47:21 +01:00
2007-07-04 19:49:40 +00:00
2007-07-04 19:49:40 +00:00