mautrix-whatsapp/no-crypto.go

18 lines
388 B
Go
Raw Normal View History

2021-10-28 13:04:12 +02:00
//go:build !cgo || nocrypto
package main
2020-09-24 14:49:13 +02:00
import (
"errors"
)
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")