|
15 | 15 | using MatterDotNet.PKI; |
16 | 16 | using MatterDotNet.Protocol.Cryptography; |
17 | 17 | using MatterDotNet.Protocol.Payloads; |
| 18 | +using MatterDotNet.Protocol.Payloads.Flags; |
18 | 19 | using MatterDotNet.Protocol.Payloads.OpCodes; |
19 | 20 | using MatterDotNet.Protocol.Payloads.Status; |
20 | 21 | using MatterDotNet.Protocol.Sessions; |
@@ -67,6 +68,7 @@ public class CASE(SessionContext unsecureSession) |
67 | 68 | }; |
68 | 69 |
|
69 | 70 | Frame sigma1 = new Frame(Msg1, (byte)SecureOpCodes.CASESigma1); |
| 71 | + sigma1.Flags |= MessageFlags.SourceNodeID; |
70 | 72 | await exchange.SendFrame(sigma1); |
71 | 73 | resp = await exchange.Read(); |
72 | 74 | if (resp.Message.Payload is StatusPayload error) |
@@ -159,7 +161,9 @@ public class CASE(SessionContext unsecureSession) |
159 | 161 | PayloadWriter Msg3Bytes = new PayloadWriter(1024); |
160 | 162 | Msg3.Serialize(Msg3Bytes); |
161 | 163 |
|
162 | | - await exchange.SendFrame(new Frame(Msg3, (byte)SecureOpCodes.CASESigma3)); |
| 164 | + Frame sigma3 = new Frame(Msg3, (byte)SecureOpCodes.CASESigma3); |
| 165 | + sigma3.Flags |= MessageFlags.SourceNodeID; |
| 166 | + await exchange.SendFrame(sigma3); |
163 | 167 | Frame? resp = await exchange.Read(); |
164 | 168 |
|
165 | 169 | StatusPayload s3resp = (StatusPayload)resp.Message.Payload!; |
@@ -211,6 +215,7 @@ public class CASE(SessionContext unsecureSession) |
211 | 215 | }; |
212 | 216 |
|
213 | 217 | Frame sigma1 = new Frame(Msg1, (byte)SecureOpCodes.CASESigma1); |
| 218 | + sigma1.Flags |= MessageFlags.SourceNodeID; |
214 | 219 | await exchange.SendFrame(sigma1); |
215 | 220 | resp = await exchange.Read(); |
216 | 221 |
|
|
0 commit comments