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

Function md_protocol_switch

modules/md/mod_md.c:1074–1091  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1072}
1073
1074static int md_protocol_switch(conn_rec *c, request_rec *r, server_rec *s,
1075 const char *protocol)
1076{
1077 md_conn_ctx *ctx;
1078
1079 (void)s;
1080 if (!r && ap_ssl_conn_is_ssl(c) && !strcmp(PROTO_ACME_TLS_1, protocol)) {
1081 ap_log_cerror(APLOG_MARK, APLOG_TRACE1, 0, c,
1082 "switching protocol '%s'", PROTO_ACME_TLS_1);
1083 ctx = apr_pcalloc(c->pool, sizeof(*ctx));
1084 ctx->protocol = PROTO_ACME_TLS_1;
1085 ap_set_module_config(c->conn_config, &md_module, ctx);
1086
1087 c->keepalive = AP_CONN_CLOSE;
1088 return OK;
1089 }
1090 return DECLINED;
1091}
1092
1093
1094/**************************************************************************************************/

Callers

nothing calls this directly

Calls 2

ap_ssl_conn_is_sslFunction · 0.85
ap_set_module_configFunction · 0.85

Tested by

no test coverage detected