aboutsummaryrefslogtreecommitdiffstats
path: root/common/http.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2012-06-05Change all quotes in strings and comments to the new GNU standard.Werner Koch1-9/+9
The asymmetric quotes used by GNU in the past (`...') don't render nicely on modern systems. We now use two \x27 characters ('...'). The proper solution would be to use the correct Unicode symmetric quotes here. However this has the disadvantage that the system requires Unicode support. We don't want that today. If Unicode is available a generated po file can be used to output proper quotes. A simple sed script like the one used for en@quote is sufficient to change them. The changes have been done by applying sed -i "s/\`\([^'\`]*\)'/'\1'/g" to most files and fixing obvious problems by hand. The msgid strings in the po files were fixed with a similar command.
2012-04-20Change license for some files in common to LGPLv3+/GPLv2+.Werner Koch1-5/+15
Having the LGPL on the common GnuPG code helps to share code between GnuPG and related projects (like GPGME and Libassuan). This is good for interoperability and to reduces bugs. * common/asshelp.c, common/asshelp.h, common/asshelp2.c, common/b64dec.c * common/b64enc.c, common/convert.c, common/dns-cert.c * common/dns-cert.h common/exechelp-posix.c, common/exechelp-w32.c * common/exechelp-w32ce.c, common/exechelp.h, common/get-passphrase.c * common/get-passphrase.h, common/gettime.c, common/gpgrlhelp.c * common/helpfile.c, common/homedir.c, common/http.c, common/http.h * common/i18n.c, common/init.c, common/init.h, common/iobuf.c * common/iobuf.h, common/localename.c, common/membuf.c, common/membuf.h * common/miscellaneous.c, common/openpgp-oid.c, common/openpgpdefs.h * common/percent.c, common/pka.c, common/pka.h, common/session-env.c * common/session-env.h, common/sexp-parse.h, common/sexputil.c * common/signal.c, common/srv.c, common/srv.h, common/ssh-utils.c * common/ssh-utils.h, common/sysutils.c, common/sysutils.h * common/tlv.c, common/tlv.h, common/ttyio.c, common/ttyio.h * common/userids.c, common/userids.h, common/xasprintf.c: Change license to LGPLv3+/GPLv2+/
2012-02-07common: Replace macro based function calls by using DEFAULT_ERRSOURCE.Werner Koch1-52/+52
* common/dns-cert.h (get_dns_cert): Remove macro. * common/dns-cert.c (_get_dns_cert): Rename to get_dns_cert. Replace arg ERRSOURCE by global DEFAULT_ERRSOURCE. * common/http.h (http_parse_uri, http_raw_connect, http_open) (http_open_document, http_wait_response): Remove macros. * common/http.c (_http_parse_uri, _http_raw_connect, _http_open) (_http_open_document, _http_wait_response): Remove underscore from symbols. Replace args ERRSOURCE by global DEFAULT_ERRSOURCE. * common/ssh-utils.h (ssh_get_fingerprint) (ssh_get_fingerprint_string): Remove macros. * common/ssh-utils.h (_ssh_get_fingerprint) (_ssh_get_fingerprint_string): Remove underscore from symbols. Replace args ERRSOURCE by global DEFAULT_ERRSOURCE. * common/tlv.h (parse_ber_header, parse_sexp): Remove macros. * common/tlv.c: Include util.h. (_parse_ber_header, _parse_sexp): Remove underscore from symbols. Replace args ERRSOURCE by global DEFAULT_ERRSOURCE.
2012-01-25Port to npth.Marcus Brinkmann1-11/+11
* configure.ac: Don't check for PTH but for NPTH. (AH_BOTTOM): Remove PTH_SYSCALL_SOFT. (have_pth): Rename to ... (have_npth): ... this. (USE_GNU_NPTH): Rename to ... (USE_GNU_PTH): ... this. * m4/npth.m4: New file. * agent/Makefile.am, agent/cache.c, agent/call-pinentry.c, agent/call-scd.c, agent/findkey.c, agent/gpg-agent.c, agent/trustlist.c, common/Makefile.am, common/estream.c, common/exechelp-posix.c, common/exechelp-w32.c, common/exechelp-w32ce.c, common/http.c, common/init.c, common/sysutils.c, dirmngr/Makefile.am, dirmngr/crlfetch.c, dirmngr/dirmngr.c, dirmngr/dirmngr_ldap.c, dirmngr/ldap-wrapper-ce.c, dirmngr/ldap-wrapper.c, dirmngr/ldap.c, g13/Makefile.am, g13/call-gpg.c, g13/g13.c, g13/runner.c, scd/Makefile.am, scd/apdu.c, scd/app.c, scd/ccid-driver.c, scd/command.c, scd/scdaemon.c, tools/Makefile.am: Port to npth.
2011-02-08Add finger support to dirmngr.Werner Koch1-69/+290
The basic network code from http.c is used for finger. This keeps the network related code at one place and we are able to use the somewhat matured code form http.c. Unfortunately I had to enhance the http code for more robustness and probably introduced new bugs. Test this code using gpg --fetch-key finger:[email protected] (I might be the last user of finger ;-)
2011-02-04Nuked almost all trailing white space.post-nuke-of-trailing-wsWerner Koch1-40/+40
We better do this once and for all instead of cluttering all future commits with diffs of trailing white spaces. In the majority of cases blank or single lines are affected and thus this change won't disturb a git blame too much. For future commits the pre-commit scripts checks that this won't happen again.
2011-01-20Fix for bug#1313. de.po update.Werner Koch1-9/+18
2011-01-20All standard keyserver commands are now using dirmngr.Werner Koch1-8/+37
2011-01-10Initial code checking for backup - not yet working.Werner Koch1-16/+33
2010-10-01Exporting secret keys via gpg-agent is now basically supported.Werner Koch1-0/+3
A couple of forward ported changes. Doc updates.
2010-08-06More work on the dirmngr. It now builds for W32 and W32CE and quickWerner Koch1-72/+73
tests show that it works on W32.
2010-08-05Simplified http.c.Werner Koch1-240/+68
2010-07-16Some work on porting dirmngr (unfinished)Werner Koch1-58/+115
Ported gpgtar to W32.
2010-03-22More chnages to use estream. Add a way to replace the standardWerner Koch1-0/+2
descriptors.
2010-03-02First steps towards the W32CE portWerner Koch1-7/+8
2009-05-28Avoid caches to get the most recent copy of the key. This is bug #1061David Shaw1-7/+32
2009-05-28* http.h, http.c (send_request): Pass in srvtag and make its presenceDavid Shaw1-10/+13
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-03-13* http.c (do_parse_uri): Properly handle IPv6 literal addresses as perDavid Shaw1-6/+16
RFC-2732. Adapted from patch by Phil Pennock.
2008-10-20Marked all unused args on non-W32 platforms.Werner Koch1-0/+2
2008-04-21W32 related keyserver fixes.Werner Koch1-1/+15
2007-07-04Changed to GPLv3.Werner Koch1-4/+2
Removed intl/.
2007-06-14A whole bunch of changes to allow building for Windows.Werner Koch1-3/+9
See the ChangeLogs for details.
2007-06-06First steps towards supporting W32.Werner Koch1-5/+5
This is mainly source code reorganization. Update gnulib. g10/ does currently not build.
2007-03-10From STABLE-BRANCH-1-4David Shaw1-2/+0
* 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.
2006-11-28Preparing 2.0.1Werner Koch1-0/+1
2006-09-14Take advantage of newer gpg-error features.Werner Koch1-25/+37
2006-09-06Minor changes and typo fixes.Werner Koch1-1/+3
2006-09-04Support to read response headers. Required for redirection support in theWerner Koch1-3/+177
dirmngr package.
2006-08-16With --enable-gpg the keyservers are now build and a first test using gpg2Werner Koch1-3/+4
shows no prblems. Needs more testing of course.
2006-08-14Changed HTTP API.Werner Koch1-22/+115
2006-08-11Added http.c from 1.4. Werner Koch1-0/+1729
Added support for estream and gnutls.