summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2014-01-08 16:58:49 +0100
committerAris Adamantiadis <aris@0xbadc0de.be>2014-01-08 18:57:31 +0100
commit57ef959aa3e785658d68c91a7e7ba78cc5dc75f6 (patch)
tree0ae65b464f3553836e108dd4de9a6696d8553f55 /include
parentb617d7fa29f1dfbd481b32f08c9602bf236c339c (diff)
downloadlibssh-57ef959aa3e785658d68c91a7e7ba78cc5dc75f6.tar.gz
libssh-57ef959aa3e785658d68c91a7e7ba78cc5dc75f6.tar.xz
libssh-57ef959aa3e785658d68c91a7e7ba78cc5dc75f6.zip
threads: support libgcrypt 1.6 hack
Not 100% satisfied of this patch, but the way libgcrypt handles threading in 1.6 is not compatible with custom handlers. The new code basicaly uses pthreads in every case. This will probably not work on windows.
Diffstat (limited to 'include')
-rw-r--r--include/libssh/callbacks.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/libssh/callbacks.h b/include/libssh/callbacks.h
index a841f2e5..9aa8bab7 100644
--- a/include/libssh/callbacks.h
+++ b/include/libssh/callbacks.h
@@ -801,6 +801,8 @@ struct ssh_threads_callbacks_struct {
*
* @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.
*/
LIBSSH_API int ssh_threads_set_callbacks(struct ssh_threads_callbacks_struct
*cb);