reSIProcate
SIP stack, Dialog Usage Manager and related libraries
Loading...
Searching...
No Matches
resip::ConnectionInfo Class Reference

Facts about a TLS or WebSocket connection that do not change once it is set up. More...

#include <ConnectionInfo.hxx>

Public Attributes

std::list< Data > mTlsPeerNames
 Names from the peer's verified TLS certificate (subjectAltName, or commonName if it has none).
 
Data mTlsSni
 SNI (TLS server_name) the peer sent in its ClientHello.
 
CookieList mWsCookies
 Cookies from the WebSocket Upgrade request.
 
std::shared_ptr< WsCookieContext > mWsCookieContext
 Parsed cookie authentication elements from the WebSocket Upgrade request, if the transport has a WsCookieContextFactory.
 

Detailed Description

Facts about a TLS or WebSocket connection that do not change once it is set up.

The connection builds one instance when it receives its first SIP message and every message it receives after that shares it (see SipMessage::getConnectionInfo()), so each message carries one pointer instead of its own copy of these values. It is immutable, which makes it safe to read from any thread for as long as a message holds it, including after the connection itself has gone away.

Definition at line 26 of file ConnectionInfo.hxx.

Member Data Documentation

◆ mTlsPeerNames

std::list<Data> resip::ConnectionInfo::mTlsPeerNames

Names from the peer's verified TLS certificate (subjectAltName, or commonName if it has none).

Empty for non-TLS connections, and when the peer did not present a certificate.

Definition at line 32 of file ConnectionInfo.hxx.

◆ mTlsSni

Data resip::ConnectionInfo::mTlsSni

SNI (TLS server_name) the peer sent in its ClientHello.

Only set for TLS connections we accepted (server mode); empty if the peer sent none.

Definition at line 36 of file ConnectionInfo.hxx.

◆ mWsCookieContext

std::shared_ptr<WsCookieContext> resip::ConnectionInfo::mWsCookieContext

Parsed cookie authentication elements from the WebSocket Upgrade request, if the transport has a WsCookieContextFactory.

Definition at line 43 of file ConnectionInfo.hxx.

◆ mWsCookies

CookieList resip::ConnectionInfo::mWsCookies

Cookies from the WebSocket Upgrade request.

Definition at line 39 of file ConnectionInfo.hxx.


The documentation for this class was generated from the following file: