init: Introduce internal is_ssh_initialized()

The introduced function returns whether the library is initialized or
not.

Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
(cherry picked from commit dba2114ed7)
This commit is contained in:
Anderson Toshiyuki Sasaki
2020-04-06 12:07:28 +02:00
committed by Andreas Schneider
parent 0a450f0251
commit a99b8a3979
3 changed files with 45 additions and 0 deletions

View File

@@ -32,6 +32,7 @@
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#if !defined(HAVE_STRTOULL)
# if defined(HAVE___STRTOULL)
@@ -423,4 +424,6 @@ void explicit_bzero(void *s, size_t n);
void ssh_agent_state_free(void *data);
bool is_ssh_initialized(void);
#endif /* _LIBSSH_PRIV_H */