aboutsummaryrefslogtreecommitdiffstats
path: root/include/util.h (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-12-18Add meta option ignore-invalid-option.Werner Koch1-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)
2012-12-15Fix potential heap corruption in "gpg -v --version"Werner Koch1-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>
2012-01-10Replace file locking by the new portable dotlock code.Werner Koch1-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.
2009-09-03Fix a W32 problemWerner Koch1-2/+1
2009-08-12Try and detect mis-coded Latin1 and convert it to UTF8. Whether theDavid Shaw1-1/+1
heuristics succeed or not, the resulting string must be valid UTF8 as LDAP requires that. This is bug 1055.
2009-07-21First set of changes to backport the new card code from 2.0.Werner Koch1-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.
2009-05-05Backport of Creation-Date parameter for unattended key generation.Werner Koch1-0/+1
2007-10-23Switched to GPLv3.Werner Koch1-4/+2
Updated gettext.
2007-08-24Improved detection of ketrings specified several times.Werner Koch1-0/+1
2007-04-16Move some ascii_foo functions to libcompatDavid Shaw1-4/+0
2006-09-28Move strsep() and ascii_isspace() to libcompat.David Shaw1-7/+0
2006-09-28Put in the basic wiring (just hextobyte for now) for a libcompat.a thatDavid Shaw1-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.
2006-03-16* cert.c (get_cert): Handle the fixed IPGP type with fingerprint.David Shaw1-3/+4
2005-12-23New code to do DNS CERT queries.David Shaw1-1/+2
2005-07-28Implemented PKA trust modelWerner Koch1-0/+4
2005-05-31Updated FSF street address and preparations for a release candidate.Werner Koch1-1/+2
2005-05-21* cardglue.c (send_status_info): Make CTRL optional.Werner Koch1-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.
2005-05-05Remove add_days_to_timestamp (unused)David Shaw1-1/+0
2005-03-14* card-util.c (card_status): Use isotimestamp and not theWerner Koch1-0/+1
localized asctimestamp to match the timezone used in the key information. * miscutil.c (isotimestamp): New.
2004-10-21* configure.ac: Remove the check for asprintfWerner Koch1-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.
2004-10-15Add asprintf prototype.Werner Koch1-0/+13
2004-10-13Added SELInux hacks and did some cleanups.Werner Koch1-16/+0
2004-09-30* util.h: Prototype destroy_dotlock(). From Werner on stable branch.David Shaw1-0/+1
2004-02-21* util.h: Prototype for hextobyte().David Shaw1-2/+2
2004-01-16* util.h: Add prototype for print_string2().David Shaw1-1/+3
2003-12-28cleaned up RISC OS code and removed lots of unnecessary stuffStefan Bellon1-8/+0
2003-11-21* util.h: Add prototype for match_multistr().David Shaw1-0/+1
2003-10-29* cardglue.c (open_card): Ask for card insertion.Werner Koch1-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-282003-09-28 Timo Schulz <[email protected]>Timo Schulz1-1/+2
* util.h [WIN32]: Prototype for asprintf. * dynload.h [WIN32]: Define RTLD_LAZY.
2003-09-28* util.h: Add the atoi_* and xtoi_* suite of macros from 1.9.Werner Koch1-0/+8
* dynload.h: New. Taken from 1.9.
2003-08-28* util.h: s/__MINGW32__/_WIN32/ to help building on native WindowsDavid Shaw1-2/+2
compilers. Requested by Brian Gladman. From Werner on stable branch.
2003-07-10* types.h: Prefer using uint64_t when creating a 64-bit unsigned type.David Shaw1-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).
2003-05-24* cipher.h, i18n.h, iobuf.h, memory.h, mpi.h, types.h, util.h: Edit allDavid Shaw1-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.
2002-11-13* util.h [__CYGWIN32__]: Don't need the registry prototypes. From WernerDavid Shaw1-1/+1
on stable branch.
2002-11-06* util.h: Add wipememory2() macro (same as wipememory, but can specify theDavid Shaw1-1/+2
byte to wipe with).
2002-10-31added RISC OS module loading supportStefan Bellon1-8/+10
2002-10-31* util.h: Add wipememory() macro.David Shaw1-0/+2
2002-10-29tidied RISC OS filetype supportStefan Bellon1-1/+2
2002-10-28filetype support for RISC OSStefan Bellon1-0/+3
2002-10-03* util.h: Add new log_warning logger command which can be switched betweenDavid Shaw1-0/+4
log_info and log_error via log_set_strict.
2002-09-10Added prototype.Werner Koch1-1/+2
2002-08-06tidying up RISC OS stuffStefan Bellon1-0/+1
2002-08-03RISC OS changes due to dynload removalStefan Bellon1-1/+1
2002-06-29Update head to match stable 1.0David Shaw1-50/+191
2000-07-14See ChangeLog: Fri Jul 14 19:38:23 CEST 2000 Werner KochWerner Koch1-0/+1
2000-01-27See ChangeLog: Thu Jan 27 18:00:44 CET 2000 Werner KochWerner Koch1-39/+39
2000-01-24See ChangeLog: Mon Jan 24 13:04:28 CET 2000 Werner KochWerner Koch1-11/+4
1999-12-08See ChangeLog: Wed Dec 8 21:58:32 CET 1999 Werner KochWerner Koch1-69/+5
1999-11-19See ChangeLog: Fri Nov 19 17:15:20 CET 1999 Werner KochWerner Koch1-5/+6
1999-08-31See ChangeLog: Tue Aug 31 17:20:44 CEST 1999 Werner KochWerner Koch1-1/+2