Fix PSK identity hint handling.
authorDr. Stephen Henson <steve@openssl.org>
Mon, 14 Sep 2015 16:58:04 +0000 (17:58 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Mon, 14 Sep 2015 18:52:27 +0000 (19:52 +0100)
commitdf6da24bda457b724ba3e894e6c329a9b93d536f
tree3296a79122416d0d6dd31c6268ad6c92ba2fa2f1
parentaabd49232025807babe995006a46c4c7815ce868
Fix PSK identity hint handling.

For server use a PSK identity hint value in the CERT structure which
is inherited when SSL_new is called and which allows applications to
set hints on a per-SSL basis. The previous version of
SSL_use_psk_identity_hint tried (wrongly) to use the SSL_SESSION structure.

PR#4039

Reviewed-by: Matt Caswell <matt@openssl.org>
ssl/d1_srvr.c
ssl/s3_srvr.c
ssl/ssl_cert.c
ssl/ssl_lib.c
ssl/ssl_locl.h