ech_stub.go 699 B

1234567891011121314151617181920212223
  1. //go:build !go1.24
  2. package tls
  3. import (
  4. "context"
  5. "crypto/tls"
  6. "github.com/sagernet/sing-box/option"
  7. E "github.com/sagernet/sing/common/exceptions"
  8. )
  9. func parseECHClientConfig(ctx context.Context, options option.OutboundTLSOptions, tlsConfig *tls.Config) (Config, error) {
  10. return nil, E.New("ECH requires go1.24, please recompile your binary.")
  11. }
  12. func parseECHServerConfig(ctx context.Context, options option.InboundTLSOptions, tlsConfig *tls.Config, echKeyPath *string) error {
  13. return E.New("ECH requires go1.24, please recompile your binary.")
  14. }
  15. func reloadECHKeys(echKeyPath string, tlsConfig *tls.Config) error {
  16. return E.New("ECH requires go1.24, please recompile your binary.")
  17. }