MCPcopy Create free account
hub / github.com/Meituan-Dianping/SQLAdvisor / SSL_SESSION

Method SSL_SESSION

extra/yassl/src/yassl_int.cpp:1600–1612  ·  view source on GitHub ↗

store connection parameters

Source from the content-addressed store, hash-verified

1598
1599// store connection parameters
1600SSL_SESSION::SSL_SESSION(const SSL& ssl, RandomPool& ran)
1601 : timeout_(DEFAULT_TIMEOUT), random_(ran), peerX509_(0)
1602{
1603 const Connection& conn = ssl.getSecurity().get_connection();
1604
1605 memcpy(sessionID_, conn.sessionID_, ID_LEN);
1606 memcpy(master_secret_, conn.master_secret_, SECRET_LEN);
1607 memcpy(suite_, ssl.getSecurity().get_parms().suite_, SUITE_LEN);
1608
1609 bornOn_ = lowResTimer();
1610
1611 CopyX509(ssl.getCrypto().get_certManager().get_peerX509());
1612}
1613
1614
1615// for resumption copy in ssl::parameters

Callers

nothing calls this directly

Calls 3

lowResTimerFunction · 0.85
get_parmsMethod · 0.80
get_peerX509Method · 0.80

Tested by

no test coverage detected