| 1056 | /* ALPN handling */ |
| 1057 | |
| 1058 | static 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 | |
| 1074 | static int md_protocol_switch(conn_rec *c, request_rec *r, server_rec *s, |
| 1075 | const char *protocol) |
nothing calls this directly
no test coverage detected