TLSv1.3 server callback that looks up a PSK session by identity.
Declared in <openssl/ssl.h>
typedef int(* SSL_psk_find_session_cb_func)(SSL*, unsigned char const*, size_t, SSL_SESSION**);
1 on success (with or without a session), or 0 to abort the handshake.
| Name | Description |
|---|---|
| ssl | Server SSL connection receiving a PSK identity. |
| identity | PSK identity bytes from the client (not necessarily NUL-terminated). |
| identity_len | Length of identity in bytes. |
| sess | On success with a PSK, set to an SSL_SESSION transferring ownership to OpenSSL; may remain unset to continue without a PSK. |