![]() | ![]() | |||||||||||||||||||
| ||||||||||||||||||||
| SSL_CTX_use_psk_identity_hint(3)
NAMESSL_CTX_use_psk_identity_hint, SSL_use_psk_identity_hint, SSL_CTX_set_psk_server_callback, SSL_set_psk_server_callback - set PSK identity hint to use
SYNOPSIS#include <openssl/ssl.h> int SSL_CTX_use_psk_identity_hint(SSL_CTX *ctx, const char *hint); int SSL_use_psk_identity_hint(SSL *ssl, const char *hint); void SSL_CTX_set_psk_server_callback(SSL_CTX *ctx,
unsigned int (*callback)(SSL *ssl, const char *identity,
unsigned char *psk, int max_psk_len));
void SSL_set_psk_server_callback(SSL *ssl,
unsigned int (*callback)(SSL *ssl, const char *identity,
unsigned char *psk, int max_psk_len));
DESCRIPTION
In the case where PSK identity hint is NULL, the server does not send the ServerKeyExchange message to the client.
A server application must provide a callback function which is called when
the server receives the ClientKeyExchange message from the client. The
purpose of the callback function is to validate the received PSK identity
and to fetch the pre-shared key used during the connection setup phase. The
callback is set using functions
RETURN VALUES
Return values from the server callback are interpreted as follows:
| |||||||||||||||||||