feat: add non-blocking Noise handshake, SecureConnection transport
refactor
This commit is contained in:
@@ -84,7 +84,8 @@ test "noise: SecureConnection init without handshake is not encrypted" {
|
||||
// Just test initialization (can't test full handshake without network)
|
||||
var socket: core.socket.Socket = undefined;
|
||||
const keypair = KeyPair.generate();
|
||||
const secure = SecureConnection.init(&socket, keypair, allocator);
|
||||
var secure: SecureConnection = undefined;
|
||||
secure.init(&socket, keypair, allocator);
|
||||
|
||||
try testing.expect(!secure.isEncrypted());
|
||||
try testing.expect(secure.getRemotePublicKey() == null);
|
||||
|
||||
Reference in New Issue
Block a user