summaryrefslogtreecommitdiffstats
path: root/libssh/dh.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2010-08-30 23:44:03 +0200
committerAris Adamantiadis <aris@0xbadc0de.be>2010-08-30 23:44:03 +0200
commitbcc2d8474ccfc96a24896b2f6d52673e61e66452 (patch)
tree18c38beee69c089cf25855d92b6e45b7f28a5c62 /libssh/dh.c
parente34da1b94dc707e9074b0958ebcd24706442bc81 (diff)
downloadlibssh-bcc2d8474ccfc96a24896b2f6d52673e61e66452.tar.gz
libssh-bcc2d8474ccfc96a24896b2f6d52673e61e66452.tar.xz
libssh-bcc2d8474ccfc96a24896b2f6d52673e61e66452.zip
Begin of a solution for threading
Diffstat (limited to 'libssh/dh.c')
-rw-r--r--libssh/dh.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/libssh/dh.c b/libssh/dh.c
index d6166a0..c81ed8f 100644
--- a/libssh/dh.c
+++ b/libssh/dh.c
@@ -104,13 +104,6 @@ int ssh_get_random(void *where, int len, int strong){
return 1;
}
-#ifdef HAVE_LIBGCRYPT
-#include <errno.h>
-#include <pthread.h>
-GCRY_THREAD_OPTION_PTHREAD_IMPL;
-#endif
-
-
/*
* This inits the values g and p which are used for DH key agreement
* FIXME: Make the function thread safe by adding a semaphore or mutex.
@@ -119,8 +112,6 @@ int ssh_crypto_init(void) {
if (ssh_crypto_initialized == 0) {
#ifdef HAVE_LIBGCRYPT
gcry_check_version(NULL);
- gcry_control(GCRYCTL_SET_THREAD_CBS, &gcry_threads_pthread);
-
if (!gcry_control(GCRYCTL_INITIALIZATION_FINISHED_P,0)) {
gcry_control(GCRYCTL_INIT_SECMEM, 4096);
gcry_control(GCRYCTL_INITIALIZATION_FINISHED,0);