diff options
Diffstat (limited to 'include/libssh/priv.h')
-rw-r--r-- | include/libssh/priv.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/libssh/priv.h b/include/libssh/priv.h index c54edef..62f78ba 100644 --- a/include/libssh/priv.h +++ b/include/libssh/priv.h @@ -299,6 +299,11 @@ struct agent_struct { unsigned int count; }; +struct keys_struct { + const char *private; + const char *public; +}; + struct ssh_session { struct error_struct error; struct socket *socket; @@ -719,6 +724,9 @@ int match_hostname(const char *host, const char *pattern, unsigned int len); /** Zero a structure given a pointer to the structure */ #define ZERO_STRUCTP(x) do { if ((x) != NULL) memset((char *)(x), 0, sizeof(*(x))); } while(0) +/** Get the size of an array */ +#define ARRAY_SIZE(a) (sizeof(a)/sizeof(a[0])) + #ifdef HAVE_LIBGCRYPT /* gcrypt_missing.c */ int my_gcry_dec2bn(bignum *bn, const char *data); |