Previous: Thread safety, Up: Introduction to the library [Contents][Index]
There are several cases where GnuTLS may need out of band input from your program. This is now implemented using some callback functions, which your program is expected to register.
An example of this type of functions are the push and pull callbacks which are used to specify the functions that will retrieve and send data to the transport layer.
gnutls_transport_set_push_functiongnutls_transport_set_pull_functionOther callback functions may require more complicated input and data
to be allocated. Such an example is
gnutls_srp_set_server_credentials_function.
All callbacks should allocate and free memory using
gnutls_malloc and gnutls_free.