diff options
Diffstat (limited to 'src/threads.c')
-rw-r--r-- | src/threads.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/threads.c b/src/threads.c index af69eeb4..ce82c6cc 100644 --- a/src/threads.c +++ b/src/threads.c @@ -49,7 +49,7 @@ struct ssh_threads_callbacks_struct ssh_threads_noop = .thread_id=threads_id_noop }; -static struct ssh_threads_callbacks_struct *user_callbacks; +static struct ssh_threads_callbacks_struct *user_callbacks =&ssh_threads_noop; #ifdef HAVE_LIBGCRYPT @@ -158,6 +158,12 @@ int ssh_threads_set_callbacks(struct ssh_threads_callbacks_struct *cb){ return SSH_OK; } +const char *ssh_threads_get_type(){ + if(user_callbacks != NULL) + return user_callbacks->type; + return NULL; +} + /** * @} */ |