gnupg/dirmngr
Werner Koch 8412a5825c http: Revamp TLS API.
* configure.ac (NEED_GNUTLS_VERSION): New.
(HTTP_USE_GNUTLS, LIBGNUTLS_CFLAGS, LIBGNUTLS_LIBS): New ac_subst.

* common/http.h (http_session_t): New.
* common/http.c: Remove compatibility for gnutls < 3.0.
(http_session_s): New.
(cookie_s): Replace gnutls_session_t by http_session_t.
(tls_callback, tls_ca_certlist): New variables.
(my_socket_unref): Add preclose args.
(my_npth_read, my_npth_write): New.
(make_header_line): Fix bug using int* instead of char*.
(http_register_tls_callback): New.
(http_register_tls_ca): New.
(http_session_new): New.
(http_session_release): New.
(http_get_header_names): New.
(escape_data): Add hack to escape in forms mode.
(send_request) [HTTP_USE_GNUTLS]: Support SNI.
(send_request) [HTTP_USE_GNUTLS]: Fix use of make_header_line.
(send_gnutls_bye): New.
(cookie_close): Make use of preclose feature.
(http_verify_server_credentials): New.
(main) [TEST]: Remove test code.
* common/t-http.c: New.
* common/tls-ca.pem: New.
* common/Makefile.am (tls_sources): New. Move http code to here.
(libcommontls_a_SOURCES): New.
(libcommontlsnpth_a_SOURCES): New.
(EXTRA_DIST): Add tls-ca.pem
(module_maint_tests): Add t-http.
(t_http_SOURCES, t_http_CFLAGS, t_http_LDADD): New.

* dirmngr/Makefile.am (dirmngr_LDADD): Add libcommontlsnpth.
--

This new TLS API for http.c is much more flexible than the crude old
hack.
2014-05-02 11:19:25 +02:00
..
ChangeLog-2011 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
ChangeLog.1 Generate the ChangeLog from commit logs. 2011-12-01 11:09:02 +01:00
Makefile.am http: Revamp TLS API. 2014-05-02 11:19:25 +02:00
OAUTHORS Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
ONEWS Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
cdb.h Tweaks for gpgconf. 2010-12-14 19:17:58 +00:00
cdblib.c Silence more warnings about unused vars and args. 2014-03-07 19:05:41 +01:00
certcache.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
certcache.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
crlcache.c Fix typos spotted during translations 2012-08-24 09:44:33 +02:00
crlcache.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
crlfetch.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
crlfetch.h Some work on the dirmngr 2010-07-23 16:16:14 +00:00
dirmngr-client.c dirmngr: Default to a user socket name and enable autostart. 2014-03-14 12:36:36 +01:00
dirmngr-err.h Some work on porting dirmngr (unfinished) 2010-07-16 13:19:45 +00:00
dirmngr.c dirmngr: Fix compiler warning. 2014-04-08 17:06:17 +02:00
dirmngr.h dirmngr: Resurrect hosts in the HKP hosttable. 2014-03-18 11:07:05 +01:00
dirmngr_ldap.c dirmmgr: Use a portability wrapper for struct timeval. 2014-03-07 19:20:57 +01:00
ks-action.c dirmngr: Detect dead keyservers and try another one. 2014-03-12 14:33:51 +01:00
ks-action.h dirmngr: Fix HKP host selection code. 2014-03-11 16:30:36 +01:00
ks-engine-finger.c Add framework to print keyserver engine information 2011-02-09 18:20:05 +01:00
ks-engine-hkp.c dirmngr: Resurrect hosts in the HKP hosttable. 2014-03-18 11:07:05 +01:00
ks-engine-http.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
ks-engine-kdns.c Add ECC import regression tests and fixed a regression. 2011-02-10 20:45:37 +01:00
ks-engine.h dirmngr: Add command option to mark hosts as dead or alive. 2014-03-11 16:30:36 +01:00
ldap-url.c dirmngr: Simplify strtok macro. 2014-03-07 19:00:31 +01:00
ldap-url.h Merged Dirmngr with GnuPG. 2010-06-09 16:53:51 +00:00
ldap-wrapper-ce.c Silence more warnings about unused vars and args. 2014-03-07 19:05:41 +01:00
ldap-wrapper.c Replace npth_yield in busy wait by npth_usleep. 2012-02-28 17:26:32 +01:00
ldap-wrapper.h Fixed couple of build problems. However the W32 version is currently 2010-07-26 14:27:59 +00:00
ldap.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
ldapserver.c Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
ldapserver.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00
misc.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
misc.h More work on the dirmngr. It now builds for W32 and W32CE and quick 2010-08-06 13:52:01 +00:00
ocsp.c Change all quotes in strings and comments to the new GNU standard. 2012-06-05 19:29:22 +02:00
ocsp.h Merged Dirmngr with GnuPG. 2010-06-09 16:53:51 +00:00
server.c gpg: Make --auto-key-locate work again with keyservers. 2014-03-17 15:39:33 +01:00
validate.c Fix typos spotted during translations 2012-08-24 09:44:33 +02:00
validate.h Merged Dirmngr with GnuPG. 2010-06-09 16:53:51 +00:00
w32-ldap-help.h Nuked almost all trailing white space. 2011-02-04 12:57:53 +01:00