Re: Add user-defined argument in TLS 1.3 External PSK callback

2020-04-16 Thread Matt Caswell
On 16/04/2020 00:12, brandon.murphy1996 via openssl-users wrote: > Currently, the psk_use_session_cb_func() contains a hardcoded PSK and > identity value. However, I want to send an extra argument (preferably > a custom struct) to this callback that will contain the pre-shared > key and identity

Add user-defined argument in TLS 1.3 External PSK callback

2020-04-15 Thread brandon.murphy1996 via openssl-users
Hi, For my project, I need to perform a external PSK mode TLS 1.3 handshake. As per the documentation, I am setting up a callback on client my SSL object using the following: SSL_set_psk_use_session_callback(ssl, psk_use_session_cb_func) and the callback's formal arguments are: typedef int (*