* Leo Leo [2013-07-17 13:57]:
> I haven't understood exactly the reason of this callback and I'd like to
> know if it's for what I need.
The purpose of this callback is to provide OpenSSL with the PSK identity
and the pre-shared key to use.
> could you explain how to use the parameters?
The man
Hi all,
I haven't understood exactly the reason of this callback and I'd like to know
if it's for what I need.
The callback is related with key exchange.
If this callback is not set, the openssl uses the private key stored into ssl
or ctx structure for decrypting the session key exchanged.
SSL_CTX_set_psk_client_callback(SSL_CTX *ctx,
unsigned int (*callback)(SSL *ssl, const char *hint,
char *identity, unsigned int max_identity_len,
unsigned char *psk, unsigned int max_psk_len));
void SSL_set_psk_client_callback(SSL *ssl,
unsigned int (*callback)(SSL *ssl, const