]> git.ipfire.org Git - thirdparty/squid.git/commit - src/security/KeyData.h
TLS: refactor cert=/key= storage in libsecurity
authorAmos Jeffries <squid3@treenet.co.nz>
Tue, 8 Dec 2015 01:48:40 +0000 (17:48 -0800)
committerAmos Jeffries <squid3@treenet.co.nz>
Tue, 8 Dec 2015 01:48:40 +0000 (17:48 -0800)
commitd1d72d438501b135b7443bffa41fcb432dd2132b
treef327a0c64f49932714c80d62e36dd7bca2807cff
parent41e803be87496d682628ace31c2a2383438a7531
TLS: refactor cert=/key= storage in libsecurity

This updates the cert=/key= filename storage from single entries
in PeerOptions to a list of key pairs in preparation for supporting
multiple certificates on client or server TLS contexts.

key= following a cert= parameter is now enforced, rather than just
warned about.

squid.conf can now be configured with multiple [cert= [key=...]]
pairs of filenames, however only the first is used. This differs
from older behaviour where the last value(s) were used. But since
configurations with multiple values was not supported previously
this seems acceptible breakage.

Since the multi-cert support is not fully existing yet this config
ability is left undocumented for now.
src/anyp/PortCfg.cc
src/security/KeyData.h [new file with mode: 0644]
src/security/Makefile.am
src/security/PeerOptions.cc
src/security/PeerOptions.h
src/security/forward.h
src/ssl/support.cc
src/ssl/support.h
src/tests/stub_libsslsquid.cc