Refactor Noise: Extract files and remove dead code (#806)

* Extract each type to a separate file

* NoiseSessionManager: Remove unused functions

---------

Co-authored-by: jack <212554440+jackjackbits@users.noreply.github.com>
This commit is contained in:
Islam
2025-10-15 00:32:44 +02:00
committed by GitHub
co-authored by jack
parent 47d75ab9d8
commit b3ec5eeda0
9 changed files with 259 additions and 267 deletions
-6
View File
@@ -196,12 +196,6 @@ class NoiseSession {
}
}
func getHandshakeHash() -> Data? {
return sessionQueue.sync {
return handshakeHash
}
}
func reset() {
sessionQueue.sync(flags: .barrier) {
let wasEstablished = state == .established