TLSv1.3 client callback that selects a PSK session to offer.
Declared in <openssl/ssl.h>
typedef int(* SSL_psk_use_session_cb_func)(SSL*, EVP_MD const*, unsigned char const**, size_t*, SSL_SESSION**);
1 on success, or 0 to abort the handshake.
| Name | Description |
|---|---|
| ssl | Client SSL connection establishing a PSK. |
| md | Handshake digest required by the server on a second call, or NULL on the first call. |
| id | On success, set to the application-owned PSK identity bytes. |
| idlen | Receives the length of id in bytes. |
| sess | On success, set to an SSL_SESSION transferring ownership to OpenSSL. |