Added a global poll context

This commit is contained in:
Aris Adamantiadis
2009-12-11 21:11:23 +01:00
parent 79b4bf4ac2
commit 80b6cf77b0
4 changed files with 56 additions and 28 deletions

View File

@@ -25,7 +25,7 @@
#include "libssh/priv.h"
#include "libssh/socket.h"
#include "libssh/dh.h"
#include "libssh/poll.h"
#ifdef _WIN32
#include <winsock2.h>
#endif
@@ -63,6 +63,7 @@ int ssh_init(void) {
@returns 0 otherwise
*/
int ssh_finalize(void) {
ssh_free_global_poll_ctx();
ssh_regex_finalize();
ssh_crypto_finalize();
#ifdef HAVE_LIBGCRYPT