Use a macro for the DTLS-PSK protocol indicator

Also corrected its usage in worker-http
This commit is contained in:
Nikos Mavrogiannopoulos
2016-09-13 14:09:53 +02:00
parent b0dcea76ca
commit 58b447c413
3 changed files with 5 additions and 4 deletions

View File

@@ -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);