Daniel Kahn Gillmor 720b6cbe4a Avoid failing s_server when client's psk_identity is unexpected
s_server has traditionally been very brittle in PSK mode.  If the
client offered any PSK identity other than "Client_identity" s_server
would simply abort.

This is breakage for breakage's sake, and unlike most other parts of
s_server, which tend to allow more flexible connections.

This change accomplishes two things:

 * when the client's psk_identity does *not* match the identity
   expected by the server, just warn, don't fail.

 * allow the server to expect instead a different psk_identity from
   the client besides "Client_identity"

Signed-off-by: Daniel Kahn Gillmor <dkg@fifthhorseman.net>

Reviewed-by: Ben Kaduk <kaduk@mit.edu>
Reviewed-by: Rich Salz <rsalz@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/3605)
2017-06-05 13:54:10 -04:00
..
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2017-03-30 00:40:31 +02:00
2016-12-13 12:12:35 -05:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2016-10-26 13:59:52 -04:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2017-06-01 16:32:50 -04:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00
2016-11-11 13:06:43 +01:00
2017-03-30 14:16:41 +02:00
2017-03-30 14:16:41 +02:00