aboutsummaryrefslogtreecommitdiff
path: root/libssh/auth1.c
diff options
context:
space:
mode:
authorAris Adamantiadis <aris@0xbadc0de.be>2008-11-04 21:59:12 +0000
committerAris Adamantiadis <aris@0xbadc0de.be>2008-11-04 21:59:12 +0000
commit64e73b8d8ab216c5dd8812c8cdad39b7f1bfc4d2 (patch)
tree2c5f71d247607d17b55df210adc6b75d833b3572 /libssh/auth1.c
parent90bb81f7b0a729f0508c02586b3d609950d24f2c (diff)
downloadlibssh-64e73b8d8ab216c5dd8812c8cdad39b7f1bfc4d2.tar.gz
libssh-64e73b8d8ab216c5dd8812c8cdad39b7f1bfc4d2.tar.xz
libssh-64e73b8d8ab216c5dd8812c8cdad39b7f1bfc4d2.zip
doxygen fixes. Mostly typos and some comments.
sftp must be fully documented ! git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@187 7dcaeef0-15fb-0310-b436-a5af3365683c
Diffstat (limited to 'libssh/auth1.c')
-rw-r--r--libssh/auth1.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/libssh/auth1.c b/libssh/auth1.c
index 7844d9ba..3a40aef2 100644
--- a/libssh/auth1.c
+++ b/libssh/auth1.c
@@ -51,7 +51,7 @@ static int send_username(SSH_SESSION *session, char *username){
STRING *user;
/* returns SSH_AUTH_SUCCESS or SSH_AUTH_DENIED */
if(session->auth_service_asked)
- return session->auth_service_asked;
+ return session->auth_service_asked;
buffer_add_u8(session->out_buffer,SSH_CMSG_USER);
if(!username)
if(!(username=session->options->username)){
@@ -112,6 +112,9 @@ int ssh_userauth_offer_pubkey(SSH_SESSION *session, char *username,int type, STR
return err;
}
*/
+/** \internal
+ * \todo implement ssh1 public key
+ */
int ssh_userauth1_offer_pubkey(SSH_SESSION *session, char *username, int type,
STRING *pubkey){
return SSH_AUTH_DENIED;
@@ -138,8 +141,8 @@ int ssh_userauth_pubkey(SSH_SESSION *session, char *username, STRING *publickey,
service=string_from_char("ssh-connection");
method=string_from_char("publickey");
algo=string_from_char(ssh_type_to_char(privatekey->type));
-
-
+
+
*/ /* we said previously the public key was accepted */
/* packet_clear_out(session);
buffer_add_u8(session->out_buffer,SSH2_MSG_USERAUTH_REQUEST);
@@ -196,7 +199,7 @@ int ssh_userauth1_password(SSH_SESSION *session,char *username,char *password){
string_burn(password_s);
free(password_s);
packet_send(session);
- return wait_auth1_status(session);
+ return wait_auth1_status(session);
}
#endif /* HAVE_SSH1 */