mirror of
https://github.com/yrutschle/sslh.git
synced 2025-04-08 13:20:04 +03:00
Reintroduce --ssl as alias to --tls in maintenance branch for 1.x (fix #416)
This commit is contained in:
parent
3013658b20
commit
591cfc9a8a
@ -1,3 +1,11 @@
|
|||||||
|
v1.23.0:
|
||||||
|
Obsolete. Please use v2.0 or above. This is a branch
|
||||||
|
where no new features will be introduced, only
|
||||||
|
bugfixes to versions below 1.22.
|
||||||
|
|
||||||
|
Reintroduce --ssl as alias to --tls.
|
||||||
|
|
||||||
|
|
||||||
v1.22: 17AUG2021
|
v1.22: 17AUG2021
|
||||||
sslh-select now supports UDP protocols.
|
sslh-select now supports UDP protocols.
|
||||||
Probes specified in the `protocols`
|
Probes specified in the `protocols`
|
||||||
|
25
sslh-conf.c
25
sslh-conf.c
@ -1,5 +1,5 @@
|
|||||||
/* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README)
|
/* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README)
|
||||||
* on Tue Aug 24 13:53:04 2021.
|
* on Tue Jan 2 21:42:30 2024.
|
||||||
|
|
||||||
# conf2struct: generate libconf parsers that read to structs
|
# conf2struct: generate libconf parsers that read to structs
|
||||||
# Copyright (C) 2018-2021 Yves Rutschle
|
# Copyright (C) 2018-2021 Yves Rutschle
|
||||||
@ -459,6 +459,7 @@ struct arg_file* sslhcfg_conffile;
|
|||||||
struct arg_str* sslhcfg_listen;
|
struct arg_str* sslhcfg_listen;
|
||||||
struct arg_str* sslhcfg_ssh;
|
struct arg_str* sslhcfg_ssh;
|
||||||
struct arg_str* sslhcfg_tls;
|
struct arg_str* sslhcfg_tls;
|
||||||
|
struct arg_str* sslhcfg_ssl;
|
||||||
struct arg_str* sslhcfg_openvpn;
|
struct arg_str* sslhcfg_openvpn;
|
||||||
struct arg_str* sslhcfg_tinc;
|
struct arg_str* sslhcfg_tinc;
|
||||||
struct arg_str* sslhcfg_xmpp;
|
struct arg_str* sslhcfg_xmpp;
|
||||||
@ -1094,6 +1095,15 @@ static struct compound_cl_target sslhcfg_openvpn_targets [] = {
|
|||||||
{ 0 }
|
{ 0 }
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct compound_cl_target sslhcfg_ssl_targets [] = {
|
||||||
|
{ & table_sslhcfg_protocols[0], 0, .value.def_string = "tls" },
|
||||||
|
{ & table_sslhcfg_protocols[1], 1, .value.def_string = "0" },
|
||||||
|
{ & table_sslhcfg_protocols[2], 2, .value.def_string = "0" },
|
||||||
|
{ & table_sslhcfg_protocols[9], 0, .value.def_int = 1 },
|
||||||
|
{ & table_sslhcfg_protocols[7], 0, .value.def_bool = 1 },
|
||||||
|
{ 0 }
|
||||||
|
};
|
||||||
|
|
||||||
static struct compound_cl_target sslhcfg_tls_targets [] = {
|
static struct compound_cl_target sslhcfg_tls_targets [] = {
|
||||||
{ & table_sslhcfg_protocols[0], 0, .value.def_string = "tls" },
|
{ & table_sslhcfg_protocols[0], 0, .value.def_string = "tls" },
|
||||||
{ & table_sslhcfg_protocols[1], 1, .value.def_string = "0" },
|
{ & table_sslhcfg_protocols[1], 1, .value.def_string = "0" },
|
||||||
@ -1156,6 +1166,18 @@ static struct compound_cl_arg compound_cl_args[] = {
|
|||||||
.override_const = "tls",
|
.override_const = "tls",
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{ /* arg: ssl */
|
||||||
|
.regex = "(.+):(\\w+)",
|
||||||
|
.arg_cl = & sslhcfg_ssl,
|
||||||
|
.base_entry = & table_sslhcfg [14],
|
||||||
|
.targets = sslhcfg_ssl_targets,
|
||||||
|
|
||||||
|
|
||||||
|
.override_desc = & table_sslhcfg_protocols [0],
|
||||||
|
.override_matchindex = 0,
|
||||||
|
.override_const = "tls",
|
||||||
|
},
|
||||||
|
|
||||||
{ /* arg: openvpn */
|
{ /* arg: openvpn */
|
||||||
.regex = "(.+):(\\w+)",
|
.regex = "(.+):(\\w+)",
|
||||||
.arg_cl = & sslhcfg_openvpn,
|
.arg_cl = & sslhcfg_openvpn,
|
||||||
@ -1924,6 +1946,7 @@ int sslhcfg_cl_parse(int argc, char* argv[], struct sslhcfg_item* cfg)
|
|||||||
sslhcfg_listen = arg_strn("p", "listen", "<host:port>", 0, 10, "Listen on host:port"),
|
sslhcfg_listen = arg_strn("p", "listen", "<host:port>", 0, 10, "Listen on host:port"),
|
||||||
sslhcfg_ssh = arg_strn(NULL, "ssh", "<host:port>", 0, 10, "Set up ssh target"),
|
sslhcfg_ssh = arg_strn(NULL, "ssh", "<host:port>", 0, 10, "Set up ssh target"),
|
||||||
sslhcfg_tls = arg_strn(NULL, "tls", "<host:port>", 0, 10, "Set up TLS/SSL target"),
|
sslhcfg_tls = arg_strn(NULL, "tls", "<host:port>", 0, 10, "Set up TLS/SSL target"),
|
||||||
|
sslhcfg_ssl = arg_strn(NULL, "ssl", "<host:port>", 0, 10, "Set up TLS/SSL target"),
|
||||||
sslhcfg_openvpn = arg_strn(NULL, "openvpn", "<host:port>", 0, 10, "Set up OpenVPN target"),
|
sslhcfg_openvpn = arg_strn(NULL, "openvpn", "<host:port>", 0, 10, "Set up OpenVPN target"),
|
||||||
sslhcfg_tinc = arg_strn(NULL, "tinc", "<host:port>", 0, 10, "Set up tinc target"),
|
sslhcfg_tinc = arg_strn(NULL, "tinc", "<host:port>", 0, 10, "Set up tinc target"),
|
||||||
sslhcfg_xmpp = arg_strn(NULL, "xmpp", "<host:port>", 0, 10, "Set up XMPP target"),
|
sslhcfg_xmpp = arg_strn(NULL, "xmpp", "<host:port>", 0, 10, "Set up XMPP target"),
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
/* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README)
|
/* Generated by conf2struct (https://www.rutschle.net/tech/conf2struct/README)
|
||||||
* on Tue Aug 24 13:53:04 2021.
|
* on Tue Jan 2 21:42:30 2024.
|
||||||
|
|
||||||
# conf2struct: generate libconf parsers that read to structs
|
# conf2struct: generate libconf parsers that read to structs
|
||||||
# Copyright (C) 2018-2021 Yves Rutschle
|
# Copyright (C) 2018-2021 Yves Rutschle
|
||||||
|
13
sslhconf.cfg
13
sslhconf.cfg
@ -155,6 +155,19 @@ cl_groups: (
|
|||||||
{ path: "tfo_ok"; value: 1 }
|
{ path: "tfo_ok"; value: 1 }
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
|
# Redundant with the --tls setting before, for backwards compatibility
|
||||||
|
{ name: "ssl"; pattern: "(.+):(\w+)"; description: "Set up TLS/SSL target";
|
||||||
|
list: "protocols";
|
||||||
|
override: "name";
|
||||||
|
argdesc: "<host:port>";
|
||||||
|
targets: (
|
||||||
|
{ path: "name"; value: "tls" },
|
||||||
|
{ path: "host"; value: "$1" },
|
||||||
|
{ path: "port"; value: "$2" },
|
||||||
|
{ path: "log_level"; value: 1 },
|
||||||
|
{ path: "tfo_ok"; value: 1 }
|
||||||
|
);
|
||||||
|
},
|
||||||
{ name: "openvpn"; pattern: "(.+):(\w+)"; description: "Set up OpenVPN target";
|
{ name: "openvpn"; pattern: "(.+):(\w+)"; description: "Set up OpenVPN target";
|
||||||
list: "protocols";
|
list: "protocols";
|
||||||
override: "name";
|
override: "name";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user