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

Method CopyX509

extra/yassl/src/yassl_int.cpp:1584–1596  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1582
1583
1584void 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

Callers

nothing calls this directly

Calls 7

GetSubjectMethod · 0.80
GetBeforeMethod · 0.80
GetAfterMethod · 0.80
GetLengthMethod · 0.80
X509Class · 0.50
GetIssuerMethod · 0.45
GetNameMethod · 0.45

Tested by

no test coverage detected