MCPcopy Create free account
hub / github.com/SIPp/sipp / SSL_new_client

Function SSL_new_client

src/sslsocket.cpp:183–195  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

181}
182
183SSL* SSL_new_client()
184{
185 SSL* ssl = SSL_new(sip_trp_ssl_ctx_client);
186
187 // Inject the ServerNameIndication (SNI).
188 // It requires to be a hostname. However, SSL takes whatever we set.
189 // Ref https://datatracker.ietf.org/doc/html/rfc6066#section-3
190 if (strcmp(remote_ip, remote_host)) {
191 SSL_set_tlsext_host_name(ssl, remote_host);
192 }
193
194 return ssl;
195}
196
197SSL* SSL_new_server()
198{

Callers 2

SIPpSocketMethod · 0.85
reconnectMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected