MINOR: ssl: OCSP functions can load from file or buffer
authorWilliam Lallemand <wlallemand@haproxy.com>
Wed, 16 Oct 2019 16:05:05 +0000 (18:05 +0200)
committerWilliam Lallemand <wlallemand@haproxy.org>
Wed, 23 Oct 2019 09:54:51 +0000 (11:54 +0200)
commit3b5f360744a6b88aa8a0c582a90d894b9a8f7544
tree212d69d12441c38ea83b7bb38708b8b0d037de6c
parent02010478e9d2f11ab53030fb75f8c54eac4f1f5b
MINOR: ssl: OCSP functions can load from file or buffer

The ssl_sock_load_ocsp_response_from_file() function was modified to
fill directly a struct cert_key_and_chain.

The function prototype was normalized in order to be used with the CLI
payload parser.

This function either read a base64 from a buffer or read a binary file
on the filesystem.

It fills the ocsp_response buffer of the struct cert_key_and_chain.
src/ssl_sock.c