diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-04-28 19:33:28 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-04-28 19:33:28 +0000 |
commit | 2c75ad7e19dd79ef94e45788d8cfa94ca0844151 (patch) | |
tree | 9776307d79b0251313a657e2aa5c204e6fddafec /include/libssh/priv.h | |
parent | 9f7d4d2d60b4f6ff2f2305b6db75dd85f82577f5 (diff) | |
download | libssh-2c75ad7e19dd79ef94e45788d8cfa94ca0844151.tar.gz libssh-2c75ad7e19dd79ef94e45788d8cfa94ca0844151.tar.xz libssh-2c75ad7e19dd79ef94e45788d8cfa94ca0844151.zip |
Improve auto public key authentication.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@636 7dcaeef0-15fb-0310-b436-a5af3365683c
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); |