aboutsummaryrefslogtreecommitdiffstats
path: root/keyserver (unfollow)
Commit message (Collapse)AuthorFilesLines
2013-10-04keyserver: Allow use of cURL's default CA store.Werner Koch2-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]>
2013-04-23w32: Almost everywhere include winsock2.h before windows.h.Werner Koch2-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.
2013-04-23Allow building gpgkeys_ldap with the 32 bit mingw-w64 toolchain.Werner Koch1-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.
2013-03-03Differentiate between success (full or partial), not-found, and failure.David Shaw1-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.
2013-03-03Emulate curl_easy_getinfo and CURLINFO_RESPONSE_CODE in curl-shim.David Shaw2-3/+31
* keyserver/curl-shim.h, keyserver/curl-shim.c (curl_easy_getinfo): New. Return the HTTP status code for the last transfer.
2012-12-20Make sure srvcount is initialized.David Shaw1-0/+2
* keyserver/gpgkeys_hkp.c (srv_replace): Initialize srvcount.
2012-12-19Fixed indentation and indented cpp directivesWerner Koch1-17/+19
--
2012-12-18No point in defaulting try-dns-srv to on if we don't have SRV support.David Shaw1-1/+8
* keyserver/gpgkeys_hkp.c (main): Only default try-dns-srv to on if we have SRV support in the first place.
2012-12-18Issue 1447: Pass proper Host header and SNI when SRV is used with curl.David Shaw1-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.
2012-12-15Fix issue 1446: honor ports given in SRV responses.David Shaw2-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.
2011-12-28Use the longest key ID available when talking to a HKP server.David Shaw1-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]>.
2011-12-02Generate the ChangeLog from commit logs.Werner Koch2-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.
2009-08-26Make use of strconcat to make the code more robust against future changes.Werner Koch2-41/+55
2009-08-26Expand a ~ in the ca-cert-file argument.Werner Koch2-1/+7
2009-07-08* gpgkeys_hkp.c (main, srv_replace): Minor tweaks to use the DNS-SDDavid Shaw2-5/+23
names ("pgpkey-http" and "pgpkey-https") in SRV lookups instead of "hkp" and "hkps".
2009-06-24Fixed a bunch of little bugs as reported by Fabian Keil.Werner Koch2-6/+13
Still one problem left; marked with a gcc #warning.
2009-05-28Avoid caches to get the most recent copy of the key. This is bug #1061David Shaw5-5/+105
2009-05-28* http.h, http.c (send_request): Pass in srvtag and make its presenceDavid Shaw4-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).
2009-05-11* gpgkeys_hkp.c (send_key, get_key, get_name, search_key, main): AddDavid Shaw2-23/+39
support for SSLized HKP.
2009-05-11From 1.4:David Shaw6-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.
2009-05-05* gpgkeys_mailto.in: Set 'mail-from' as a keyserver-option, ratherDavid Shaw2-27/+20
than the ugly ?from= syntax.
2009-02-12New scd getinfo subcommand deny_adminWerner Koch1-1/+1
2009-01-27Add a Geldkarte gadget application.Werner Koch2-5/+15
Minor other changes.
2008-10-20Marked all unused args on non-W32 platforms.Werner Koch2-0/+8
2008-09-03Fix gpg-preset-passphrase bug.Werner Koch2-1/+5
Cleanups
2008-05-06Fixed bug#907.Werner Koch1-1/+4
Fixed a segv in keybox and made it more robust.
2008-04-21W32 related keyserver fixes.Werner Koch5-39/+42
2008-04-14* gpgkeys_curl.c (main), gpgkeys_hkp.c (main): Make sure all libcurlDavid Shaw4-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'.
2008-04-07Allow requesting TCP queries.Werner Koch1-15/+21
2008-04-07Minor cleanups.Werner Koch4-3/+454
Implemented key helper kdns
2008-03-25Changed the way i18n files are located under Windows. The setting of theWerner Koch2-2/+7
Registry key is not anymore required. Helpfiles are not properly located.
2007-10-25Ported changes from 1.4.Werner Koch2-9/+30
Add copyright notices.
2007-07-04Changed to GPLv3.Werner Koch11-44/+22
Removed intl/.
2007-06-14A whole bunch of changes to allow building for Windows.Werner Koch2-6/+12
See the ChangeLogs for details.
2007-06-06First steps towards supporting W32.Werner Koch2-13/+19
This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
2007-05-07Upgraded gettext.Werner Koch2-1/+6
Fixed accidental dependency on libgcrypt 1.3.0.
2007-05-04Fixed installation of gpg2keys_mailtoWerner Koch4-5/+13
2007-03-14From STABLE-BRANCH-1-4David Shaw4-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.
2007-03-10From STABLE-BRANCH-1-4David Shaw3-1/+18
* gpgkeys_ldap.c (send_key): Missing a free(). * curl-shim.c (curl_easy_perform): Some debugging items that may be handy.
2006-12-03* gpgkeys_hkp.c (search_key): HKP keyservers like the 0x to be presentDavid Shaw2-0/+11
when searching by keyID.
2006-11-23Preparing 2.0.1rc1Werner Koch2-1/+6
2006-11-21No more warnings for AMD64 (at least when cross-compiling). Thus tehre is aWerner Koch2-1/+7
good chance that gpg2 will now work. Other cleanups. Updated gettext.
2006-11-06* gpgkeys_hkp.c (curl_mrindex_writer): Revert previous change.David Shaw2-5/+8
Key-not-found still has a HTML response.
2006-10-242006-10-24 Marcus Brinkmann <[email protected]>Marcus Brinkmann2-1/+6
* Makefile.am (gpg2keys_ldap_CPPFLAGS): Rename second instance to ... (gpg2keys_finger_CPPFLAGS): ... this.
2006-10-23.Werner Koch2-8/+12
2006-10-20* gpgkeys_hkp.c (curl_mrindex_writer): Print a warning if we see HTMLDavid Shaw2-1/+9
coming back from a MR hkp query.
2006-10-17Pth tweaks and improved estream.cWerner Koch2-4/+9
2006-09-26Made buliding w/o curl workWerner Koch4-39/+25
2006-09-22Improved yat2m.Werner Koch2-16/+9
Tweaked gpg.texti to be used for gpg1 and gpg2.
2006-09-22Clarified cURL and OpenLDAP license issues.Werner Koch10-17/+178
Made readline support work.