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
..
2013-02-06 12:56:19 +01:00
2014-03-07 08:51:47 +01:00
2014-03-07 08:51:47 +01:00
2012-04-20 15:48:48 +02:00
2014-04-22 16:59:06 +02:00
2012-04-20 15:48:48 +02:00
2013-11-18 14:09:47 +01:00
2011-02-04 12:57:53 +01:00
2012-04-20 15:48:48 +02:00
2012-04-20 15:48:48 +02:00
2011-12-01 11:09:02 +01:00
2014-01-29 17:45:05 +01:00
2011-12-01 11:09:02 +01:00
2007-07-04 19:49:40 +00:00
2012-04-20 15:48:48 +02:00
2014-03-07 14:18:43 +01:00
2012-04-20 15:48:48 +02:00
2014-03-07 16:06:35 +01:00
2012-06-05 19:29:22 +02:00
2011-09-30 12:53:34 +02:00
2012-06-05 19:29:22 +02:00
2014-03-07 18:56:17 +01:00
2014-05-02 08:22:38 +02:00
2014-03-07 18:56:17 +01:00
2011-02-04 12:57:53 +01:00
2014-05-02 08:22:38 +02:00
2014-05-02 08:22:38 +02:00
2014-05-02 08:22:38 +02:00
2012-04-20 15:48:48 +02:00
2011-02-04 12:57:53 +01:00
2014-03-12 18:35:36 +01:00
2012-06-05 19:29:22 +02:00
2012-04-20 15:48:48 +02:00
2014-03-18 11:02:50 +01:00
2014-03-18 11:02:50 +01:00
2013-05-07 21:35:48 +02:00
2013-11-18 14:09:47 +01:00
2012-06-05 19:29:22 +02:00
2014-04-22 16:59:06 +02:00
2014-01-29 17:45:05 +01:00
2014-05-02 11:19:25 +02:00
2014-05-02 11:19:25 +02:00
2012-04-20 15:48:48 +02:00
2011-02-04 12:57:53 +01:00
2014-05-02 08:22:38 +02:00
2013-03-20 09:50:17 +01:00
2014-03-07 14:18:43 +01:00
2014-01-29 17:45:05 +01:00
2007-07-04 19:49:40 +00:00
2011-01-10 14:30:17 +01:00
2011-09-30 12:53:34 +02:00
2012-04-20 15:48:48 +02:00
2014-03-07 16:06:35 +01:00
2013-08-01 11:20:48 +02:00
2014-05-02 11:19:25 +02:00
2014-02-26 16:18:45 +01:00
2014-03-06 15:28:42 +01:00
2014-02-26 16:16:30 +01:00
2012-04-20 15:48:48 +02:00
2011-09-30 12:53:34 +02:00
2014-04-08 17:06:17 +02:00
2011-02-04 12:57:53 +01:00
2011-02-04 12:57:53 +01:00
2011-02-04 12:57:53 +01:00
2014-04-08 11:59:39 +09:00
2014-01-31 14:35:49 +01:00
2012-04-20 15:48:48 +02:00
2014-03-07 14:18:43 +01:00
2012-04-20 15:48:48 +02:00
2003-08-05 17:11:04 +00:00
2011-02-04 12:57:53 +01:00
2012-11-20 19:03:49 +01:00
2012-04-20 15:48:48 +02:00
2012-04-20 15:48:48 +02:00
2014-01-30 18:48:37 +01:00
2013-02-06 12:56:19 +01:00
2012-04-20 15:48:48 +02:00
2013-11-18 14:09:47 +01:00
2011-02-04 12:57:53 +01:00
2014-03-07 14:18:43 +01:00
2014-03-07 14:18:43 +01:00
2014-03-22 20:52:03 +01:00
2012-04-20 15:48:48 +02:00
2011-02-04 12:57:53 +01:00
2013-01-30 18:51:56 +01:00
2014-04-22 15:58:33 +02:00
2014-04-22 15:58:33 +02:00
2011-09-30 12:53:34 +02:00
2011-09-30 12:53:34 +02:00
2014-05-02 08:22:38 +02:00
2014-04-22 15:02:05 +02:00
2012-06-05 19:29:22 +02:00
2011-02-04 12:57:53 +01:00
2012-06-05 19:29:22 +02:00
2012-06-05 19:29:22 +02:00
2011-08-10 14:11:30 +02:00
2012-06-05 19:29:22 +02:00
2012-06-05 19:29:22 +02:00
2014-05-02 11:19:25 +02:00
2014-02-26 16:18:45 +01:00
2013-11-15 09:01:11 +01:00
2011-02-04 12:57:53 +01:00
2011-02-04 12:57:53 +01:00
2011-02-04 12:57:53 +01:00
2012-06-05 19:29:22 +02:00
2014-04-22 15:58:33 +02:00
2011-09-30 12:53:34 +02:00
2014-02-26 16:18:45 +01:00
2011-02-04 12:57:53 +01:00
2012-03-27 19:46:20 +02:00
2011-09-30 12:53:34 +02:00
2014-04-17 21:09:10 +02:00
2014-05-02 11:19:25 +02:00
2012-04-20 15:48:48 +02:00
2012-04-20 15:48:48 +02:00
2014-03-27 12:59:55 +01:00
2014-03-27 12:59:55 +01:00
2014-01-29 17:45:05 +01:00
2012-04-20 15:48:48 +02:00
2012-04-20 15:48:48 +02:00
2014-02-26 14:03:57 +01:00
2011-09-30 12:53:34 +02:00
2014-04-17 21:09:10 +02:00
2011-09-30 12:53:34 +02:00
2011-09-30 12:53:34 +02:00
2014-03-07 14:18:43 +01:00
2013-07-31 16:25:41 +02:00
2013-05-07 21:35:48 +02:00
2012-04-20 15:48:48 +02:00
2011-09-30 12:53:34 +02:00
2011-09-30 12:53:34 +02:00
2012-04-20 15:48:48 +02:00
2011-02-04 12:57:53 +01:00
2014-04-17 21:09:10 +02:00