1
0
mirror of git://git.gnupg.org/gnupg.git synced 2025-01-10 13:04:23 +01:00
Werner Koch b7fa4960c2
common: Minor fixes for the new private-keys.c.
* common/private-keys.c (my_error_from_syserror): New.  Use it in
place of gpg_error_from_syserror.
(_pkc_add, pkc_lookup, pke_next_value): Use ascii_strcasecmp.
(pkc_parse): Use xtrystrdup and append_to_strlist_try as intended.

(_pkc_add): Add braces around if-statement.
--

We should have a macro so that we do not need to define a wrapper
function like my_error_from_syserror in files where it is needed.  I
am not sure about a proper name, "my_" seems to be the easiest
replacement.  Note that the global DEFAULT_ERRSOURCE is relatively new
to replace the need to convey the error source in function calls; we
want that function from common/ return the error source of the main
binary.

We require that a key is ASCII and thus we better use ascii_strcasecmp
to avoid problems with strange locales.

Signed-off-by: Werner Koch <wk@gnupg.org>
2016-04-25 18:14:12 +02:00
..
2016-01-26 13:20:59 +01:00
2015-11-17 12:50:22 +01:00
2015-11-17 12:50:22 +01:00
2015-12-21 11:37:21 +01:00
2015-10-28 10:20:17 +01:00
2015-11-17 12:50:22 +01:00
2015-12-21 11:37:21 +01:00
2013-11-18 14:09:47 +01:00
2015-11-17 12:50:22 +01:00
2015-11-17 12:50:22 +01:00
2015-11-17 12:50:22 +01:00
2016-02-23 21:14:21 +01:00
2015-03-17 09:18:23 +01:00
2015-11-17 12:50:22 +01:00
2016-03-02 14:27:30 +01:00
2015-11-17 12:50:22 +01:00
2015-11-17 12:50:22 +01:00
2015-11-17 12:50:22 +01:00
2014-11-11 15:14:31 +01:00
2015-11-17 12:50:22 +01:00
2015-02-03 09:12:45 +01:00
2014-04-17 21:09:10 +02:00
2015-10-30 12:33:40 +01:00

Common functionality used by all modules of GnuPG.