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

Method setPeerX509

extra/yassl/src/cert_wrapper.cpp:360–371  ·  view source on GitHub ↗

Store OpenSSL type peer's cert

Source from the content-addressed store, hash-verified

358
359// Store OpenSSL type peer's cert
360void CertManager::setPeerX509(X509* x)
361{
362 if (x == 0) return;
363
364 X509_NAME* issuer = x->GetIssuer();
365 X509_NAME* subject = x->GetSubject();
366 ASN1_STRING* before = x->GetBefore();
367 ASN1_STRING* after = x->GetAfter();
368
369 peerX509_ = NEW_YS X509(issuer->GetName(), issuer->GetLength(),
370 subject->GetName(), subject->GetLength(), before, after);
371}
372
373
374#if defined(USE_CML_LIB)

Callers 1

set_sessionMethod · 0.80

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