aboutsummaryrefslogtreecommitdiffstats
path: root/util (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Allow building with the 32 bit mingw-w64 toolchain.Werner Koch2012-01-121-0/+4
| | | | | | | | | | | | | | | | * scripts/autogen.sh <--build-w32>: Support i686-w64-mingw32 and use it by default if installed. * keyserver/gpgkeys_ldap.c (my_ldap_start_tls_s): Define macro depending on compiler version. (main): Use new macro. * util/miscutil.c [!HAVE_TIMEGM]: Add prototype for the timegm autoconf replacement function. -- It seems that the LDAP keyserver helper build with the old mingw32 toolchain never worked correctly for LDAPS. The prototype there for ldap_start_tls_s is plainly wrong for Windows. Anyway I included special support so not to break building with the old compiler.
* Replace file locking by the new portable dotlock code.Werner Koch2012-01-101-436/+1119
| | | | | | | | | | | | | * include/dotlock.h: New. From current gnupg master. * util/dotlock.c: Ditto. Include util.h. The major changes done in master are: Factor Unix and W32 specific code out into specific functions. Define HAVE_POSIX_SYSTEM. Rearrange some functions. (disable_dotlock): Rename to dotlock_disable. (create_dotlock): Rename to dotlock_create and add a dummy arg. (destroy_dotlock): Rename to dotlock_destroy. (make_dotlock): Rename to dotlock_take. (release_dotlock): Rename to dotlock_release. (remove_lockfiles): Rename to dotlock_remove_lockfiles.
* Update copyright years.Werner Koch2012-01-101-3/+3
| | | | * util/argparse.c (default_strusage): Update printed copyright year.
* Use gcc pragmas to suppress some warnings.Werner Koch2012-01-102-101/+119
| | | | | | | | | * configure.ac (AH_BOTTOM): Add GNUPG_GCC_VERSION macro. * util/estream-printf.c (pr_float): Use new gcc pragma to ignore a warning about a non-literal format. * util/miscutil.c (asctimestamp): Ditto. * cipher/md.c (md_stop_debug): Use new gcc pragme to ignore a warning * about a set but unused variable.
* Rename all ChangeLog files to ChangeLog-2011.Werner Koch2011-12-021-5/+10
| | | | * ChangeLog: New file.
* On VMS use --batch by default if in batch mode.Werner Koch2011-09-122-5/+13
| | | | | | This problem was identified and solved by Steven M. Schweda. Note that the vms specific code is not part of this repository. See http://antinode.info/dec/sw/gnupg.html for the VMS port.
* Removed some set but unused vars.Werner Koch2011-08-092-3/+2
|
* Fix bug#1307Werner Koch2011-08-092-35/+45
| | | | | This is a backport of the fixes for 2.0. There is only one real bug, the other changes are for clarity and for more picky compilers.
* Detect unsigned time_t and adjust y2038 detection.Werner Koch2010-10-272-5/+18
|
* The rest of the VMS changes.Werner Koch2010-09-284-3/+35
|
* Minor changes to help the VMS portWerner Koch2010-09-285-14/+92
|
* Preparing a release candidateWerner Koch2010-09-231-1/+1
|
* Fix bug 1179Werner Koch2010-05-121-1/+1
|
* Fix a W32 problemWerner Koch2009-09-034-5/+21
|
* Update zH_TW and check for stdint.hWerner Koch2009-09-032-337/+24
|
* Restructured the compat functions and changed its license.Werner Koch2009-08-252-0/+113
| | | | | New fucntion xstrconcat for future use.
* Fix compiler size warning for debug outputWerner Koch2009-08-182-1/+4
|
* * miscutil.c (print_string2): Loose check for control charactersWerner Koch2009-08-182-1/+8
| | | | | | to better cope with utf-8. The range 0x80..0x9f is nowadays not anymore accidently used for control charaters. Fixes bug#1103.
* Try and detect mis-coded Latin1 and convert it to UTF8. Whether theDavid Shaw2009-08-122-0/+76
| | | | | | heuristics succeed or not, the resulting string must be valid UTF8 as LDAP requires that. This is bug 1055.
* * srv.c (getsrv): Fix type-punning warning. (main): Allow testing anyDavid Shaw2009-07-232-3/+15
| | | | | SRV.
* First set of changes to backport the new card code from 2.0.Werner Koch2009-07-217-115/+2467
| | | | | | | | 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.
* Avoid caches to get the most recent copy of the key. This is bugDavid Shaw2009-05-262-7/+27
| | | | | #1061
* Fixed bug1058.Werner Koch2009-05-222-0/+12
|
* Improve dotlocking.Werner Koch2009-05-052-211/+386
| | | | | Implement locking for W32.
* Backport of Creation-Date parameter for unattended key generation.Werner Koch2009-05-052-0/+55
|
* * srv.h: Move to include/srv.h.David Shaw2009-04-063-53/+13
| | | | | * http.c (send_request): Pass in srvtag... (http_open): ...from here.
* * curl-shim.h, curl-shim.c (curl_easy_setopt, curl_easy_perform): AddDavid Shaw2009-04-032-6/+9
| | | | | | | | | | 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.
* * http.c (connect_server): free (rather than xfree) the result ofDavid Shaw2009-04-032-2/+7
| | | | | getsrv().
* * Makefile.am: Make srv.c part of libcompat instead of libutil.David Shaw2009-04-033-14/+24
| | | | | | | * 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.
* * iobuf.c (fd_cache_synchronize): New. fsync() a file in cache.David Shaw2009-03-202-8/+60
| | | | | | (iobuf_ioctl): Called here, for ioctl 4. (fd_cache_invalidate): Pass return code from close() back to iobuf_ioctl().
* * http.c (do_parse_uri): Properly handle IPv6 literal addresses as perDavid Shaw2009-03-132-6/+20
| | | | | RFC-2732. Adapted from patch by Phil Pennock.
* * Makefile.am, http.c (start_server): Minor tweaks to get http-testDavid Shaw2009-03-133-8/+14
| | | | | compiling again.
* * Makefile.am: Use $(CC) instead of "cc" to compile, as the user mightDavid Shaw2008-09-052-4/+9
| | | | | be overriding the compiler.
* Fix possible NULL argument to printfWerner Koch2008-08-192-13/+27
|
* * argparse.c (default_strusage): Update copyright date.David Shaw2008-03-062-3/+7
|
* Comment typ fixes.Werner Koch2007-12-031-1/+1
| | | | | Workaround for bad translations of the capability menu.
* Switched to GPLv3.Werner Koch2007-10-2340-175/+115
| | | | | Updated gettext.
* Improved detection of ketrings specified several times.Werner Koch2007-08-242-23/+95
|
* Move some ascii_foo functions to libcompatDavid Shaw2007-04-163-70/+75
|
* util/Werner Koch2007-04-162-5/+12
| | | | | | | | | | | * 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.
* Use sysconf() when possible as not all platforms have getpagesize().David Shaw2007-04-162-5/+14
|
* * argparse.c (default_strusage): Copyright 2007.David Shaw2007-04-155-6/+15
| | | | | * cert.c, srv.c, pka.c: Need arpa/inet.h for ntohs().
* [W32] Make use of the LANGUAGE envvar.Werner Koch2007-02-262-71/+135
|
* * secmem.c (ptr_into_pool_p): New.Werner Koch2007-02-122-1/+24
| | | | | | | (m_is_secure): Implement in terms of above. Also check that the pool has been initialized.
* * http.c (do_parse_uri): Remove the hkp port 11371 detection. WeDavid Shaw2007-02-112-2/+6
| | | | | | implement hkp in the keyserver handler, and the support here makes it appear like a bad hkp request actually succeeded.
* * ttyio.c (do_get): Assume that anything read from the user withoutDavid Shaw2007-02-012-1/+8
| | | | | | echoing to the screen is sensitive and put it in secure memory. Suggested by Benjamin Bennett.
* Fix bug#739 (proxy/shutdown)Werner Koch2006-12-142-2/+10
|
* * strsep.c (strsep): It's strsep, not strsep2 from testing. (If I hadDavid Shaw2006-10-032-1/+6
| | | | | a dollar for every time I've done that...)
* Move strsep() and ascii_isspace() to libcompat.David Shaw2006-09-283-50/+50
|
* Put in the basic wiring (just hextobyte for now) for a libcompat.a thatDavid Shaw2006-09-284-28/+44
| | | | | | | 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.