no-crypto.go 362 B

12345678910111213
  1. // +build !cgo nocrypto
  2. package main
  3. func NewCryptoHelper(bridge *Bridge) Crypto {
  4. if !bridge.Config.Bridge.Encryption.Allow {
  5. bridge.Log.Warnln("Bridge built without end-to-bridge encryption, but encryption is enabled in config")
  6. }
  7. bridge.Log.Debugln("Bridge built without end-to-bridge encryption")
  8. return nil
  9. }
  10. var NoSessionFound = errors.New("nil")