aboutsummaryrefslogtreecommitdiffstats
path: root/include/util.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Switch to a hash and CERT record based PKA system.Werner Koch2015-02-261-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * util/pka.c: Rewrite. (get_pka_info): Add arg fprbuflen. Change callers to pass this. * util/strgutil.c (ascii_strlwr): New. * configure.ac: Remove option --disable-dns-pka. (USE_DNS_PKA): Remove ac_define. * g10/getkey.c (parse_auto_key_locate): Always include PKA. -- Note that although PKA is now always build, it will only work if support for looking up via DNS has not been disabled. The new PKA only works with the IPGP DNS certtype and shall be used only to retrieve the fingerprint and optional the key for the first time. Due to the security problems with DNSSEC the former assumption to validate the key using DNSSEC is not anymore justified. Instead an additional layer (e.g. Trust-On-First-Use) needs to be implemented to track change to the key. Having a solid way of getting a key matching a mail address is however a must have. More work needs to go into a redefinition of the --verify-options pka-lookups and pka-trust-increase. The auto-key-locate mechanism should also be able to continue key fetching with another method once the fingerprint has been retrieved with PKA. Signed-off-by: Werner Koch <[email protected]> This is a backport from master. (backported from commit 2fc27c8696f5cf2ddf3212397ea49bff115d617b)
* Add new function strconcat.Werner Koch2015-02-261-1/+11
| | | | | | | * include/util.h (GNUPG_GCC_A_SENTINEL): New. * util/strgutil.c (do_strconcat, strconcat): New. Signed-off-by: Werner Koch <[email protected]>
* Allow requesting only an IPGP certtype with dns_cert().Werner Koch2015-02-261-2/+2
| | | | | | * util/cert.c (get_cert): Add arg want_ipgp. Change callers. Signed-off-by: Werner Koch <[email protected]>
* Add meta option ignore-invalid-option.Werner Koch2012-12-181-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | * util/argparse.c (iio_item_def_s, IIO_ITEM_DEF): New. (initialize): Init field IIO_LIST. (ignore_invalid_option_p): New. (ignore_invalid_option_add): New. (ignore_invalid_option_clear): New. (optfile_parse): Implement meta option. -- This option is currently of no use. However, as soon as it has been deployed in all stable versions of GnuPG, it will allow the use of the same configuration file with an old and a new version of GnuPG. For example: If a new version implements the option "foobar", and a user uses it in gpg.conf, an old version of gpg would bail out with the error "invalid option". To avoid that the following line can be put above that option in gpg.conf ignore-invalid-option foobar This meta option may be given several times or several option names may be given as arguments (space delimited). Note that this option is not available on the command line. (backported from commit 41d564333d35c923f473aa90625d91f8fe18cd0b)
* Fix potential heap corruption in "gpg -v --version"Werner Koch2012-12-151-0/+1
| | | | | | | | | | | | | | | | | * g10/gpg.c (build_list): Rewrite to cope with buffer overflow in certain locales. * util/membuf.c (put_membuf_str): New. (get_membuf): Make LEN optional. -- This fixes an obvious bug in locales where the translated string is longer than the original. The bug could be exhibited by using LANG=ru_RU.utf8 gpg -v --version. En passant we also removed the trailing white space on continued lines. Reported-by: Dmitry V. Levin" <ldv at altlinux.org>
* Replace file locking by the new portable dotlock code.Werner Koch2012-01-101-13/+5
| | | | | | | | | | | | | * include/dotlock.h: New. From current gnupg master. * util/dotlock.c: Ditto. Include util.h. The major changes done in master are: Factor Unix and W32 specific code out into specific functions. Define HAVE_POSIX_SYSTEM. Rearrange some functions. (disable_dotlock): Rename to dotlock_disable. (create_dotlock): Rename to dotlock_create and add a dummy arg. (destroy_dotlock): Rename to dotlock_destroy. (make_dotlock): Rename to dotlock_take. (release_dotlock): Rename to dotlock_release. (remove_lockfiles): Rename to dotlock_remove_lockfiles.
* Fix a W32 problemWerner Koch2009-09-031-2/+1
|
* Try and detect mis-coded Latin1 and convert it to UTF8. Whether theDavid Shaw2009-08-121-1/+1
| | | | | | heuristics succeed or not, the resulting string must be valid UTF8 as LDAP requires that. This is bug 1055.
* First set of changes to backport the new card code from 2.0.Werner Koch2009-07-211-3/+15
| | | | | | | | For compatibility reasons a few new files had to be added. Also added estream-printf as this is now used in app-openpgp.c and provides a better and generic asprintf implementation than the hack we used for the W32 code in ttyio.c. Card code is not yet finished.
* Backport of Creation-Date parameter for unattended key generation.Werner Koch2009-05-051-0/+1
|
* Switched to GPLv3.Werner Koch2007-10-231-4/+2
| | | | | Updated gettext.
* Improved detection of ketrings specified several times.Werner Koch2007-08-241-0/+1
|
* Move some ascii_foo functions to libcompatDavid Shaw2007-04-161-4/+0
|
* Move strsep() and ascii_isspace() to libcompat.David Shaw2006-09-281-7/+0
|
* Put in the basic wiring (just hextobyte for now) for a libcompat.a thatDavid Shaw2006-09-281-2/+1
| | | | | | | can contain replacement files that can be linked to keyserver helpers without bringing in the whole libutil.a. libutil.a contains a complete copy of libcompat.a so we only need to link to one of them.
* * cert.c (get_cert): Handle the fixed IPGP type with fingerprint.David Shaw2006-03-161-3/+4
|
* New code to do DNS CERT queries.David Shaw2005-12-231-1/+2
|
* Implemented PKA trust modelWerner Koch2005-07-281-0/+4
|
* Updated FSF street address and preparations for a release candidate.Werner Koch2005-05-311-1/+2
|
* * cardglue.c (send_status_info): Make CTRL optional.Werner Koch2005-05-211-1/+20
| | | | | | | | | | | (agent_scd_writekey, inq_writekey_parms): New. (agent_openpgp_storekey): Removed. * cardglue.h: Add a few more error code mappings. * keygen.c (copy_mpi): Removed. (save_unprotected_key_to_card): Changed to use agent_scd_writekey. * app-common.h, app-openpgp.c, tlv.c, tlv.h: Updated from newer version in gnupg 1.9 CVS.
* Remove add_days_to_timestamp (unused)David Shaw2005-05-051-1/+0
|
* * card-util.c (card_status): Use isotimestamp and not theWerner Koch2005-03-141-0/+1
| | | | | | | | localized asctimestamp to match the timezone used in the key information. * miscutil.c (isotimestamp): New.
* * configure.ac: Remove the check for asprintfWerner Koch2004-10-211-9/+0
| | | | | | | | | | | | | | | | * app-common.h (app_openpgp_storekey: Add prototype. * app-openpgp.c (do_sign): Replace asprintf by direct allocation. This avoids problems with missing vasprintf implementations. * card-util.c (generate_card_keys): Add a #warning for gnupg 1.9 and use the same string there. * util.h [!HAVE_VASPRINTF]: Removed prototype. * vasprintf.c: Removed. It was used only at one place and I don't want to get into build problems in 1.4.
* Add asprintf prototype.Werner Koch2004-10-151-0/+13
|
* Added SELInux hacks and did some cleanups.Werner Koch2004-10-131-16/+0
|
* * util.h: Prototype destroy_dotlock(). From Werner on stable branch.David Shaw2004-09-301-0/+1
|
* * util.h: Prototype for hextobyte().David Shaw2004-02-211-2/+2
|
* * util.h: Add prototype for print_string2().David Shaw2004-01-161-1/+3
|
* cleaned up RISC OS code and removed lots of unnecessary stuffStefan Bellon2003-12-281-8/+0
|
* * util.h: Add prototype for match_multistr().David Shaw2003-11-211-0/+1
|
* * cardglue.c (open_card): Ask for card insertion.Werner Koch2003-10-291-0/+1
| | | | | | | | | | | | (check_card_serialno): New. (agent_scd_pksign, agent_scd_pkdecrypt): Use it here. * cardglue.c (open_card): Issue insertion status message. * status.h, status.c (STATUS_CARDCTRL): New. * status.c (cpr_get_answer_okay_cancel): New. * miscutil.c (answer_is_okay_cancel): New.
* 2003-09-28 Timo Schulz <[email protected]>Timo Schulz2003-09-281-1/+2
| | | | | | * util.h [WIN32]: Prototype for asprintf. * dynload.h [WIN32]: Define RTLD_LAZY.
* * util.h: Add the atoi_* and xtoi_* suite of macros from 1.9.Werner Koch2003-09-281-0/+8
| | | | | * dynload.h: New. Taken from 1.9.
* * util.h: s/__MINGW32__/_WIN32/ to help building on native WindowsDavid Shaw2003-08-281-2/+2
| | | | | compilers. Requested by Brian Gladman. From Werner on stable branch.
* * types.h: Prefer using uint64_t when creating a 64-bit unsigned type.David Shaw2003-07-101-0/+10
| | | | | | | | | | | | This avoids a warning on compilers that support but complain about unsigned long long. * util.h (ascii_isspace): New variation on isspace() that is immune from locale changes. * util.h: Make sure that only ascii is passed to isfoo functions. (From Werner on stable branch).
* * cipher.h, i18n.h, iobuf.h, memory.h, mpi.h, types.h, util.h: Edit allDavid Shaw2003-05-241-13/+12
| | | | | | | preprocessor instructions to remove whitespace before the '#'. This is not required by C89, but there are some compilers out there that don't like it.
* * util.h [__CYGWIN32__]: Don't need the registry prototypes. From WernerDavid Shaw2002-11-131-1/+1
| | | | | on stable branch.
* * util.h: Add wipememory2() macro (same as wipememory, but can specify theDavid Shaw2002-11-061-1/+2
| | | | | byte to wipe with).
* added RISC OS module loading supportStefan Bellon2002-10-311-8/+10
|
* * util.h: Add wipememory() macro.David Shaw2002-10-311-0/+2
|
* tidied RISC OS filetype supportStefan Bellon2002-10-291-1/+2
|
* filetype support for RISC OSStefan Bellon2002-10-281-0/+3
|
* * util.h: Add new log_warning logger command which can be switched betweenDavid Shaw2002-10-031-0/+4
| | | | | log_info and log_error via log_set_strict.
* Added prototype.Werner Koch2002-09-101-1/+2
|
* tidying up RISC OS stuffStefan Bellon2002-08-061-0/+1
|
* RISC OS changes due to dynload removalStefan Bellon2002-08-031-1/+1
|
* Update head to match stable 1.0David Shaw2002-06-291-50/+191
|
* See ChangeLog: Fri Jul 14 19:38:23 CEST 2000 Werner KochWerner Koch2000-07-141-0/+1
|
* See ChangeLog: Thu Jan 27 18:00:44 CET 2000 Werner KochWerner Koch2000-01-271-39/+39
|
* See ChangeLog: Mon Jan 24 13:04:28 CET 2000 Werner KochWerner Koch2000-01-241-11/+4
|