| 1072 | } |
| 1073 | |
| 1074 | static 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 | /**************************************************************************************************/ |
nothing calls this directly
no test coverage detected