mirror of
https://git.libssh.org/projects/libssh.git
synced 2025-11-29 01:03:57 +03:00
Fix build warnings of the auth code.
git-svn-id: svn+ssh://svn.berlios.de/svnroot/repos/libssh/trunk@205 7dcaeef0-15fb-0310-b436-a5af3365683c
This commit is contained in:
@@ -317,6 +317,7 @@ int buffer_get_len(BUFFER *buffer);
|
|||||||
|
|
||||||
|
|
||||||
/* in auth.c */
|
/* in auth.c */
|
||||||
|
int ssh_auth_list(SSH_SESSION *session);
|
||||||
/* these functions returns AUTH_ERROR is some serious error has happened,
|
/* these functions returns AUTH_ERROR is some serious error has happened,
|
||||||
AUTH_SUCCESS if success,
|
AUTH_SUCCESS if success,
|
||||||
AUTH_PARTIAL if partial success,
|
AUTH_PARTIAL if partial success,
|
||||||
@@ -331,7 +332,7 @@ int ssh_userauth_kbdint(SSH_SESSION *session, const char *user, const char *subm
|
|||||||
int ssh_userauth_kbdint_getnprompts(SSH_SESSION *session);
|
int ssh_userauth_kbdint_getnprompts(SSH_SESSION *session);
|
||||||
char *ssh_userauth_kbdint_getname(SSH_SESSION *session);
|
char *ssh_userauth_kbdint_getname(SSH_SESSION *session);
|
||||||
char *ssh_userauth_kbdint_getinstruction(SSH_SESSION *session);
|
char *ssh_userauth_kbdint_getinstruction(SSH_SESSION *session);
|
||||||
char *ssh_userauth_kbdint_getprompt(SSH_SESSION *session, int i, char *echo);
|
char *ssh_userauth_kbdint_getprompt(SSH_SESSION *session, unsigned int i, char *echo);
|
||||||
void ssh_userauth_kbdint_setanswer(SSH_SESSION *session, unsigned int i, const char *answer);
|
void ssh_userauth_kbdint_setanswer(SSH_SESSION *session, unsigned int i, const char *answer);
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -54,7 +54,6 @@ static int wait_auth_status(SSH_SESSION *session,int kbdint){
|
|||||||
int cont=1;
|
int cont=1;
|
||||||
STRING *auth;
|
STRING *auth;
|
||||||
u8 partial=0;
|
u8 partial=0;
|
||||||
int todo = 0;
|
|
||||||
char *auth_methods = NULL;
|
char *auth_methods = NULL;
|
||||||
enter_function();
|
enter_function();
|
||||||
while(cont){
|
while(cont){
|
||||||
@@ -823,9 +822,9 @@ char *ssh_userauth_kbdint_getinstruction(SSH_SESSION *session){
|
|||||||
* \returns pointer to the prompt. Do not free it
|
* \returns pointer to the prompt. Do not free it
|
||||||
*/
|
*/
|
||||||
|
|
||||||
char *ssh_userauth_kbdint_getprompt(SSH_SESSION *session, int i,
|
char *ssh_userauth_kbdint_getprompt(SSH_SESSION *session, unsigned int i,
|
||||||
char *echo){
|
char *echo){
|
||||||
if(i > session->kbdint->nprompts || i<0)
|
if(i > session->kbdint->nprompts)
|
||||||
return NULL;
|
return NULL;
|
||||||
if(echo)
|
if(echo)
|
||||||
*echo=session->kbdint->echo[i];
|
*echo=session->kbdint->echo[i];
|
||||||
|
|||||||
Reference in New Issue
Block a user