]> git.ipfire.org Git - thirdparty/squid.git/commit
Bug 4330: Do not use SSL_METHOD::put_cipher_by_char to determine size
authorChristos Tsantilas <chtsanti@users.sourceforge.net>
Thu, 1 Oct 2015 10:46:13 +0000 (03:46 -0700)
committerAmos Jeffries <squid3@treenet.co.nz>
Thu, 1 Oct 2015 10:46:13 +0000 (03:46 -0700)
commit424361b17dc32186ea05a3abcf0ce5ffd07baf77
treea589150c77e703001d6384b4cfaf629e7f7d9e0d
parent9b69693509e118092a7447d736d8ed17eba92665
Bug 4330: Do not use SSL_METHOD::put_cipher_by_char to determine size

 ... of cipher on hello messages

The use of these methods can cause many problems in squid:
- In earlier openSSL libraries the SSL_METHOD::put_cipher_by_char method with
  NULL arguments returned the size of cipher in the SSL hello message.
  In newer openSSL releases, calling this method with NULL arguments is not
  valid any more, and can result to segfaults.
- In newer libreSSL library releases, the SSLv23_method it is used to produce
  TLS messages and does not return the size of a cipher in an v2 HELLO
  message.

This is a Measurement Factory project
src/ssl/bio.cc