mirror of
https://gitlab.com/openconnect/ocserv.git
synced 2026-02-10 08:46:58 +08:00
Log X-DTLS-App-ID and X-DTLS-Session-ID when sent
Signed-off-by: Nikos Mavrogiannopoulos <n.mavrogiannopoulos@gmail.com>
This commit is contained in:
@@ -2255,6 +2255,8 @@ static int connect_handler(worker_st * ws)
|
||||
}
|
||||
|
||||
if (ws->req.use_psk || !WSCONFIG(ws)->dtls_legacy) {
|
||||
oclog(ws, LOG_INFO, "X-DTLS-App-ID: %s", ws->buffer);
|
||||
|
||||
ret =
|
||||
cstp_printf(ws, "X-DTLS-App-ID: %s\r\n",
|
||||
ws->buffer);
|
||||
@@ -2264,6 +2266,8 @@ static int connect_handler(worker_st * ws)
|
||||
ret =
|
||||
cstp_printf(ws, "X-DTLS-CipherSuite: "DTLS_PROTO_INDICATOR"\r\n");
|
||||
} else if (ws->req.selected_ciphersuite) {
|
||||
oclog(ws, LOG_INFO, "X-DTLS-Session-ID: %s", ws->buffer);
|
||||
|
||||
ret =
|
||||
cstp_printf(ws, "X-DTLS-Session-ID: %s\r\n",
|
||||
ws->buffer);
|
||||
|
||||
Reference in New Issue
Block a user