Commit Graph

13 Commits

Author SHA1 Message Date
Evgeny Poberezkin f21b4310ed remove v8, merge all changes to one version 2024-02-13 18:28:15 +00:00
Evgeny Poberezkin 93ae9c4a35 remove dhSecret from THandle 2024-02-13 16:56:13 +00:00
Alexander Bondarenko 76eddfbc9d transport: fetch and store server certificate (#985)
* THandleParams (WIP, does not compile)

* transport: fetch and store server certificate

* smp: add getOnlinePubKey example to smpClientHandshake

* add server certs and sign authPub

* cleanup

* update

* style

* load server certs from test fixtures

* sign ntf authPubKey

* fix onServerCertificate

* increase delay before sending messages

* require certificate with key in SMP server handshake

---------

Co-authored-by: Evgeny Poberezkin <evgeny@poberezkin.com>
2024-02-13 15:02:03 +00:00
Evgeny Poberezkin b5b1709c24 rename version 2024-02-10 12:13:05 +00:00
Evgeny Poberezkin a734c29eeb do not send session ID in each transmission 2024-02-09 19:53:06 +00:00
Evgeny Poberezkin 816d9a9d91 separate client and server versions for SMP protocol 2024-02-08 22:20:29 +00:00
Evgeny Poberezkin 64e772bfb0 support authenticators in NTF protocol, test matrix (no backwards compatibility yet from new clients to old servers) 2024-02-08 13:41:21 +00:00
Evgeny Poberezkin a7a467196f smp: command authorization 2024-02-05 09:07:27 +00:00
Evgeny Poberezkin 9d12d76078 add fourmolu (#868)
* add fourmolu

* linebreak

* simplify

* comment
2023-10-22 09:20:14 +01:00
Evgeny Poberezkin a6f401041a SMP protocol v4: batching multiple server commands/responses in a transport block (#470)
* batch server commands in one transport block

* subscribe to multiple queues using batched commands

* agent method to subscribe to multiple queues using batched commands

* refactor

* test for batched subscriptions

* delete part of connections in batched test

* add resubscribeConnections

* remove comment

* update SMP protocol doc
2022-07-17 10:10:38 +01:00
Evgeny Poberezkin 9f5e6bfd19 ntf protocol version negotiation (#467) 2022-07-09 12:04:13 +01:00
Evgeny Poberezkin c1348aa54f SMP connection handshake v2 (#390)
* SMP connection handshake v2

* hadshake v2 [mostly] works

* all tests pass, some race conditions remain

* fix build

* fix race conditions, send CON after all HELLOs in duplexHandshake mode

* add comments

* comment

* add comments
2022-06-09 13:47:07 +01:00
Evgeny Poberezkin f466fa76e5 notifications: protocol, server (#335)
* notifications: protocol

* update protocol to include subscription ID and DH public key

* update protocol, started server

* add notification server subscription DH key

* use the same command type in notifications protocol, protocol parsing, server frame

* remove empty files
2022-03-27 08:36:00 +01:00