MCPcopy Create free account
hub / github.com/apache/trafficserver / ssl_get_cached_session

Function ssl_get_cached_session

src/iocore/net/SSLUtils.cc:188–199  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

186ssl_get_cached_session(SSL *ssl, unsigned char *id, int len, int *copy)
187#else
188ssl_get_cached_session(SSL *ssl, const unsigned char *id, int len, int *copy)
189#endif
190{
191 TLSSessionResumptionSupport *srs = TLSSessionResumptionSupport::getInstance(ssl);
192
193 ink_assert(srs);
194 if (srs) {
195 return srs->getSession(ssl, id, len, copy);
196 }
197
198 return nullptr;
199}
200
201static int
202ssl_new_cached_session(SSL *ssl, SSL_SESSION *sess)

Callers

nothing calls this directly

Calls 1

getSessionMethod · 0.45

Tested by

no test coverage detected