aboutsummaryrefslogtreecommitdiffstats
path: root/util/strgutil.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Switch to a hash and CERT record based PKA system.Werner Koch2015-02-261-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)
* Move two functions from g10/ to util/.Werner Koch2015-02-261-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]>
* Add new function strconcat.Werner Koch2015-02-261-26/+79
| | | | | | | * include/util.h (GNUPG_GCC_A_SENTINEL): New. * util/strgutil.c (do_strconcat, strconcat): New. Signed-off-by: Werner Koch <[email protected]>
* Fix a W32 problemWerner Koch2009-09-031-0/+13
|
* Try and detect mis-coded Latin1 and convert it to UTF8. Whether theDavid Shaw2009-08-121-0/+71
| | | | | | 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-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.
* Switched to GPLv3.Werner Koch2007-10-231-4/+2
| | | | | Updated gettext.
* Move some ascii_foo functions to libcompatDavid Shaw2007-04-161-70/+0
|
* Move strsep() and ascii_isspace() to libcompat.David Shaw2006-09-281-50/+0
|
* Converted all m_free to xfree etc.Werner Koch2005-07-271-21/+21
|
* Updated FSF street address and preparations for a release candidate.Werner Koch2005-05-311-1/+2
|
* * strgutil.c (set_native_charset) [_WIN32]: Add alias for codepageDavid Shaw2005-05-301-1/+2
| | | | | CP65001 to utf-8.
* * g10.c (i18n_init) [W32]: Pass registry key to gettextWerner Koch2005-01-201-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.
* Same forWerner Koch2005-01-171-8/+30
| | | | | --without-included-regex.
* (set_native_charset): Assume that ASCII,Werner Koch2005-01-061-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.
* (handle_iconv_error): Turn diagnostics into warningsWerner Koch2004-12-201-4/+4
| | | | | | so that gpg does not return with failure. (native_to_utf8, utf8_to_native): Ditto.
* 2004-11-03 Timo Schulz <[email protected]>Timo Schulz2004-11-031-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.
* * strgutil.c (load_libiconv): Use log_info to avoid failures whenWerner Koch2004-11-031-1/+1
| | | | | iconv.dll is not installed.
* * dynload.h: Always use it for _WIN32.Werner Koch2004-10-271-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.
* (load_libiconv) [_WIN32]: new.Werner Koch2004-10-271-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.
* (mem2str): Translated comment to English.Werner Koch2004-10-261-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-28 Timo Schulz <[email protected]>Timo Schulz2003-09-281-1/+13
| | | | | * strgutil.c [WIN32] (asprintf): New.
* * dotlock.c, http.c, iobuf.c, simple-gettext.c, srv.c, srv.h, strgutil.c,David Shaw2003-08-281-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().
* * iobuf.c (check_special_filename): Replaced is isdigit by digitpDavid Shaw2003-07-101-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.
* * w32reg.c (read_w32_registry_string): Handle REG_EXPAND_SZ.Werner Koch2002-09-101-7/+48
| | | | | | | Suggested by Ryan Malayter. * strgutil.c (ascii_strcasecmp): Replaced by code from gnulib. (ascii_strncasecmp): New.
* * strgutil.c (set_native_charset): Allow NULL as argument to useWerner Koch2002-09-021-3/+22
| | | | | nl_langinfo for selection. Mapped latin-15 to latin-1.
* Update head to match stable 1.0David Shaw2002-06-291-107/+499
|
* See ChangeLog: Mon Sep 18 16:35:45 CEST 2000 Werner KochWerner Koch2000-09-181-1/+6
|
* See ChangeLog: Fri Jul 14 19:38:23 CEST 2000 Werner KochWerner Koch2000-07-141-1/+1
|
* See ChangeLog: Thu Jan 27 18:00:44 CET 2000 Werner KochWerner Koch2000-01-271-1/+2
|
* See ChangeLog: Mon Jan 24 13:04:28 CET 2000 Werner KochWerner Koch2000-01-241-8/+8
|
* See ChangeLog: Wed Dec 8 21:58:32 CET 1999 Werner KochWerner Koch1999-12-081-154/+0
|
* See ChangeLog: Tue Oct 26 14:10:21 CEST 1999 Werner KochWerner Koch1999-10-261-5/+80
|
* See ChangeLog: Tue Aug 31 17:20:44 CEST 1999 Werner KochWerner Koch1999-08-311-60/+144
|
* See ChangeLog: Wed Jul 14 19:42:08 CEST 1999 Werner KochWerner Koch1999-07-141-1/+1
|
* See ChangeLog: Thu Jul 1 12:47:31 CEST 1999 Werner KochWerner Koch1999-07-011-0/+33
|
* See ChangeLog: Sat Jun 5 15:30:33 CEST 1999 Werner KochWerner Koch1999-06-051-11/+19
|
* See ChangeLog: Sat May 22 22:47:26 CEST 1999 Werner KochWerner Koch1999-05-221-1/+2
|
* See ChangeLog: Thu May 20 14:04:08 CEST 1999 Werner KochWerner Koch1999-05-201-5/+11
|
* See ChangeLog: Sun Apr 18 10:11:28 CEST 1999 Werner KochWerner Koch1999-04-181-0/+19
|
* See ChangeLog: Tue Mar 2 16:44:57 CET 1999 Werner KochWerner Koch1999-03-021-0/+6
|
* See ChangeLog: Tue Feb 16 14:10:02 CET 1999 Werner KochWerner Koch1999-02-161-0/+2
|
* See ChangeLog: Sun Jan 17 11:04:33 CET 1999 Werner KochWerner Koch1999-01-171-0/+28
|
* See ChangeLog: Wed Dec 23 13:34:22 CET 1998 Werner KochWerner Koch1998-12-231-3/+3
|
* some bug fixesWerner Koch1998-11-181-3/+49
|
* See ChangeLog ;-). Key validation should now be fasterWerner Koch1998-11-131-0/+14
|
* Some bug fixes of the last releaseWerner Koch1998-11-101-12/+72
|
* (Does not compile yet)Werner Koch1998-11-031-0/+46
|
* windoze version works againWerner Koch1998-10-061-11/+15
|
* intermediate releaseWerner Koch1998-07-061-1/+20
|