]> granicus.if.org Git - openssl/commit
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 12:04:42 +0000 (13:04 +0100)
commit1392c238657ec745af6a40def03d67d4ce02a082
tree6087b67c2bf8691dd4021c2940f5c1667d7c63c4
parent989ba38f7fa27e567612ab717975c82215c591ba
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>
(cherry picked from commit 3c66a669dfc7b3792f7af0758ea26fe8502ce70c)
ssl/s3_clnt.c
ssl/s3_srvr.c