Commit df8ec793 authored by Mingtian Yin's avatar Mingtian Yin Committed by Facebook Github Bot 9

Record whether cached certificate was used

Summary: Record whether cached certificate was used

Reviewed By: anirudhvr

Differential Revision: D3582807

fbshipit-source-id: 246107ce383ff31718ee7dcccf8bbea459b559a8
parent 8cf0c3e0
......@@ -714,6 +714,14 @@ class AsyncSSLSocket : public virtual AsyncSocket {
serviceIdentity_ = std::move(serviceIdentity);
}
void setCertCacheHit(bool hit) {
certCacheHit_ = hit;
}
bool getCertCacheHit() const {
return certCacheHit_;
}
private:
void init();
......@@ -855,6 +863,7 @@ class AsyncSSLSocket : public virtual AsyncSocket {
bool parseClientHello_{false};
bool cacheAddrOnFailure_{false};
bool bufferMovableEnabled_{false};
bool certCacheHit_{false};
std::unique_ptr<ssl::ClientHelloInfo> clientHelloInfo_;
std::vector<std::pair<char, StringPiece>> alertsReceived_;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment