aboutsummaryrefslogtreecommitdiff
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 22:06:38 +0100
commit1f689261eca006dfe11d7fd220218209a8d4d190 (patch)
tree1cb5339159381f030099fef17d1eba6001f61825 /include
parent4919771f0fea3df09ace2887ef7e0baae5b76baf (diff)
downloadlibssh-1f689261eca006dfe11d7fd220218209a8d4d190.tar.gz
libssh-1f689261eca006dfe11d7fd220218209a8d4d190.tar.xz
libssh-1f689261eca006dfe11d7fd220218209a8d4d190.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);