Werner Koch
3459c6b015
First set of changes to backport the new card code from 2.0.
...
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-07-21 14:30:13 +00:00
David Shaw
e8436d575e
Avoid caches to get the most recent copy of the key. This is bug
...
#1061
2009-05-26 14:15:56 +00:00
Werner Koch
0bbe6eda34
Fixed bug1058.
2009-05-22 15:38:49 +00:00
Werner Koch
418e61a824
Improve dotlocking.
...
Implement locking for W32.
2009-05-05 15:32:16 +00:00
Werner Koch
631a0de335
Backport of Creation-Date parameter for unattended key generation.
2009-05-05 11:44:56 +00:00
David Shaw
2933e3d094
* srv.h: Move to include/srv.h.
...
* http.c (send_request): Pass in srvtag... (http_open): ...from here.
2009-04-06 03:18:07 +00:00
David Shaw
a929f4c78e
* curl-shim.h, curl-shim.c (curl_easy_setopt, curl_easy_perform): Add
...
a CURLOPT_SRVTAG_GPG_HACK (passed through the the http engine).
* http.h: Allow passing srvtag to http_open and http_open_document.
* http.c (http_open, http_open_document): Allow passing srvtag to
http_open and http_open_document.
2009-04-03 03:59:07 +00:00
David Shaw
a5b708ba9c
* http.c (connect_server): free (rather than xfree) the result of
...
getsrv().
2009-04-03 03:38:59 +00:00
David Shaw
0f8b0fc195
* Makefile.am: Make srv.c part of libcompat instead of libutil.
...
* srv.c (getsrv): Raise maximum packet size to 2048, as PACKETSZ is
too small these days. Use libc malloc and free as we're part of
libcompat now which may not be linked to memory.c.
2009-04-03 03:33:57 +00:00
David Shaw
da66b1d69e
* iobuf.c (fd_cache_synchronize): New. fsync() a file in cache.
...
(iobuf_ioctl): Called here, for ioctl 4. (fd_cache_invalidate): Pass
return code from close() back to iobuf_ioctl().
2009-03-20 20:33:14 +00:00
David Shaw
f801e0f9a8
* http.c (do_parse_uri): Properly handle IPv6 literal addresses as per
...
RFC-2732. Adapted from patch by Phil Pennock.
2009-03-13 17:51:05 +00:00
David Shaw
81723b397a
* Makefile.am, http.c (start_server): Minor tweaks to get http-test
...
compiling again.
2009-03-13 17:27:35 +00:00
David Shaw
564436af6f
* Makefile.am: Use $(CC) instead of "cc" to compile, as the user might
...
be overriding the compiler.
2008-09-05 21:01:17 +00:00
Werner Koch
6ae5af5d7a
Fix possible NULL argument to printf
2008-08-19 19:36:04 +00:00
David Shaw
3f4fb20cc3
* argparse.c (default_strusage): Update copyright date.
2008-03-06 17:22:41 +00:00
Werner Koch
aa9aec7068
Comment typ fixes.
...
Workaround for bad translations of the capability menu.
2007-12-03 14:41:38 +00:00
Werner Koch
9a2a818887
Switched to GPLv3.
...
Updated gettext.
2007-10-23 10:48:09 +00:00
Werner Koch
d1a13319bb
Improved detection of ketrings specified several times.
2007-08-24 09:51:58 +00:00
David Shaw
20af3fea15
Move some ascii_foo functions to libcompat
2007-04-16 22:32:28 +00:00
Werner Koch
d54ee32837
util/
...
* secmem.c (init_pool): Avoid assigning a negative value to a
size_t.
./
* acinclude.m4: Fix last change. Make test self-conatined by
checking for sysconf and getpagesize. Remove indentation for the
sake of broken C-89 cpps.
2007-04-16 15:37:45 +00:00
David Shaw
3a2e31ff19
Use sysconf() when possible as not all platforms have getpagesize().
2007-04-16 13:37:09 +00:00
David Shaw
0b677ba499
* argparse.c (default_strusage): Copyright 2007.
...
* cert.c, srv.c, pka.c: Need arpa/inet.h for ntohs().
2007-04-15 16:37:01 +00:00
Werner Koch
958c2a6f69
[W32] Make use of the LANGUAGE envvar.
2007-02-26 14:26:32 +00:00
Werner Koch
22be39dfac
* secmem.c (ptr_into_pool_p): New.
...
(m_is_secure): Implement in terms of above. Also check that the
pool has been initialized.
2007-02-12 14:13:37 +00:00
David Shaw
f6e12f4b46
* http.c (do_parse_uri): Remove the hkp port 11371 detection. We
...
implement hkp in the keyserver handler, and the support here makes it
appear like a bad hkp request actually succeeded.
2007-02-11 03:10:12 +00:00
David Shaw
67c18b8c3c
* ttyio.c (do_get): Assume that anything read from the user without
...
echoing to the screen is sensitive and put it in secure memory.
Suggested by Benjamin Bennett.
2007-02-01 04:21:07 +00:00
Werner Koch
60044dd11b
Fix bug#739 (proxy/shutdown)
2006-12-14 09:55:32 +00:00
David Shaw
4739851ef4
* strsep.c (strsep): It's strsep, not strsep2 from testing. (If I had
...
a dollar for every time I've done that...)
2006-10-03 00:36:18 +00:00
David Shaw
6f32b4e4d1
Move strsep() and ascii_isspace() to libcompat.
2006-09-28 19:53:17 +00:00
David Shaw
b17fcc5d51
Put in the basic wiring (just hextobyte for now) for a libcompat.a that
...
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-09-28 19:36:55 +00:00
Werner Koch
064a4a6240
Fixed bug 479. Not a real good fix but a reliable one which limits possible
...
breakage of other partys of the code.
2006-07-31 10:16:33 +00:00
Marcus Brinkmann
bd5aa4864d
2006-07-29 Marcus Brinkmann <marcus@g10code.de>
...
* secmem.c (init_pool): Close FD after establishing the mapping.
2006-07-29 00:09:24 +00:00
David Shaw
4fbf91ad9e
* http.c (send_request): A zero-length proxy is the same as no proxy at
...
all. Suggested by J. Scott Berg.
2006-07-20 22:26:29 +00:00
David Shaw
975da08004
* configure.ac: Fix resolver autoconf code so it works (fails)
...
properly with uClibc.
2006-07-08 23:29:25 +00:00
Werner Koch
a3883eb71d
About to do a new release
2006-06-25 12:03:38 +00:00
David Shaw
45c1414a2f
* miscutil.c (make_printable_string): Fix bug where some control
...
characters lose part of their ASCII representation.
2006-04-17 20:54:15 +00:00
David Shaw
8df71cf868
* memory.c (realloc): Revert m_guard fix and stick an #error in there to
...
inform people not to use it.
2006-04-11 19:45:44 +00:00
Werner Koch
168583e596
Add new regression test
2006-04-11 07:49:25 +00:00
David Shaw
4af2725d32
* memory.c (realloc): Fix compile problem with --enable-m-guard.
2006-04-06 17:58:13 +00:00
David Shaw
f99dec9e53
* cert.c (main): Fix test program build warning on OSX.
2006-03-30 14:13:35 +00:00
David Shaw
e0ad2bda52
* cert.c (get_cert): Handle the fixed IPGP type with fingerprint.
2006-03-16 22:40:04 +00:00
David Shaw
cc9a71c6ce
* argparse.c (default_strusage): Update copyright year to 2006.
2006-03-09 03:31:28 +00:00
David Shaw
ca6c57bc8a
* http.c (send_request): A zero length proxy is the same as no proxy.
2006-02-19 21:03:01 +00:00
Werner Koch
966cd80d88
Fixed a wrong return code with gpg --verify
2006-02-14 10:17:57 +00:00
David Shaw
23cfe019e9
* cert.c (get_cert): Disable IPGP types for now until the format questions
...
in the draft are settled.
* srv.c (getsrv): Error on oversize SRV responses.
2006-01-26 16:51:04 +00:00
David Shaw
74117cf4d3
* cert.c (get_cert): Properly chase down CNAMEs pointing to CERTs.
2005-12-24 15:35:39 +00:00
David Shaw
7f13d486b0
New code to do DNS CERT queries.
2005-12-23 18:15:24 +00:00
David Shaw
5e08b08da8
* srv.c, Makefile.am: Only build srv.c if we need to.
2005-12-23 05:00:55 +00:00
David Shaw
b12d50dccd
* ttyio.c (tty_enable_completion, tty_disable_completion): Add checks
...
for no_terminal so we don't try to open("/dev/tty") when invoked with
--no-tty.
2005-12-12 03:56:01 +00:00
David Shaw
bc1c4af8c3
Some cleanup so we don't build files that are completely ifdeffed out.
...
This causes a warning on Sun's cc. Do the internal regex code as well for
consistency.
2005-12-06 20:54:05 +00:00