2020-08-02 12:55:02 +02:00
|
|
|
// +build !cgo nocrypto
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
2020-09-24 14:49:13 +02:00
|
|
|
import (
|
|
|
|
"errors"
|
|
|
|
)
|
|
|
|
|
2020-08-02 12:55:02 +02:00
|
|
|
func NewCryptoHelper(bridge *Bridge) Crypto {
|
|
|
|
if !bridge.Config.Bridge.Encryption.Allow {
|
|
|
|
bridge.Log.Warnln("Bridge built without end-to-bridge encryption, but encryption is enabled in config")
|
|
|
|
}
|
|
|
|
bridge.Log.Debugln("Bridge built without end-to-bridge encryption")
|
|
|
|
return nil
|
|
|
|
}
|
2020-09-24 14:25:36 +02:00
|
|
|
|
|
|
|
var NoSessionFound = errors.New("nil")
|