This is necessary if your program is using libssh in a multithreaded fashion.
This function must be called first, outside of any threading context (in your
main() function for instance), before you call ssh_init().
@paramin cb A pointer to a ssh_threads_callbacks_struct structure, which
contains the different callbacks to be set.
@returns Always returns SSH_OK.
@see ssh_threads_callbacks_struct
@see SSH_THREADS_PTHREAD
@bug libgcrypt 1.6 and bigger backend does not support custom callback.
Using anything else than pthreads here will fail.
@brief Set the thread callbacks structure.
This is necessary if your program is using libssh in a multithreaded fashion. This function must be called first, outside of any threading context (in your main() function for instance), before you call ssh_init().
@paramin cb A pointer to a ssh_threads_callbacks_struct structure, which contains the different callbacks to be set.
@returns Always returns SSH_OK.
@see ssh_threads_callbacks_struct @see SSH_THREADS_PTHREAD @bug libgcrypt 1.6 and bigger backend does not support custom callback. Using anything else than pthreads here will fail.