Commit Graph

199 Commits

Author SHA1 Message Date
Werner Koch 00ec05898e (lock_pool) [_AIX]: Don't use plock. 2003-10-23 07:38:07 +00:00
David Shaw 90bd542151 * srv.c: OSX 10.2.8/Darwin 6.8 seems to have some #include ordering
issues?  Move sys/types.h up higher to work around.
2003-10-13 03:32:52 +00:00
Werner Koch fcbd46e070 (tty_print_string, tty_print_utf8_string2)
(tty_print_utf8_string): Made string arg const.
2003-10-08 15:20:58 +00:00
Timo Schulz 024bc22231 2003-09-28 Timo Schulz <twoaday@freakmail.de>
* strgutil.c [WIN32] (asprintf): New.
2003-09-28 17:15:46 +00:00
Werner Koch 7c637a098e (tty_fprintf): New. 2003-09-28 13:42:33 +00:00
Timo Schulz 046493fce9 2003-09-21 Timo Schulz <twoaday@freakmail.de>
* http.c [WIN32]: Define MB_CUR_MAX.
        (connect_server): use unsigned long since W32 does not have in_addr_t.
2003-09-21 17:36:51 +00:00
David Shaw cd06705184 * dotlock.c, http.c, iobuf.c, simple-gettext.c, srv.c, srv.h, strgutil.c,
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-08-28 23:29:32 +00:00
David Shaw 68c898372b * http.c (connect_server): Try and use getaddrinfo if it is available.
Try for IPv6 via getaddrinfo() or a IPv6-ized gethostbyname().  Suggested
by Jun-ichiro itojun Hagino.
2003-08-25 02:18:45 +00:00
David Shaw 654276143b * iobuf.c (check_special_filename): Replaced is isdigit by digitp
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.
2003-07-10 12:26:42 +00:00
David Shaw 4d297a7ff1 * srv.h, srv.c: Include windows.h with MINGW32. 2003-05-31 03:15:50 +00:00
David Shaw c84fdfbe62 * argparse.c, dotlock.c, fileutil.c, iobuf.c, miscutil.c,
simple-gettext.c, errors.c, http.c, memory.c, secmem.c, ttyio.c: Edit all
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.
2003-05-24 16:53:14 +00:00
Werner Koch 67a6cd7168 * fileutil.c (is_file_compressed): Fixed checking for "-" filename. 2003-05-21 08:49:03 +00:00
David Shaw 01d6a55b77 * srv.c (main): Test against wwwkeys.pgp.net.
* srv.h: Grr. The RH7.3 Linux man page defines the fourth arg of dn_expand
as unsigned char*, but it is really char* according to resolv.h.
2003-04-13 20:06:09 +00:00
David Shaw 930290698a * argparse.c (default_strusage): Change copyright date. 2003-03-23 16:24:49 +00:00
David Shaw 1995efc728 * srv.h, srv.c (getsrv): Use unsigned char rather than char. Noted by
Stefan Bellon.
2003-03-15 02:28:02 +00:00
David Shaw 81844d2b65 * http.c (connect_server): Use DNS SRV to get a server list. Fail over to
A records if necessary.

* Makefile.am, srv.h, srv.c: New DNS SRV handling code.
2003-03-11 22:04:53 +00:00
David Shaw 2c1e7afe06 * ttyio.c (tty_print_utf8_string, tty_print_utf8_string2): Use 0 to
indicate a string with no maximum size.  This prevents early truncation of
strings that contain control chars which are expanded into \xXX form.
2003-02-22 23:45:28 +00:00
David Shaw 7282f79c2e * iobuf.c (iobuf_flush): Only print debug info if debugging is on. 2002-12-26 20:58:23 +00:00
David Shaw 116bef5e04 * secmem.c (lock_pool) [__CYGWIN__]: Don't print secmem warning. From
Werner on stable branch.
2002-11-13 15:39:10 +00:00
Werner Koch 41fb1aceb7 * ttyio.c (TERMDEVICE): Removed.
(tty_get_ttyname): New.
(init_ttyfp): Use it here instead of the TERMDEVICE macro.
2002-11-09 17:49:01 +00:00
David Shaw d771dd272d * w32reg.c (read_w32_registry_string): Fixed expanding of the environment
buffer; didn't worked at all.  Reported by Thijmen Klok.  From Werner on
stable branch.

* secmem.c (secmem_free, secmem_term): Use wipememory2() instead of
memset() to overwrite secure memory

* iobuf.c (direct_open): Handle mode 'b' if O_BINARY is available. From
Werner on stable branch.

* fileutil.c: Comment from stable branch.
2002-11-06 22:51:44 +00:00
Stefan Bellon 7dac918b6d added RISC OS module loading support 2002-10-31 16:58:47 +00:00
Stefan Bellon e4021a4c95 tidied RISC OS filetype support 2002-10-29 14:37:12 +00:00
Stefan Bellon 557f65836d filetype support for RISC OS 2002-10-28 13:26:44 +00:00
David Shaw 5cc82fc5b8 * Makefile.am, regcomp.c, regex.c, regex_internal.c, regex_internal.h,
regexec.c: Add new regex files from glibc 2.3.1.
2002-10-19 20:24:53 +00:00
David Shaw 9d32f6f06b * http.c (connect_server): Try all A records for names with multiple
addresses until one answers for both MINGW32 and not MINGW32.
2002-10-17 12:45:58 +00:00
David Shaw 4849c0ab7b * http.c (connect_server): Properly handle a single A record that fails
connect().
2002-10-11 02:24:59 +00:00
David Shaw c5180316a2 * logger.c (g10_log_warning, log_set_strict): Add new log_warning logger
command which can be switched between log_info and log_error via
log_set_strict.
2002-10-03 22:10:49 +00:00
David Shaw c5faf2270a * http.c (connect_server): Try all A records for names with multiple
addresses until one answers (not MINGW32).
2002-09-24 21:06:20 +00:00
Werner Koch 6794524789 * w32reg.c (read_w32_registry_string): Fallback to HLM. 2002-09-16 20:37:38 +00:00
Stefan Bellon 3782e1595e updated RISC OS stuff 2002-09-12 16:25:36 +00:00
Werner Koch b4bb5fc072 * simple-gettext.c: Disable charset mappings. We do it now when
installing the files.
2002-09-11 12:57:57 +00:00
Werner Koch 075f862277 * w32reg.c (read_w32_registry_string): Handle REG_EXPAND_SZ.
Suggested by Ryan Malayter.
* strgutil.c (ascii_strcasecmp): Replaced by code from gnulib.
(ascii_strncasecmp): New.
2002-09-10 08:27:38 +00:00
Werner Koch f3484f7844 * strgutil.c (set_native_charset): Allow NULL as argument to use
nl_langinfo for selection.  Mapped latin-15 to latin-1.
2002-09-02 10:58:30 +00:00
Werner Koch c6178bdb69 * iobuf.c (block_filter): Removed the assert, so that one can pass
the first character of a message and use the block filter for
non partial length encoded packets.
2002-08-30 16:37:09 +00:00
Stefan Bellon 181dcc69f4 tidying up RISC OS stuff 2002-08-06 06:54:55 +00:00
Stefan Bellon 5631db0402 RISC OS changes because of dynload removal 2002-08-03 21:53:33 +00:00
Stefan Bellon 582f0d5d98 RISC OS changes due to dynload removal 2002-08-03 18:35:16 +00:00
David Shaw 2610f0ee62 * secmem.c: "Warning" -> "WARNING" 2002-07-25 18:00:00 +00:00
Werner Koch f07463b72c * argparse.c (initialize): We better exit after a read error so
that we don't run into an endless loop when reading a directory.
Noted by Andrew Suffield.
2002-07-05 06:25:14 +00:00
David Shaw fe1495e44e * argparse.c (optfile_parse): Fix variable typo - 'p2' should be 'p' :) 2002-07-01 21:42:41 +00:00
Werner Koch bc46bac1ad * argparse.c (optfile_parse): Renamed an auto I to P2 to avoid
shadowing warning.
2002-06-29 20:46:28 +00:00
David Shaw 3f51f7db3d Update head to match stable 1.0 2002-06-29 13:46:34 +00:00
Werner Koch 613c15be88 Removed the libgcrypt stuff and started to modify the source to work with
that external library.
2000-12-19 18:28:36 +00:00
Werner Koch 93fe596356 This was missing in HEAD. 2000-10-11 08:02:17 +00:00
Werner Koch 986d928ce2 See ChangeLog: Mon Sep 18 16:35:45 CEST 2000 Werner Koch 2000-09-18 14:35:34 +00:00
Werner Koch c9c709545a See ChangeLog: Fri Aug 18 14:27:14 CEST 2000 Werner Koch 2000-08-18 12:23:17 +00:00
Werner Koch d81c3f733b See ChangeLog: Fri Jul 28 18:19:11 CEST 2000 Werner Koch 2000-07-28 16:19:07 +00:00
Werner Koch b872ea2577 See ChangeLog: Tue Jul 25 17:44:15 CEST 2000 Werner Koch 2000-07-25 15:38:12 +00:00
Werner Koch 92cd255508 See ChangeLog: Fri Jul 14 19:38:23 CEST 2000 Werner Koch 2000-07-14 17:34:53 +00:00