REORG: config: use parsing ctx for server config check
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 28 May 2021 08:34:01 +0000 (10:34 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 7 Jun 2021 15:19:27 +0000 (17:19 +0200)
commite74cbc3227908b69fadf95c6a876a85ff71cb192
tree7320a954bc37bd1dc0da4a78c39ef2877cb593ba
parent0fc136ce5b038772b6b5bc9bb6b0a5dfdc40aada
REORG: config: use parsing ctx for server config check

Initialize the parsing context when checking server config validity.
Adjust the log messages to remove redundant config file/line and server
name. Do a similar cleaning in prepare_srv from ssl_sock as this
function is called at the same stage.

This will standardize the stderr output on startup with the parse_server
function.
src/cfgparse.c
src/ssl_sock.c