Skip to content

Commit

Permalink
Removes deprecated sni.yaml option: disable_h2 (#7547)
Browse files Browse the repository at this point in the history
This was deprecated in 9.x.
  • Loading branch information
randall authored Feb 26, 2021
1 parent ee2731f commit 0c4857d
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
3 changes: 0 additions & 3 deletions doc/admin-guide/files/sni.yaml.en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,9 +117,6 @@ client_key The file containing the client private key that corres
http2 Indicates whether the H2 protocol should be added to or removed from the
protocol negotiation list. The valid values are :code:`on` or :code:`off`.

disable_h2 Deprecated for the more general h2 setting. Setting disable_h2
to :code:`true` is the same as setting http2 to :code:`on`.

tunnel_route Destination as an FQDN and port, separated by a colon ``:``.
Match group number can be specified by ``$N`` where N should refer to a specified group
in the FQDN, ``tunnel_route: $1.domain``.
Expand Down
4 changes: 0 additions & 4 deletions iocore/net/YamlSNIConfig.cc
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,6 @@ TsEnumDescriptor PROPERTIES_DESCRIPTOR = {{{"NONE", 0}, {"SIGNATURE", 0x1}, {
TsEnumDescriptor TLS_PROTOCOLS_DESCRIPTOR = {{{"TLSv1", 0}, {"TLSv1_1", 1}, {"TLSv1_2", 2}, {"TLSv1_3", 3}}};

std::set<std::string> valid_sni_config_keys = {TS_fqdn,
TS_disable_h2,
TS_verify_client,
TS_verify_client_ca_certs,
TS_tunnel_route,
Expand Down Expand Up @@ -159,9 +158,6 @@ template <> struct convert<YamlSNIConfig::Item> {
} else {
return false; // servername must be present
}
if (node[TS_disable_h2]) {
item.offer_h2 = false;
}
if (node[TS_http2]) {
item.offer_h2 = node[TS_http2].as<bool>();
}
Expand Down
4 changes: 1 addition & 3 deletions iocore/net/YamlSNIConfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@

#define TSDECL(id) constexpr char TS_##id[] = #id
TSDECL(fqdn);
TSDECL(disable_h2);
TSDECL(verify_client);
TSDECL(verify_client_ca_certs);
TSDECL(tunnel_route);
Expand All @@ -53,8 +52,7 @@ TSDECL(host_sni_policy);
const int start = 0;
struct YamlSNIConfig {
enum class Action {
disable_h2 = start,
verify_client,
verify_client = start,
verify_client_ca_certs,
tunnel_route, // blind tunnel action
forward_route, // decrypt data and then blind tunnel action
Expand Down

0 comments on commit 0c4857d

Please sign in to comment.