security_other.go 381 B

123456789101112131415161718
  1. //go:build !linux
  2. package ims
  3. import (
  4. "context"
  5. "errors"
  6. )
  7. type unsupportedIPSecInstaller struct{}
  8. func defaultIPSecInstaller() IPSecSAInstaller {
  9. return unsupportedIPSecInstaller{}
  10. }
  11. func (unsupportedIPSecInstaller) Install(context.Context, IPSecSAConfig) (IPSecSAHandle, error) {
  12. return nil, errors.New("ims: ipsec-3gpp XFRM installation is supported only on Linux")
  13. }