aboutsummaryrefslogtreecommitdiffstats
path: root/keyserver (follow)
Commit message (Collapse)AuthorAgeFilesLines
* keyserver: Allow use of cURL's default CA store.Werner Koch2013-10-042-3/+5
| | | | | | | | | | * keyserver/gpgkeys_curl.c (main): Set CURLOPT_CAINFO only if a file has been given. * keyserver/gpgkeys_hkp.c (main): Ditto. -- GnuPG-bug-id: 1542 Signed-off-by: Werner Koch <[email protected]>
* w32: Almost everywhere include winsock2.h before windows.h.Werner Koch2013-04-232-23/+29
| | | | | | | | | | | -- This is required by newer mingw toolchain versions which demand that winsock2.h is included before windows.h. Now, due to the use of socket definitions in pth.h we need to include winsock2.h also in pth.h, now pth.h is often included after an include of windows.h and thus the compiler spits out a warning. To avoid that we include winsock2.h at all places the compiler complains about.
* Allow building gpgkeys_ldap with the 32 bit mingw-w64 toolchain.Werner Koch2013-04-231-1/+16
| | | | | | | | | | | | * keyserver/gpgkeys_ldap.c (my_ldap_start_tls_s): Define macro depending on compiler version. (main): Use new macro. -- It seems that the LDAP keyserver helper if build with the old mingw32 toolchain never worked correctly for LDAPS. The prototype there for ldap_start_tls_s is plainly wrong for Windows. However, the fix here has special support so not to break building with the old compiler.
* Differentiate between success (full or partial), not-found, and failure.David Shaw2013-03-031-11/+76
| | | | | | * keyserver/gpgkeys_hkp.c (get_key): Use curl_easy_setinfo to get the HTTP status code so we can tell the difference between a successful retrieval, a partial retrieval, a not-found, or a server failed.
* Emulate curl_easy_getinfo and CURLINFO_RESPONSE_CODE in curl-shim.David Shaw2013-03-032-3/+31
| | | | | * keyserver/curl-shim.h, keyserver/curl-shim.c (curl_easy_getinfo): New. Return the HTTP status code for the last transfer.
* Make sure srvcount is initialized.David Shaw2012-12-201-0/+2
| | | | * keyserver/gpgkeys_hkp.c (srv_replace): Initialize srvcount.
* Fixed indentation and indented cpp directivesWerner Koch2012-12-191-17/+19
| | | | --
* No point in defaulting try-dns-srv to on if we don't have SRV support.David Shaw2012-12-181-1/+8
| | | | | * keyserver/gpgkeys_hkp.c (main): Only default try-dns-srv to on if we have SRV support in the first place.
* Issue 1447: Pass proper Host header and SNI when SRV is used with curl.David Shaw2012-12-181-29/+104
| | | | | | | | | | | | * configure.ac: Check for inet_ntop. * m4/libcurl.m4: Provide a #define for the version of the curl library. * keyserver/gpgkeys_hkp.c (main, srv_replace): Call getaddrinfo() on each target. Once we find one that resolves to an address (whether IPv4 or IPv6), pass it into libcurl via CURLOPT_RESOLVE using the SRV name as the "host". Force the HTTP Host header to be the same.
* Fix issue 1446: honor ports given in SRV responses.David Shaw2012-12-152-9/+34
| | | | | | | | | | | | * common/http.c (send_request, connect_server, http_open): Use a struct srv instead of a single srvtag so we can pass the chosen host and port back to the caller. (connect_server): Use the proper port in the HAVE_GETADDRINFO case. * keyserver/curl-shim.c (curl_easy_perform): Use struct srv and log chosen host and port. * keyserver/gpgkeys_hkp.c (main): Properly take the port given by SRV.
* Use the longest key ID available when talking to a HKP server.David Shaw2011-12-281-7/+13
| | | | | | This is issue 1340. Now that PKSD is dead, and SKS supports long key IDs, this is safe to do. Patch from Daniel Kahn Gillmor <[email protected]>.
* Generate the ChangeLog from commit logs.Werner Koch2011-12-022-12/+21
| | | | | | | | | | | | | | | * scripts/gitlog-to-changelog: New script. Taken from gnulib. * scripts/git-log-fix: New file. * scripts/git-log-footer: New file. * scripts/git-hooks/commit-msg: New script. * autogen.sh: Install commit-msg hook for git. * doc/HACKING: Describe the ChangeLog policy. * ChangeLog: New file. * Makefile.am (EXTRA_DIST): Add new files. (gen-ChangeLog): New. (dist-hook): Run gen-ChangeLog. Rename all ChangeLog files to ChangeLog-2011.
* Make use of strconcat to make the code more robust against future changes.Werner Koch2009-08-262-41/+55
|
* Expand a ~ in the ca-cert-file argument.Werner Koch2009-08-262-1/+7
|
* * gpgkeys_hkp.c (main, srv_replace): Minor tweaks to use the DNS-SDDavid Shaw2009-07-082-5/+23
| | | | | | names ("pgpkey-http" and "pgpkey-https") in SRV lookups instead of "hkp" and "hkps".
* Fixed a bunch of little bugs as reported by Fabian Keil.Werner Koch2009-06-242-6/+13
| | | | | Still one problem left; marked with a gcc #warning.
* Avoid caches to get the most recent copy of the key. This is bug #1061David Shaw2009-05-285-5/+105
|
* * http.h, http.c (send_request): Pass in srvtag and make its presenceDavid Shaw2009-05-284-20/+99
| | | | | | | | | | | | | sufficient to turn the feature on. (http_open): From here. (http_document): And here. * gpgkeys_hkp.c (srv_replace): New function to transform a SRV hostname to a real hostname. (main): Call it from here for the HAVE_LIBCURL case (without libcurl is handled via the curl-shim). * curl-shim.h, curl-shim.c (curl_easy_setopt, curl_easy_perform): Add a CURLOPT_SRVTAG_GPG_HACK (passed through the the http engine).
* * gpgkeys_hkp.c (send_key, get_key, get_name, search_key, main): AddDavid Shaw2009-05-112-23/+39
| | | | | support for SSLized HKP.
* From 1.4:David Shaw2009-05-116-16/+35
| | | | | | | | | | | | * curl-shim.h (curl_version): No need to provide a version for curl-shim as it always matches the GnuPG version. * gpgkeys_curl.c, gpgkeys_hkp.c (main): Show which version of curl we're using as part of --version. * gpgkeys_curl.c, gpgkeys_finger.c, gpgkeys_hkp.c, gpgkeys_ldap.c (show_help): Document --version.
* * gpgkeys_mailto.in: Set 'mail-from' as a keyserver-option, ratherDavid Shaw2009-05-052-27/+20
| | | | | than the ugly ?from= syntax.
* New scd getinfo subcommand deny_adminWerner Koch2009-02-121-1/+1
|
* Add a Geldkarte gadget application.Werner Koch2009-01-272-5/+15
| | | | | Minor other changes.
* Marked all unused args on non-W32 platforms.Werner Koch2008-10-202-0/+8
|
* Fix gpg-preset-passphrase bug.Werner Koch2008-09-032-1/+5
| | | | | Cleanups
* Fixed bug#907.Werner Koch2008-05-061-1/+4
| | | | | Fixed a segv in keybox and made it more robust.
* W32 related keyserver fixes.Werner Koch2008-04-215-39/+42
|
* * gpgkeys_curl.c (main), gpgkeys_hkp.c (main): Make sure all libcurlDavid Shaw2008-04-144-13/+21
| | | | | | | | number options are passed as long. * curl-shim.c (curl_easy_setopt): Minor tweak to match the real curl better - libcurl uses 'long', not 'unsigned int'.
* Allow requesting TCP queries.Werner Koch2008-04-071-15/+21
|
* Minor cleanups.Werner Koch2008-04-074-3/+454
| | | | | Implemented key helper kdns
* Changed the way i18n files are located under Windows. The setting of theWerner Koch2008-03-252-2/+7
| | | | | Registry key is not anymore required. Helpfiles are not properly located.
* Ported changes from 1.4.Werner Koch2007-10-252-9/+30
| | | | | Add copyright notices.
* Changed to GPLv3.Werner Koch2007-07-0411-44/+22
| | | | | Removed intl/.
* A whole bunch of changes to allow building for Windows.Werner Koch2007-06-142-6/+12
| | | | | See the ChangeLogs for details.
* First steps towards supporting W32.Werner Koch2007-06-062-13/+19
| | | | | | | This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
* Upgraded gettext.Werner Koch2007-05-072-1/+6
| | | | | Fixed accidental dependency on libgcrypt 1.3.0.
* Fixed installation of gpg2keys_mailtoWerner Koch2007-05-044-5/+13
|
* From STABLE-BRANCH-1-4David Shaw2007-03-144-6/+45
| | | | | | | | | | * gpgkeys_curl.c (main): Use curl_version_info to verify that the protocol we're about to use is actually available. * curl-shim.h, curl-shim.c (curl_free): Make into a macro. (curl_version_info): New. Only advertises "http" for our shim, of course.
* From STABLE-BRANCH-1-4David Shaw2007-03-103-1/+18
| | | | | | | | * gpgkeys_ldap.c (send_key): Missing a free(). * curl-shim.c (curl_easy_perform): Some debugging items that may be handy.
* * gpgkeys_hkp.c (search_key): HKP keyservers like the 0x to be presentDavid Shaw2006-12-032-0/+11
| | | | | when searching by keyID.
* Preparing 2.0.1rc1Werner Koch2006-11-232-1/+6
|
* No more warnings for AMD64 (at least when cross-compiling). Thus tehre is aWerner Koch2006-11-212-1/+7
| | | | | | | good chance that gpg2 will now work. Other cleanups. Updated gettext.
* * gpgkeys_hkp.c (curl_mrindex_writer): Revert previous change.David Shaw2006-11-062-5/+8
| | | | | Key-not-found still has a HTML response.
* 2006-10-24 Marcus Brinkmann <[email protected]>Marcus Brinkmann2006-10-242-1/+6
| | | | | | * Makefile.am (gpg2keys_ldap_CPPFLAGS): Rename second instance to ... (gpg2keys_finger_CPPFLAGS): ... this.
* .Werner Koch2006-10-232-8/+12
|
* * gpgkeys_hkp.c (curl_mrindex_writer): Print a warning if we see HTMLDavid Shaw2006-10-202-1/+9
| | | | | coming back from a MR hkp query.
* Pth tweaks and improved estream.cWerner Koch2006-10-172-4/+9
|
* Made buliding w/o curl workWerner Koch2006-09-264-39/+25
|
* Improved yat2m.Werner Koch2006-09-222-16/+9
| | | | | Tweaked gpg.texti to be used for gpg1 and gpg2.
* Clarified cURL and OpenLDAP license issues.Werner Koch2006-09-2210-17/+178
| | | | | Made readline support work.