mirror of
https://github.com/tulir/mautrix-whatsapp
synced 2024-09-29 13:08:55 +02:00
13 lines
362 B
Go
13 lines
362 B
Go
// +build !cgo nocrypto
|
|
|
|
package main
|
|
|
|
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
|
|
}
|
|
|
|
var NoSessionFound = errors.New("nil")
|