Skip to content

Commit

Permalink
[secure-transport] introduce SecureSession class (openthread#11046)
Browse files Browse the repository at this point in the history
This commit introduces the `SecureSession` class to manage
session-related functionality, decoupling it from the
`SecureTransport` class. `SecureSession` provides method such as
`Connect()`, `Send()`, and `IsConnected()`, while `SecureTransport`
focuses on transport-level operations and common configuration
(e.g., setting PSK, cipher keys).

The `Dtls` and `Tls` subclasses now inherit from both
`SecureTransport` and `SecureSession`, effectively providing the same
methods as before and implementing a single DTLS/TLS session over a
socket.
  • Loading branch information
abtink authored Dec 18, 2024
1 parent 3560870 commit 4e9d362
Show file tree
Hide file tree
Showing 2 changed files with 402 additions and 289 deletions.
Loading

0 comments on commit 4e9d362

Please sign in to comment.