aboutsummaryrefslogtreecommitdiffstats
path: root/util (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Some cleanup so we don't build files that are completely ifdeffed out. David Shaw2005-12-062-16/+26
| | | | | | This causes a warning on Sun's cc. Do the internal regex code as well for consistency.
* * mkdtemp.c (mkdtemp): Fix warning.David Shaw2005-12-065-13/+20
| | | | | | * secmem.c, assuan-buffer.c, dotlock.c: Fix a few warnings from printf-ing %p where the arg wasn't void *.
* Fix various build warnings reported by Joe Vender on MinGW.David Shaw2005-11-032-0/+11
|
* Renamed g10.c to gpg.cWerner Koch2005-10-053-8/+56
| | | | Filelength fixes for W32.
* * fileutil.c (untilde): New. Expand ~/foo and ~username/foo filenamesDavid Shaw2005-08-312-7/+76
| | | | | | into full paths using $HOME if possible, or getpwuid/getpwnam if necessary. (make_filename): Use it here.
* Implemented PKA trust modelWerner Koch2005-07-282-2/+4
|
* Implemented PKA trust modelWerner Koch2005-07-284-3/+273
|
* Converted all m_free to xfree etc.Werner Koch2005-07-2718-183/+192
|
* * gpg.sgml (http):Werner Koch2005-07-221-5/+0
| | | | | | * g10.c, options.h: New option --exit-on-status-write-error. * status.c (write_status_text): Make use of this option.
* * tdbio.c (open_db): Check for EROFS. Suggested by Bryce Nichols.Werner Koch2005-07-182-1/+15
| | | | | | * ttyio.c (do_get): Move printing of the prompt after disabling echo. Suggested by Scott Worley.
* * http.c (make_radix64_string): Add '=' padding as per standard.David Shaw2005-06-232-32/+53
| | | | | | | (send_request, http_open, http_open_document): Clean up auth code. Can now support different auth for a proxy and the file being requested via that proxy. Unescape auth strings.
* * memrchr.c (memrchr): Not all compilers allow initializing based on aDavid Shaw2005-06-222-1/+9
| | | | | variable that is also being initialized. Noted by Nelson H. F. Beebe.
* * http.c (send_request, http_open, http_open_document): Pass in authDavid Shaw2005-06-222-7/+17
| | | | | and proxyauth that can override the in-url auth.
* * http.c (send_request): Need == after the radix64-encoded basic authDavid Shaw2005-06-222-4/+9
| | | | | string.
* * dotlock.c [HAVE_DOSISH_SYSTEM]: Fix unused function warnings on mingw32.David Shaw2005-06-082-49/+48
| | | | | Noted by Joe Vender.
* * keydb.h [!ENABLE_AGENT_SUPPORT]: Define dummy types.Werner Koch2005-05-312-1/+5
| | | | | | | | | | | | | * cardglue.c (assuan_strerror, assuan_transact): Dummy functions if not build with agent support. * zh_TW.po, zh_CN.po, es.po, ro.po: Updated. * tr.po: Updated from TP. Note: this is an exception in general translations from the Robot are not anymore accepted. * regcomp.c (MB_CUR_MAX) [_WIN32]: Define it only if not defined.
* Updated FSF street address and preparations for a release candidate.Werner Koch2005-05-3137-38/+68
|
* * strgutil.c (set_native_charset) [_WIN32]: Add alias for codepageDavid Shaw2005-05-302-1/+7
| | | | | CP65001 to utf-8.
* * cardglue.c (send_status_info): Make CTRL optional.Werner Koch2005-05-213-1/+88
| | | | | | | | | | | (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-052-7/+4
|
* Fix minor build problem on OSX (need a replacement for memrchr)David Shaw2005-04-124-0/+59
|
* Changes to make use of code taken from libassuan. This replaces theWerner Koch2005-04-0513-27/+1865
| | | | | | | old ad-hoc connection code to gpg-agent. We do need this for the forthcoming diversion of card code to an already running gpg-agent with card-support.
* * keyedit.c (command_generator, keyedit_completion): ChangedWerner Koch2005-03-211-1/+1
| | | | | | indentation. * card-util.c (command_generator, card_edit_completion): Ditto.
* * ttyio.c (tty_enable_completion, tty_disable_completion): Enable andDavid Shaw2005-03-182-0/+26
| | | | | | disable readline completion. (init_ttyfp): Completion is disabled by default.
* * card-util.c (card_status): Use isotimestamp and not theWerner Koch2005-03-142-1/+28
| | | | | | | | localized asctimestamp to match the timezone used in the key information. * miscutil.c (isotimestamp): New.
* (secmem_realloc): Take control information into accountWerner Koch2005-03-103-5/+28
| | | | | when checking whether a resize is needed.
* (GNUPG_CHECK_GNUMAKE): Removed. Not needed forWerner Koch2005-02-042-4/+15
| | | | | decent automakes.
* Last changes for W32RC-1-4-1rc1Werner Koch2005-02-032-1/+5
|
* * http.c (connect_server): Fix fd leak when connecting to a round-robinDavid Shaw2005-02-012-1/+15
| | | | | server set that has some down servers. Noted by Phil Pennock.
* * g10.c (i18n_init) [W32]: Pass registry key to gettextWerner Koch2005-01-204-36/+109
| | | | | | | | | 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-172-8/+35
| | | | | --without-included-regex.
* * http.c (connect_server): Use INADDR_NONE instead of SOCKET_ERROR.David Shaw2005-01-132-1/+6
| | | | | Noted by Timo.
* (set_native_charset): Assume that ASCII,Werner Koch2005-01-062-8/+55
| | | | | | | | 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.
* Better implementation for the SRV check. We don't need to actually checkDavid Shaw2004-12-293-3/+10
| | | | | | all the header files individually since the SRV test compile uses them together.
* (handle_iconv_error): Turn diagnostics into warningsWerner Koch2004-12-203-5/+16
| | | | | | so that gpg does not return with failure. (native_to_utf8, utf8_to_native): Ditto.
* Readline fix to be robust against platforms where readline has its ownDavid Shaw2004-12-182-4/+9
| | | | | | dependencies. We play guess-the-depedency for a while, and try termcap, curses, and ncurses.
* * configure.ac: Check for arpa/nameser.h.David Shaw2004-12-162-1/+7
| | | | | | * srv.h: Don't include arpa/nameser.h unless we have it. Include "types.h" for u16.
* * g10.c (main): Add --require-secmem/--no-require-secmem to cause gpg toDavid Shaw2004-12-162-3/+11
| | | | | | | | | | | exit if it cannot lock memory. Also remove --nrsign-key and --nrlsign-key since this can better be done via --edit-key. * secmem.c (secmem_init): Return a flag to indicate whether we got the lock. * memory.h: Return a flag to indicate whether we got the lock.
* (fd_cache_strcmp): New. Use whenever we compareWerner Koch2004-12-062-3/+29
| | | | | | filenames for the fd_cache. This is needed because the backslash is an alias for a slash under W32. Reported by Tobias Winkler.
* * http.c (send_request): Include the port if non-80 in the Host: header.David Shaw2004-12-032-6/+19
| | | | | Noted by Jason Harris.
* 2004-11-03 Timo Schulz <[email protected]>Timo Schulz2004-11-035-28/+51
| | | | | | | | * 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-032-1/+6
| | | | | iconv.dll is not installed.
* (get_string): Removed debugging hack.Werner Koch2004-10-302-2/+5
|
* * dynload.h: Always use it for _WIN32.Werner Koch2004-10-273-137/+92
| | | | | | | | | | | | | | | | | | | | * 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-272-19/+109
| | | | | | | | | | (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-262-70/+283
| | | | | | | | (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.
* * configure.ac: Remove the check for asprintfWerner Koch2004-10-212-169/+5
| | | | | | | | | | | | | | | | * 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.
* * http.c (connect_server, send_request): Use the URI scheme as the SRV tagDavid Shaw2004-10-182-16/+27
| | | | | rather than hard-coding _hkp.
* * http.c (connect_server): [_WIN32] actually fill in the sin_addr so weDavid Shaw2004-10-162-1/+19
| | | | | | aren't always talking to localhost. Add some general sanity checking of parameters learned from gethostbyname().
* New. Taken from gnupg 1.9.Werner Koch2004-10-152-0/+173
|