diff options
Diffstat (limited to 'netwerk/protocol/http/ConnectionEntry.cpp')
-rw-r--r-- | netwerk/protocol/http/ConnectionEntry.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/netwerk/protocol/http/ConnectionEntry.cpp b/netwerk/protocol/http/ConnectionEntry.cpp index 473f0ab9fc..7b59011cd3 100644 --- a/netwerk/protocol/http/ConnectionEntry.cpp +++ b/netwerk/protocol/http/ConnectionEntry.cpp @@ -1098,5 +1098,16 @@ void ConnectionEntry::SetRetryDifferentIPFamilyForHttp3(uint16_t aIPFamily) { MOZ_DIAGNOSTIC_ASSERT(mPreferIPv4 ^ mPreferIPv6); } +void ConnectionEntry::SetServerCertHashes( + nsTArray<RefPtr<nsIWebTransportHash>>&& aHashes) { + mServerCertHashes = std::move(aHashes); +} + +const nsTArray<RefPtr<nsIWebTransportHash>>& +ConnectionEntry::GetServerCertHashes() { + MOZ_ASSERT(OnSocketThread(), "not on socket thread"); + return mServerCertHashes; +} + } // namespace net } // namespace mozilla |