From 743974dbe4aa7a53e276d5dc62288990e6977307 Mon Sep 17 00:00:00 2001 From: Marc Lepage Date: Fri, 11 Feb 2022 11:11:28 -0500 Subject: [PATCH] Hook up GetSubjectDescriptor in GroupSession Progress toward #14541 --- src/transport/GroupSession.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/transport/GroupSession.h b/src/transport/GroupSession.h index dee5d6f5de5e1c..b90d966a528f70 100644 --- a/src/transport/GroupSession.h +++ b/src/transport/GroupSession.h @@ -40,10 +40,11 @@ class GroupSession : public Session Access::SubjectDescriptor GetSubjectDescriptor() const override { - Access::SubjectDescriptor isd; - isd.authMode = Access::AuthMode::kGroup; - // TODO: fill other group subjects fields - return isd; // return an empty ISD for unauthenticated session. + Access::SubjectDescriptor subjectDescriptor; + subjectDescriptor.authMode = Access::AuthMode::kGroup; + subjectDescriptor.subject = NodeIdFromGroupId(mGroupId); + subjectDescriptor.fabricIndex = GetFabricIndex(); + return subjectDescriptor; } bool RequireMRP() const override { return false; }