mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 16:57:00 +08:00
Use a macro for the DTLS-PSK protocol indicator
Also corrected its usage in worker-http
This commit is contained in:
@@ -1969,9 +1969,9 @@ static int connect_handler(worker_st * ws)
|
||||
SEND_ERR(ret);
|
||||
|
||||
if (ws->req.use_psk || !ws->config->cisco_client_compat) {
|
||||
oclog(ws, LOG_INFO, "DTLS ciphersuite: PSK-NEGOTIATE");
|
||||
oclog(ws, LOG_INFO, "DTLS ciphersuite: "DTLS_PROTO_INDICATOR);
|
||||
ret =
|
||||
cstp_printf(ws, "X-DTLS-CipherSuite: PSK-NEGOTIATE\r\n");
|
||||
cstp_printf(ws, "X-DTLS-CipherSuite: "DTLS_PROTO_INDICATOR"\r\n");
|
||||
} else {
|
||||
oclog(ws, LOG_INFO, "DTLS ciphersuite: %s",
|
||||
ws->req.selected_ciphersuite->oc_name);
|
||||
|
||||
Reference in New Issue
Block a user