]> git.kaiwu.me - haproxy.git/commit
MEDIUM: move bind SSL parsing to ssl_sock
authorWilly Tarreau <w@1wt.eu>
Fri, 14 Sep 2012 05:53:05 +0000 (07:53 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 18 Sep 2012 14:20:01 +0000 (16:20 +0200)
commit79eeafacb41a20a0c9253e712050d718d5a26878
tree89abe011b811d86f3759188c8995c33c68018dcc
parent4479124cdafa148681e09c229b2decac8dcb16f6
MEDIUM: move bind SSL parsing to ssl_sock

Registering new SSL bind keywords was not particularly handy as it required
many #ifdef in cfgparse.c. Now the code has moved to ssl_sock.c which calls
a register function for all the keywords.

Error reporting was also improved by this move, because the called functions
build an error message using memprintf(), which can span multiple lines if
needed, and each of these errors will be displayed indented in the context of
the bind line being processed. This is important when dealing with certificate
directories which can report multiple errors.
include/proto/ssl_sock.h
src/cfgparse.c
src/ssl_sock.c