]> git.ipfire.org Git - thirdparty/squid.git/commit
certificateMatchesProperties segfault
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Wed, 21 Mar 2012 17:06:32 +0000 (19:06 +0200)
committerChristos Tsantilas <chtsanti@users.sourceforge.net>
Wed, 21 Mar 2012 17:06:32 +0000 (19:06 +0200)
commitf4e4d4d6f1540163acf52590868f1dc77b1d3410
tree65c2898e695ee70639e73289377d089fa4dc01b6
parent737c703d5d5711ed802580d06c601a2865902937
certificateMatchesProperties segfault

It is reported at least one case where squid crashed with segfault because the
signing certificate was NULL.

This patch:
  - Add assertion checks inside  buildSslCertGenerationParams and
    Ssl::certificateMatchesProperties functions (a)to avoid segfaults
  - In the case the signing certificate is not given in http_port configuration
    or the given certificate filename was not valid, squid does not start.
  - Creates the http_port_list::configureSslServerContext method and move
    here the cache_cf.cc code which was responsible to initialize ssl contexts
    and sslBump feature.
src/ProtoPort.cc
src/ProtoPort.h
src/cache_cf.cc
src/client_side.cc
src/ssl/gadgets.cc
src/ssl/support.cc