diff options
author | Omar Polo <op@omarpolo.com> | 2021-01-15 18:55:05 +0000 |
---|---|---|
committer | Omar Polo <op@omarpolo.com> | 2021-01-15 18:55:05 +0000 |
commit | 5bc3c98ed4e25bc68a72dd6cd6676b25d2cdf9cd (patch) | |
tree | 2f07a9d7e8345965cb50eb65d464c79c0a85753c /parse.y | |
parent | 8696c5ea2484893ba0422d9bd4732d15d24eb1fc (diff) |
add protocols to the config
Diffstat (limited to 'parse.y')
-rw-r--r-- | parse.y | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -43,7 +43,7 @@ extern void yyerror(const char*); } %token TBOOL TSTRING TNUM -%token TDAEMON TIPV6 TPORT TSERVER +%token TDAEMON TIPV6 TPORT TPROTOCOLS TSERVER %token TCERT TKEY TROOT TCGI %token TERR @@ -62,6 +62,10 @@ options : /* empty */ option : TDAEMON TBOOL { conf.foreground = !$2; } | TIPV6 TBOOL { conf.ipv6 = $2; } | TPORT TNUM { conf.port = $2; } + | TPROTOCOLS TSTRING { + if (tls_config_parse_protocols(&conf.protos, $2) == -1) + errx(1, "invalid protocols string \"%s\"", $2); + } ; vhosts : /* empty */ |