MCPcopy Create free account
hub / github.com/apache/httpd / md_protocol_propose

Function md_protocol_propose

modules/md/mod_md.c:1058–1072  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1056/* ALPN handling */
1057
1058static int md_protocol_propose(conn_rec *c, request_rec *r,
1059 server_rec *s,
1060 const apr_array_header_t *offers,
1061 apr_array_header_t *proposals)
1062{
1063 (void)s;
1064 if (!r && offers && ap_ssl_conn_is_ssl(c)
1065 && ap_array_str_contains(offers, PROTO_ACME_TLS_1)) {
1066 ap_log_cerror(APLOG_MARK, APLOG_TRACE1, 0, c,
1067 "proposing protocol '%s'", PROTO_ACME_TLS_1);
1068 APR_ARRAY_PUSH(proposals, const char*) = PROTO_ACME_TLS_1;
1069 return OK;
1070 }
1071 return DECLINED;
1072}
1073
1074static int md_protocol_switch(conn_rec *c, request_rec *r, server_rec *s,
1075 const char *protocol)

Callers

nothing calls this directly

Calls 2

ap_ssl_conn_is_sslFunction · 0.85
ap_array_str_containsFunction · 0.85

Tested by

no test coverage detected