Simplify key_exchange_expected() logic
authorMatt Caswell <matt@openssl.org>
Fri, 15 Jul 2016 09:04:11 +0000 (10:04 +0100)
committerMatt Caswell <matt@openssl.org>
Mon, 18 Jul 2016 13:30:14 +0000 (14:30 +0100)
commit7d2c13a705acfad1827634e89356a72999a641a2
treee4127fff42d8cee89bae75d15e88d662d8c16e04
parent1b5c44b810f8d807ba9a98d766bfef8f53b08960
Simplify key_exchange_expected() logic

The static function key_exchange_expected() used to return -1 on error.
Commit 361a119127 changed that so that it can never fail. This means that
some tidy up can be done to simplify error handling in callers of that
function.

Reviewed-by: Emilia Käsper <emilia@openssl.org>
ssl/statem/statem_clnt.c