Files
sing-box-extended-mirror/common/tls/ech_stub.go
T

24 lines
699 B
Go
Raw Normal View History

2025-02-22 08:00:59 +08:00
//go:build !go1.24
2022-09-10 10:27:00 +08:00
package tls
import (
2023-08-29 13:43:42 +08:00
"context"
2025-02-22 08:00:59 +08:00
"crypto/tls"
2023-08-29 13:43:42 +08:00
2022-09-10 10:27:00 +08:00
"github.com/sagernet/sing-box/option"
E "github.com/sagernet/sing/common/exceptions"
)
2025-02-22 08:00:59 +08:00
func parseECHClientConfig(ctx context.Context, options option.OutboundTLSOptions, tlsConfig *tls.Config) (Config, error) {
return nil, E.New("ECH requires go1.24, please recompile your binary.")
2023-08-29 13:43:42 +08:00
}
2025-02-22 08:00:59 +08:00
func parseECHServerConfig(ctx context.Context, options option.InboundTLSOptions, tlsConfig *tls.Config, echKeyPath *string) error {
return E.New("ECH requires go1.24, please recompile your binary.")
2023-08-29 19:28:26 +08:00
}
2025-02-22 08:00:59 +08:00
func reloadECHKeys(echKeyPath string, tlsConfig *tls.Config) error {
return E.New("ECH requires go1.24, please recompile your binary.")
2022-09-10 10:27:00 +08:00
}