Commit 169e1f02 authored by Neel Goyal's avatar Neel Goyal Committed by Facebook Github Bot

Rename set/getServiceIdentity

Summary: Rename set/getServiceIdentity to set/getSessionKey.  This is a more representative description since verified information is in the cert.

Reviewed By: yfeldblum

Differential Revision: D7184169

fbshipit-source-id: c9404419cb37d2b5ab2fcd8299975e514e3f495a
parent 0893755f
...@@ -739,10 +739,12 @@ class AsyncSSLSocket : public virtual AsyncSocket { ...@@ -739,10 +739,12 @@ class AsyncSSLSocket : public virtual AsyncSocket {
*/ */
void forceCacheAddrOnFailure(bool force) { cacheAddrOnFailure_ = force; } void forceCacheAddrOnFailure(bool force) { cacheAddrOnFailure_ = force; }
const std::string& getServiceIdentity() const { return serviceIdentity_; } const std::string& getSessionKey() const {
return sessionKey_;
}
void setServiceIdentity(std::string serviceIdentity) { void setSessionKey(std::string sessionKey) {
serviceIdentity_ = std::move(serviceIdentity); sessionKey_ = std::move(sessionKey);
} }
void setCertCacheHit(bool hit) { void setCertCacheHit(bool hit) {
...@@ -894,8 +896,8 @@ class AsyncSSLSocket : public virtual AsyncSocket { ...@@ -894,8 +896,8 @@ class AsyncSSLSocket : public virtual AsyncSocket {
std::string tlsextHostname_; std::string tlsextHostname_;
#endif #endif
// a service identity that this socket/connection is associated with // a key that can be used for caching the established session
std::string serviceIdentity_; std::string sessionKey_;
folly::SSLContext::SSLVerifyPeerEnum folly::SSLContext::SSLVerifyPeerEnum
verifyPeer_{folly::SSLContext::SSLVerifyPeerEnum::USE_CTX}; verifyPeer_{folly::SSLContext::SSLVerifyPeerEnum::USE_CTX};
......
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