security.c: Fix Curl_sec_login after rewrite.

Curl_sec_login was returning the opposite result that the code in ftp.c
was expecting. Simplified the return code (using a CURLcode) so to see
more clearly what is going on.
This commit is contained in:
Julien Chaffraix
2010-09-26 19:14:50 -07:00
parent bfbc4c7e00
commit fc9f369829
3 changed files with 4 additions and 5 deletions

View File

@@ -58,7 +58,7 @@ int Curl_sec_fprintf2(struct connectdata *conn, FILE *f, const char *fmt, ...);
int Curl_sec_vfprintf2(struct connectdata *conn, FILE *, const char *, va_list);
void Curl_sec_end (struct connectdata *);
int Curl_sec_login (struct connectdata *);
CURLcode Curl_sec_login (struct connectdata *);
void Curl_sec_prot (int, char **);
int Curl_sec_request_prot (struct connectdata *conn, const char *level);
int Curl_sec_set_protection_level(struct connectdata *conn);