aboutsummaryrefslogtreecommitdiffstats
path: root/util/strgutil.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-02-26Switch to a hash and CERT record based PKA system.Werner Koch1-0/+12
* 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)
2015-02-26Move two functions from g10/ to util/.Werner Koch1-0/+50
* g10/misc.c (has_invalid_email_chars, is_valid_mailbox): Move to ... * util/strgutil.c: here. Signed-off-by: Werner Koch <[email protected]>
2015-02-26Add new function strconcat.Werner Koch1-26/+79
* include/util.h (GNUPG_GCC_A_SENTINEL): New. * util/strgutil.c (do_strconcat, strconcat): New. Signed-off-by: Werner Koch <[email protected]>
2009-09-03Fix a W32 problemWerner Koch1-0/+13
2009-08-12Try and detect mis-coded Latin1 and convert it to UTF8. Whether theDavid Shaw1-0/+71
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-106/+43
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.
2007-10-23Switched to GPLv3.Werner Koch1-4/+2
Updated gettext.
2007-04-16Move some ascii_foo functions to libcompatDavid Shaw1-70/+0
2006-09-28Move strsep() and ascii_isspace() to libcompat.David Shaw1-50/+0
2005-07-27Converted all m_free to xfree etc.Werner Koch1-21/+21
2005-05-31Updated FSF street address and preparations for a release candidate.Werner Koch1-1/+2
2005-05-30* strgutil.c (set_native_charset) [_WIN32]: Add alias for codepageDavid Shaw1-1/+2
CP65001 to utf-8.
2005-01-20* g10.c (i18n_init) [W32]: Pass registry key to gettextWerner Koch1-8/+39
initialization. * gpgv.c (i18n_init) [W32]: Ditto. * simple-gettext.c (set_gettext_file): Use MO files depending on the installation directory. Add new arg REGKEY.
2005-01-17Same forWerner Koch1-8/+30
--without-included-regex.
2005-01-06(set_native_charset): Assume that ASCII,Werner Koch1-8/+47
ANSI_X3.4-1968 and 646 are actually meant as Latin-1. If nl_langinfo is not available get the charset from environment variables. For W32 use GetACP as error fallback. Removed Latin-15 to Latin-1 aliasing.
2004-12-20(handle_iconv_error): Turn diagnostics into warningsWerner Koch1-4/+4
so that gpg does not return with failure. (native_to_utf8, utf8_to_native): Ditto.
2004-11-032004-11-03 Timo Schulz <[email protected]>Timo Schulz1-0/+16
* strgutil.c (w32_strerror): New. * ttyio.c (init_ttyfp, tty_printf, do_get): Use it here. * iobuf.c (fd_cache_open, file_filter): Likewise. (iobuf_seek, translate_file_handle): Likewise.
2004-11-03* strgutil.c (load_libiconv): Use log_info to avoid failures whenWerner Koch1-1/+1
iconv.dll is not installed.
2004-10-27* dynload.h: Always use it for _WIN32.Werner Koch1-8/+17
* LINGUAS: Better don't have comments in this file. * mk-w32-dist: Use utf-8 encoding for all MO files. * simple-gettext.c: Removed windows.h. (get_string): On the fly translation from utf-8 to active character set. * strgutil.c (load_libiconv) [_WIN32]: new. (set_native_charset) [_WIN32]: Call it here and autodetect the used code page. (native_to_utf8, utf8_to_native): Reverted arguments for iconv_open. (handle_iconv_error): Made this function match iconv_open argumnet ordering. (utf8_to_native): Disable all quoting for DELIM == -1.
2004-10-27(load_libiconv) [_WIN32]: new.Werner Koch1-19/+99
(set_native_charset) [_WIN32]: Call it here and autodetect the used code page. (native_to_utf8, utf8_to_native): Reverted arguments for iconv_open. (handle_iconv_error): Made this function match iconv_open argumnet ordering.
2004-10-26(mem2str): Translated comment to English.Werner Koch1-70/+275
(handle_iconv_error) [USE_GNUPG_ICONV]: New. (set_native_charset) [USE_GNUPG_ICONV]: Added iconv based conversion checks. (native_to_utf8, utf8_to_native): Added iconv based conversion.
2003-09-282003-09-28 Timo Schulz <[email protected]>Timo Schulz1-1/+13
* strgutil.c [WIN32] (asprintf): New.
2003-08-28* dotlock.c, http.c, iobuf.c, simple-gettext.c, srv.c, srv.h, strgutil.c,David Shaw1-3/+2
ttyio.c, w32reg.c: s/__MINGW32__/_WIN32/ to help building on native Windows compilers. Requested by Brian Gladman. From Werner on stable branch. * http.c (connect_server): Oops - forgot to freeaddrinfo().
2003-07-10* iobuf.c (check_special_filename): Replaced is isdigit by digitpDavid Shaw1-4/+7
to avoid passing negative values and potential locale problems. Problem noted by Christian Biere. * strgutil.c (strlwr,strcasecmp,strncasecmp): Make sure we don't pass a negative value. * miscutil.c (scan_isodatestr): Ditto.
2002-09-10* w32reg.c (read_w32_registry_string): Handle REG_EXPAND_SZ.Werner Koch1-7/+48
Suggested by Ryan Malayter. * strgutil.c (ascii_strcasecmp): Replaced by code from gnulib. (ascii_strncasecmp): New.
2002-09-02* strgutil.c (set_native_charset): Allow NULL as argument to useWerner Koch1-3/+22
nl_langinfo for selection. Mapped latin-15 to latin-1.
2002-06-29Update head to match stable 1.0David Shaw1-107/+499
2000-09-18See ChangeLog: Mon Sep 18 16:35:45 CEST 2000 Werner KochWerner Koch1-1/+6
2000-07-14See ChangeLog: Fri Jul 14 19:38:23 CEST 2000 Werner KochWerner Koch1-1/+1
2000-01-27See ChangeLog: Thu Jan 27 18:00:44 CET 2000 Werner KochWerner Koch1-1/+2
2000-01-24See ChangeLog: Mon Jan 24 13:04:28 CET 2000 Werner KochWerner Koch1-8/+8
1999-12-08See ChangeLog: Wed Dec 8 21:58:32 CET 1999 Werner KochWerner Koch1-154/+0
1999-10-26See ChangeLog: Tue Oct 26 14:10:21 CEST 1999 Werner KochWerner Koch1-5/+80
1999-08-31See ChangeLog: Tue Aug 31 17:20:44 CEST 1999 Werner KochWerner Koch1-60/+144
1999-07-14See ChangeLog: Wed Jul 14 19:42:08 CEST 1999 Werner KochWerner Koch1-1/+1
1999-07-01See ChangeLog: Thu Jul 1 12:47:31 CEST 1999 Werner KochWerner Koch1-0/+33
1999-06-05See ChangeLog: Sat Jun 5 15:30:33 CEST 1999 Werner KochWerner Koch1-11/+19
1999-05-22See ChangeLog: Sat May 22 22:47:26 CEST 1999 Werner KochWerner Koch1-1/+2
1999-05-20See ChangeLog: Thu May 20 14:04:08 CEST 1999 Werner KochWerner Koch1-5/+11
1999-04-18See ChangeLog: Sun Apr 18 10:11:28 CEST 1999 Werner KochWerner Koch1-0/+19
1999-03-02See ChangeLog: Tue Mar 2 16:44:57 CET 1999 Werner KochWerner Koch1-0/+6
1999-02-16See ChangeLog: Tue Feb 16 14:10:02 CET 1999 Werner KochWerner Koch1-0/+2
1999-01-17See ChangeLog: Sun Jan 17 11:04:33 CET 1999 Werner KochWerner Koch1-0/+28
1998-12-23See ChangeLog: Wed Dec 23 13:34:22 CET 1998 Werner KochWerner Koch1-3/+3
1998-11-18some bug fixesWerner Koch1-3/+49
1998-11-13See ChangeLog ;-). Key validation should now be fasterWerner Koch1-0/+14
1998-11-10Some bug fixes of the last releaseWerner Koch1-12/+72
1998-11-03(Does not compile yet)Werner Koch1-0/+46
1998-10-06windoze version works againWerner Koch1-11/+15
1998-07-06intermediate releaseWerner Koch1-1/+20