Skip to content

Commit 3d6cdb6

Browse files
committed
feat(queue): add ACK handling and SMP response multiplexing for subscribed connections
- Implement queue_send_ack() with pending_msg buffer for MSG/OK disambiguation - Add SMP response type detection on subscribed connections (OK/MSG/ERR) - Add Reply Queue diagnostic logging for SUB, listen loop, and ratchet state - Re-SUB before listen loop to ensure active subscription - Identified but not yet fixed: missing ACK after ConnInfo reception on Q_B - Add impressum.md Aufträge: 45a, 45b, 45e | Session: 24
1 parent 6199ade commit 3d6cdb6

File tree

4 files changed

+600
-4
lines changed

4 files changed

+600
-4
lines changed

docs/legal/impressum.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
---
2-
title: "Legal Notice (Impressum)"
2+
title: "Legal Notice (Imprint)"
33
sidebar_position: 99
44
unlisted: true
55
---
66

7-
# Legal Notice (Impressum)
7+
# Legal Notice (Imprint)
88

9-
Required under German law (TMG, MStV).
9+
Required under German law (§ 5 DDG).
1010

1111
## Provider
1212

main/include/smp_queue.h

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
// Queue ID sizes
1414
#define QUEUE_ID_SIZE 24
1515
#define DH_PUBLIC_SIZE 32
16-
#define AUTH_KEY_SIZE 32
16+
#define AUTH_KEY_SIZE 32
1717

1818
// Our created queue info
1919
typedef struct {
@@ -82,6 +82,17 @@ bool queue_reconnect(void);
8282
*/
8383
bool queue_send_key(const uint8_t *peer_auth_key_spki, int key_len);
8484

85+
/**
86+
* Send ACK command to acknowledge a received message.
87+
* Must be called after processing each MSG to unblock the queue.
88+
* Auftrag 45a.
89+
*
90+
* @param msg_id Message ID from MSG command (server nonce)
91+
* @param msg_id_len Length of message ID
92+
* @return true if server accepted ACK
93+
*/
94+
bool queue_send_ack(const uint8_t *msg_id, int msg_id_len);
95+
8596
/**
8697
* Encode our queue as SMPQueueInfo for AgentConnInfoReply
8798
*/

0 commit comments

Comments
 (0)