TLSv1.3 client callback that selects a PSK session to offer.
Synopsis
Declared in <openssl/ssl.h>
typedef int(* SSL_psk_use_session_cb_func)(SSL*, EVP_MD const*, unsigned char const**, size_t*, SSL_SESSION**);
Return Value
1 on success, or 0 to abort the handshake.
Parameters
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 |
sess |
On success, set to an SSL_SESSION transferring ownership to OpenSSL. |
Created with MrDocs