diff options
author | Andreas Schneider <mail@cynapses.org> | 2009-02-06 13:37:43 +0000 |
---|---|---|
committer | Andreas Schneider <mail@cynapses.org> | 2009-02-06 13:37:43 +0000 |
commit | 7ceaf5c43af77666093638e7a5e67faf86aba9cc (patch) | |
tree | 79521e0e12f603a6dab1c395e0704c97682ae84a /libssh/auth.c | |
parent | f4bbc45bbe7cc5caa494d89c03681cdacb3c63a6 (diff) | |
download | libssh-7ceaf5c43af77666093638e7a5e67faf86aba9cc.tar.gz libssh-7ceaf5c43af77666093638e7a5e67faf86aba9cc.tar.xz libssh-7ceaf5c43af77666093638e7a5e67faf86aba9cc.zip |
Fix the ifdefs.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@235 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/auth.c')
-rw-r--r-- | libssh/auth.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/libssh/auth.c b/libssh/auth.c index 0bd67903..3ec00caa 100644 --- a/libssh/auth.c +++ b/libssh/auth.c @@ -332,13 +332,12 @@ int ssh_userauth_pubkey(SSH_SESSION *session, const char *username, STRING *publ return err; } -#ifdef _WIN32 +#ifndef _WIN32 /** \brief Try to authenticate through public key with ssh agent * \param session ssh session * \param username username to authenticate. You can specify NULL if * ssh_option_set_username() has been used. You cannot try two different logins in a row. - * \param publickey a public key returned by publickey_from_file() - * \param privatekey a private key returned by privatekey_from_file() + * \param publickey the public key provided by the agent * \returns SSH_AUTH_ERROR : a serious error happened\n * SSH_AUTH_DENIED : Authentication failed : use another method\n * SSH_AUTH_PARTIAL : You've been partially authenticated, you still have to use another method\n |