Fail if we receive a response to an extension that we didn't request
authorMatt Caswell <matt@openssl.org>
Tue, 9 May 2017 12:44:25 +0000 (13:44 +0100)
committerMatt Caswell <matt@openssl.org>
Wed, 17 May 2017 14:23:49 +0000 (15:23 +0100)
commitb186a592833ea4efd8e18d053955abde179e1b3d
treeea7935b44e5e67c352c2e52486f501b449e9c3ea
parent7a94f5b0f7c878b1056a08f659ce23aa97bfa3ad
Fail if we receive a response to an extension that we didn't request

We already did this on an ad-hoc per extension basis (for some extensions).
This centralises it and makes sure we do it for all extensions.

Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3418)
ssl/ssl_locl.h
ssl/statem/extensions.c
ssl/statem/extensions_clnt.c
ssl/statem/extensions_srvr.c
ssl/statem/statem_lib.c
ssl/statem/statem_locl.h