Werner Koch
59b4fb5f49
dirmngr: Make use of IPv4 and IPV6 more explicit.
...
* common/http.c (connect_server): Handle the new flags.
* common/http.h (HTTP_FLAG_IGNORE_IPv4, HTTP_FLAG_IGNORE_IPv4): New.
* dirmngr/ks-engine-hkp.c (map_host): Add arg r_httpflags.
(make_host_part): Ditto.
(send_request): Add arg httpflags.
(ks_hkp_search, ks_hkp_get, ks_hkp_put): Handle httpflags.
2014-03-14 17:00:10 +01:00
Werner Koch
3d9e0eb02c
http: Add a flag to the URL parser indicating a literal v6 address.
...
* common/http.h (struct parsed_uri_t): Add field v6lit.
* common/http.c (do_parse_uri): Set v6lit.
2014-03-12 14:33:51 +01:00
Werner Koch
cb0dcc3408
w32: Include winsock2.h to silence warnings.
2014-03-07 14:18:43 +01:00
Werner Koch
096e7457ec
Change all quotes in strings and comments to the new GNU standard.
...
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-06-05 19:29:22 +02:00
Werner Koch
37df3d5f59
Change license for some files in common to LGPLv3+/GPLv2+.
...
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-04-20 15:48:48 +02:00
Werner Koch
13ec74481c
common: Replace macro based function calls by using DEFAULT_ERRSOURCE.
...
* 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-02-07 10:15:57 +01:00
Marcus Brinkmann
7a7a597827
Port to npth.
...
* 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.
2012-01-25 14:50:47 +01:00
Werner Koch
2c79a2832c
Add finger support to dirmngr.
...
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:wk@g10code.com
(I might be the last user of finger ;-)
2011-02-08 21:11:19 +01:00
Werner Koch
b008274afd
Nuked almost all trailing white space.
...
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-02-04 12:57:53 +01:00
Werner Koch
2b933ae8f6
Fix for bug#1313. de.po update.
2011-01-20 15:11:25 +01:00
Werner Koch
7f32d88ed1
All standard keyserver commands are now using dirmngr.
2011-01-20 14:12:53 +01:00
Werner Koch
8c8c45725f
Initial code checking for backup - not yet working.
2011-01-10 14:30:17 +01:00
Werner Koch
bfbd80feb9
Exporting secret keys via gpg-agent is now basically supported.
...
A couple of forward ported changes.
Doc updates.
2010-10-01 20:33:53 +00:00
Werner Koch
dc5a80930b
More work on the dirmngr. It now builds for W32 and W32CE and quick
...
tests show that it works on W32.
2010-08-06 13:52:01 +00:00
Werner Koch
be622bd268
Simplified http.c.
2010-08-05 18:47:25 +00:00
Werner Koch
8b8925a2bd
Some work on porting dirmngr (unfinished)
...
Ported gpgtar to W32.
2010-07-16 13:19:45 +00:00
Werner Koch
e64038608b
More chnages to use estream. Add a way to replace the standard
...
descriptors.
2010-03-22 12:46:05 +00:00
Werner Koch
d232fd2e54
First steps towards the W32CE port
2010-03-02 21:25:08 +00:00
David Shaw
bcf540f2d0
Avoid caches to get the most recent copy of the key. This is bug #1061
2009-05-28 16:20:49 +00:00
David Shaw
a7205a080c
* http.h, http.c (send_request): Pass in srvtag and make its presence
...
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-28 04:25:25 +00:00
David Shaw
104712d412
* http.c (do_parse_uri): Properly handle IPv6 literal addresses as per
...
RFC-2732. Adapted from patch by Phil Pennock.
2009-03-13 18:59:07 +00:00
Werner Koch
0a5f742466
Marked all unused args on non-W32 platforms.
2008-10-20 13:53:23 +00:00
Werner Koch
08a612f26e
W32 related keyserver fixes.
2008-04-21 19:13:36 +00:00
Werner Koch
93d3811abc
Changed to GPLv3.
...
Removed intl/.
2007-07-04 19:49:40 +00:00
Werner Koch
0cfbfd6186
A whole bunch of changes to allow building for Windows.
...
See the ChangeLogs for details.
2007-06-14 17:05:07 +00:00
Werner Koch
2c9791db55
First steps towards supporting W32.
...
This is mainly source code reorganization.
Update gnulib.
g10/ does currently not build.
2007-06-06 18:12:30 +00:00
David Shaw
24feaa4f8a
From STABLE-BRANCH-1-4
...
* 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-03-10 04:52:57 +00:00
Werner Koch
252b668814
Preparing 2.0.1
2006-11-28 16:36:02 +00:00
Werner Koch
03d3322e5f
Take advantage of newer gpg-error features.
2006-09-14 16:50:33 +00:00
Werner Koch
7b9fa9da99
Minor changes and typo fixes.
2006-09-06 11:53:24 +00:00
Werner Koch
92550e3016
Support to read response headers. Required for redirection support in the
...
dirmngr package.
2006-09-04 11:00:52 +00:00
Werner Koch
b744f963d7
With --enable-gpg the keyservers are now build and a first test using gpg2
...
shows no prblems. Needs more testing of course.
2006-08-16 10:47:53 +00:00
Werner Koch
5be40e9fad
Changed HTTP API.
2006-08-14 14:40:07 +00:00
Werner Koch
6c94373609
Added http.c from 1.4.
...
Added support for estream and gnutls.
2006-08-11 11:04:38 +00:00