NoiseSettings

Settings for the connectNoiseStream function.

Constructors

this
this(NoiseKind kind)

Convenience constructor.

Members

Variables

kind
NoiseKind kind;

Client or server role.

privateKey
const(ubyte)[] privateKey;

Private key in memory.

privateKeyPath
Path privateKeyPath;

Path to private key file. Either this or the privateKey field must be set. If both are set the privateKeyPath field is used.

remoteKeyPath
Path remoteKeyPath;

Path to public key file of remote server

verifyRemoteKey
VerifyKeyDelegate verifyRemoteKey;

If provided will be used to verify the remote public key. If this is not set remoteKeyPath is used instead.

Meta