(sec_login): if mechanism returns AUTH_CONTINUE, just continue with

the next mechanism, this fixes the case of having GSSAPI fail because
of non-existant of expired tickets


git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5862 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Johan Danielsson
1999-04-07 14:16:48 +00:00
parent ec1fbd51a1
commit dd8524937b

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 1998 Kungliga Tekniska H<>gskolan
* Copyright (c) 1998, 1999 Kungliga Tekniska H<>gskolan
* (Royal Institute of Technology, Stockholm, Sweden).
* All rights reserved.
*
@@ -686,7 +686,7 @@ sec_login(char *host)
}else if(code == 534){
printf("%s rejected as security mechanism.\n", (*m)->name);
}else if(ret == ERROR) {
printf("The server doesn't understand the FTP "
printf("The server doesn't support the FTP "
"security extensions.\n");
verbose = old_verbose;
return -1;
@@ -696,7 +696,9 @@ sec_login(char *host)
ret = (*(*m)->auth)(app_data, host);
if(ret != 0){
if(ret == AUTH_CONTINUE)
continue;
else if(ret != AUTH_OK){
/* mechanism is supposed to output error string */
verbose = old_verbose;
return -1;