Skip to content
Commit d6be3124 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

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: default avatarTim Hudson <tjh@openssl.org>
(cherry picked from commit 3c66a669)
parent eb0e2a5c
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment