no-crypto.go 388 B

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