store connection parameters
| 1598 | |
| 1599 | // store connection parameters |
| 1600 | SSL_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 |
nothing calls this directly
no test coverage detected