Changeset f674424 in mod_gnutls for src/gnutls_io.c
- Timestamp:
- Dec 12, 2018, 4:57:14 PM (2 years ago)
- Branches:
- asyncio, debian/master, master, proxy-ticket
- Children:
- 0fcba60
- Parents:
- 2038b76
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/gnutls_io.c
r2038b76 rf674424 19 19 20 20 #include "mod_gnutls.h" 21 #include <apr_strings.h> 21 22 22 23 #ifdef APLOG_USE_MODULE … … 405 406 peer_hostname, gnutls_strerror(ret), ret); 406 407 } 408 409 const char *proxy_alpn = 410 apr_table_get(ctxt->c->notes, "proxy-request-alpn-protos"); 411 if (proxy_alpn != NULL) 412 { 413 // TODO: mod_ssl ssl_engine_io.c does some tokenization of 414 // the input string, so it looks like the API allows 415 // multiple protocols. 416 gnutls_datum_t alpn_proto = { 417 .data = (unsigned char *) apr_pstrdup(ctxt->c->pool, proxy_alpn), 418 .size = strlen(proxy_alpn) 419 }; 420 ap_log_cerror(APLOG_MARK, APLOG_DEBUG, APR_SUCCESS, ctxt->c, 421 "%s: proxy module requests ALPN proto '%s', " 422 "length %" APR_SIZE_T_FMT ".", 423 __func__, proxy_alpn, strlen(proxy_alpn)); 424 ret = gnutls_alpn_set_protocols(ctxt->session, 425 &alpn_proto, 426 1 /* number of proposals */, 427 0 /* flags */); 428 if (ret != GNUTLS_E_SUCCESS) 429 ap_log_cerror(APLOG_MARK, APLOG_ERR, ret, ctxt->c, 430 "Could not set ALPN proposal '%s' for proxy " 431 "connection: %s (%d)", 432 proxy_alpn, gnutls_strerror(ret), ret); 433 } 407 434 } 408 435
Note: See TracChangeset
for help on using the changeset viewer.