Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Split DefaultStorageKeyAllocator into Keys and Allocator #23422

Merged
Prev Previous commit
Also update StorageKey at the beginning of the line
  • Loading branch information
andy31415 committed Nov 3, 2022
commit b6ea1506bdd01da93b43f36bb46fcf2b66bbd684
Original file line number Diff line number Diff line change
Expand Up @@ -35,12 +35,12 @@ constexpr TLV::Tag SimpleSessionResumptionStorage::kResumptionIdTag;
constexpr TLV::Tag SimpleSessionResumptionStorage::kSharedSecretTag;
constexpr TLV::Tag SimpleSessionResumptionStorage::kCATTag;

StorageKey SimpleSessionResumptionStorage::GetStorageKey(const ScopedNodeId & node)
StorageKeyName SimpleSessionResumptionStorage::GetStorageKey(const ScopedNodeId & node)
{
return DefaultStorageKeyAllocator::FabricSession(node.GetFabricIndex(), node.GetNodeId());
}

StorageKey SimpleSessionResumptionStorage::GetStorageKey(ConstResumptionIdView resumptionId)
StorageKeyName SimpleSessionResumptionStorage::GetStorageKey(ConstResumptionIdView resumptionId)
{
char resumptionIdBase64[BASE64_ENCODED_LEN(resumptionId.size()) + 1];
auto len = Base64Encode(resumptionId.data(), resumptionId.size(), resumptionIdBase64);
Expand Down