summaryrefslogtreecommitdiff
path: root/libs/libssh2/src/global.c
diff options
context:
space:
mode:
Diffstat (limited to 'libs/libssh2/src/global.c')
-rw-r--r--libs/libssh2/src/global.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/libs/libssh2/src/global.c b/libs/libssh2/src/global.c
index dc45e70036..f88eb33da3 100644
--- a/libs/libssh2/src/global.c
+++ b/libs/libssh2/src/global.c
@@ -44,9 +44,8 @@ static int _libssh2_init_flags = 0;
LIBSSH2_API int
libssh2_init(int flags)
{
- if (_libssh2_initialized == 0 && !(flags & LIBSSH2_INIT_NO_CRYPTO)) {
+ if(_libssh2_initialized == 0 && !(flags & LIBSSH2_INIT_NO_CRYPTO)) {
libssh2_crypto_init();
- _libssh2_init_aes_ctr();
}
_libssh2_initialized++;
@@ -58,12 +57,12 @@ libssh2_init(int flags)
LIBSSH2_API void
libssh2_exit(void)
{
- if (_libssh2_initialized == 0)
+ if(_libssh2_initialized == 0)
return;
_libssh2_initialized--;
- if (!(_libssh2_init_flags & LIBSSH2_INIT_NO_CRYPTO)) {
+ if(!(_libssh2_init_flags & LIBSSH2_INIT_NO_CRYPTO)) {
libssh2_crypto_exit();
}
@@ -73,6 +72,6 @@ libssh2_exit(void)
void
_libssh2_init_if_needed(void)
{
- if (_libssh2_initialized == 0)
+ if(_libssh2_initialized == 0)
(void)libssh2_init (0);
}