| 1582 | |
| 1583 | |
| 1584 | void SSL_SESSION::CopyX509(X509* x) |
| 1585 | { |
| 1586 | if (x == 0) return; |
| 1587 | |
| 1588 | X509_NAME* issuer = x->GetIssuer(); |
| 1589 | X509_NAME* subject = x->GetSubject(); |
| 1590 | ASN1_TIME* before = x->GetBefore(); |
| 1591 | ASN1_TIME* after = x->GetAfter(); |
| 1592 | |
| 1593 | peerX509_ = NEW_YS X509(issuer->GetName(), issuer->GetLength(), |
| 1594 | subject->GetName(), subject->GetLength(), |
| 1595 | before, after); |
| 1596 | } |
| 1597 | |
| 1598 | |
| 1599 | // store connection parameters |