From bcc2d8474ccfc96a24896b2f6d52673e61e66452 Mon Sep 17 00:00:00 2001 From: Aris Adamantiadis Date: Mon, 30 Aug 2010 23:44:03 +0200 Subject: Begin of a solution for threading --- libssh/dh.c | 9 --------- 1 file changed, 9 deletions(-) (limited to 'libssh/dh.c') 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 -#include -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); -- cgit