Lines Matching refs:callback

11 - set PSK client callback
45 The callback function is given a pointer to the SSL connection in B<ssl>.
47 The first time the callback is called for a connection the B<md> parameter is
48 NULL. In some circumstances the callback will be called a second time. In that
51 given in B<md>. The PSK returned by the callback is allowed to be different
54 On successful completion the callback must store a pointer to an identifier for
59 Additionally the callback should store a pointer to an SSL_SESSION object in
96 It is also possible for the callback to succeed but not supply a PSK. In this
98 this the callback should return successfully and ensure that B<*sess> is
102 provide a different callback function. This function will be called when the
105 The purpose of the callback function is to select the PSK identity and
108 The callback is set using functions SSL_CTX_set_psk_client_callback()
109 or SSL_set_psk_client_callback(). The callback function is given the
117 The callback for use in TLSv1.2 will also work in TLSv1.3 although it is
120 been negotiated then OpenSSL will first check to see if a callback has been set
122 and it will use that in preference. If no such callback is present then it will
123 check to see if a callback has been set via SSL_CTX_set_psk_client_callback() or
127 B<SSL_psk_use_session_cb_func> callback, and are not possible with the
128 B<SSL_psk_client_cb_func> callback.
132 Note that parameter B<hint> given to the callback may be B<NULL>.
147 Return values from the B<SSL_psk_client_cb_func> callback are interpreted as
150 On success (callback found a PSK identity and a pre-shared key to use)
153 Otherwise or on errors the callback should return 0. In this case
156 The SSL_psk_use_session_cb_func callback should return 1 on success or 0 on