openssl/test/ossl_shim
Benjamin Kaduk 45a2353056 Fix ossl_shim SNI handling
To start with, actually set an SNI callback (copied from bssl_shim); we
weren't actually testing much otherwise (and just happened to have been
passing due to buggy libssl behavior prior to
commit 1c4aa31d79).

Also use proper C++ code for handling C strings -- when a C API
(SSL_get_servername()) returns NULL instead of a string, special-case
that instead of blindly trying to compare NULL against a std::string,
and perform the comparsion using the std::string operators instead of
falling back to pointer comparison.

Reviewed-by: Richard Levitte <levitte@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/6792)
2018-07-26 15:06:53 -05:00
..
include/openssl Cleanup some copyright stuff 2017-06-30 21:56:44 -04:00
async_bio.cc Fix invalid function type casts. 2017-12-15 19:33:48 +01:00
async_bio.h Swap header copyrights to standard OpenSSL 2016-11-04 10:38:54 +00:00
build.info Attempt to fix boringssl tests 2018-03-09 17:23:00 -06:00
ossl_config.json Fix the Boring tests following the SSLfatal() changes 2017-12-04 13:31:48 +00:00
ossl_shim.cc Fix ossl_shim SNI handling 2018-07-26 15:06:53 -05:00
packeted_bio.cc Fix invalid function type casts. 2017-12-15 19:33:48 +01:00
packeted_bio.h Update copyright year 2018-02-13 13:59:25 +00:00
test_config.cc Fix 12 Boring tests involving NULL-SHA ciphersuites 2017-03-14 14:29:31 +00:00
test_config.h Swap header copyrights to standard OpenSSL 2016-11-04 10:38:54 +00:00