1
0
mirror of https://git.libssh.org/projects/libssh.git synced 2025-11-29 01:03:57 +03:00

Fix the ifdefs.

git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@235 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
Andreas Schneider
2009-02-06 13:37:43 +00:00
parent f4bbc45bbe
commit 7ceaf5c43a
2 changed files with 3 additions and 4 deletions

View File

@@ -332,13 +332,12 @@ int ssh_userauth_pubkey(SSH_SESSION *session, const char *username, STRING *publ
return err; return err;
} }
#ifdef _WIN32 #ifndef _WIN32
/** \brief Try to authenticate through public key with ssh agent /** \brief Try to authenticate through public key with ssh agent
* \param session ssh session * \param session ssh session
* \param username username to authenticate. You can specify NULL if * \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. * 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 publickey the public key provided by the agent
* \param privatekey a private key returned by privatekey_from_file()
* \returns SSH_AUTH_ERROR : a serious error happened\n * \returns SSH_AUTH_ERROR : a serious error happened\n
* SSH_AUTH_DENIED : Authentication failed : use another method\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 * SSH_AUTH_PARTIAL : You've been partially authenticated, you still have to use another method\n

View File

@@ -620,7 +620,7 @@ static STRING *RSA_do_sign(void *payload,int len,RSA *privkey){
} }
#endif #endif
#ifdef _WIN32 #ifndef _WIN32
STRING *ssh_do_sign_with_agent(struct ssh_session *session, STRING *ssh_do_sign_with_agent(struct ssh_session *session,
struct buffer_struct *buf, struct public_key_struct *publickey) { struct buffer_struct *buf, struct public_key_struct *publickey) {
struct buffer_struct *sigbuf = NULL; struct buffer_struct *sigbuf = NULL;