Add keydir to local options
This commit is contained in:
parent
9b8be02c2a
commit
707db2c6de
|
@ -116,14 +116,8 @@ extension SessionProxy {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if let strategy = options.tlsWrap?.strategy {
|
if let direction = options.tlsWrap?.key.direction?.rawValue {
|
||||||
switch strategy {
|
opts.append("keydir \(direction)")
|
||||||
case .auth:
|
|
||||||
opts.append("tls-auth")
|
|
||||||
|
|
||||||
case .crypt:
|
|
||||||
opts.append("tls-crypt")
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
let optsString = opts.joined(separator: ",")
|
let optsString = opts.joined(separator: ",")
|
||||||
log.debug("TLS.auth: Local options: \(optsString)")
|
log.debug("TLS.auth: Local options: \(optsString)")
|
||||||
|
|
|
@ -58,7 +58,7 @@ public class StaticKey: Codable {
|
||||||
|
|
||||||
private let secureData: ZeroingData
|
private let secureData: ZeroingData
|
||||||
|
|
||||||
private let direction: Direction?
|
let direction: Direction?
|
||||||
|
|
||||||
/// Returns the encryption key.
|
/// Returns the encryption key.
|
||||||
///
|
///
|
||||||
|
|
Loading…
Reference in New Issue