Fix PSK handling.
authorDr. Stephen Henson <steve@openssl.org>
Wed, 1 Jul 2015 22:40:03 +0000 (23:40 +0100)
committerDr. Stephen Henson <steve@openssl.org>
Thu, 2 Jul 2015 11:01:27 +0000 (12:01 +0100)
commit3c66a669dfc7b3792f7af0758ea26fe8502ce70c
tree79574bda22310ae39f8716b570774b56cd31c024
parentf8f75a7e4a7746caba9cab843e14ed6a41dfad21
Fix PSK handling.

The PSK identity hint should be stored in the SSL_SESSION structure
and not in the parent context (which will overwrite values used
by other SSL structures with the same SSL_CTX).

Use BUF_strndup when copying identity as it may not be null terminated.

Reviewed-by: Tim Hudson <tjh@openssl.org>
ssl/s3_clnt.c
ssl/s3_srvr.c