PSK server callback that supplies the pre-shared key for a client identity.
Declared in <openssl/ssl.h>
typedef unsigned int(* SSL_psk_server_cb_func)(SSL*, char const*, unsigned char*, unsigned int);
Length of the key written to psk, or 0 to abort the handshake.
| Name | Description |
|---|---|
| ssl | Server SSL connection negotiating PSK. |
| identity | NUL-terminated PSK identity from the client, or NULL. |
| psk | Buffer receiving up to max_psk_len key bytes. |
| max_psk_len | Capacity of psk in bytes. |