Re: SSL_CTX_set_psk_client_callback

2013-07-18 Thread Holger Weiß
* 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

SSL_CTX_set_psk_client_callback

2013-07-17 Thread Leo Leo
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.

where to get SSL_CTX_set_psk_client_callback??

2008-07-03 Thread Yong Zhang
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