Lines Matching defs:auth

84 	char *auth;
214 initauthinfo(struct authinfo *ai, char *auth)
216 ai->auth = auth;
262 auth_url(const char *challenge, char **response, const struct authinfo *auth)
306 if (auth->user != NULL) {
307 (void)strlcpy(uuser, auth->user, sizeof(uuser));
316 if (auth->pass != NULL)
317 upass = auth->pass;
475 struct authinfo *auth, struct urlinfo *rui)
481 if (url == NULL || desc == NULL || ui == NULL || auth == NULL)
509 freeauthinfo(auth);
535 auth->user = thost;
538 cp = strchr(auth->user, ':');
541 auth->pass = ftp_strdup(cp + 1);
543 url_decode(auth->user);
544 if (auth->pass)
545 url_decode(auth->pass);
610 STRorNULL(auth->user), STRorNULL(auth->pass),
620 ftp_socket(const struct urlinfo *ui, void **ssl, struct authinfo *auth)
700 if (fuser != NULL && auth->user == NULL)
701 auth->user = ftp_strdup(fuser);
702 if (pass != NULL && auth->pass == NULL)
703 auth->pass = ftp_strdup(pass);
1073 struct authinfo *pauth, char **auth, const char *message,
1084 if (verbose || aauth.auth == NULL ||
1087 if (EMPTYSTRING(*auth)) {
1092 if (aauth.auth != NULL) {
1106 if (auth_url(*auth, &response, &aauth) == 0) {
1108 hcode == 401 ? pauth->auth : response,
1109 hcode == 401 ? response : wauth->auth,
1121 char **auth, struct urlinfo *ui)
1128 *auth = message = location = NULL;
1201 DPRINTF("%s: skipping unknown auth "
1205 FREEPTR(*auth);
1206 *auth = ftp_strdup(token);
1207 DPRINTF("%s: parsed auth as `%s'\n",
1243 pauth->auth, wauth->auth, ui);
1254 do_auth(hcode, url, penv, wauth, pauth, auth, message, rval,
1285 struct authinfo *pauth, char **auth, int *hasleading, volatile int *rval)
1296 *hasleading = print_proxy(fin, *hasleading, NULL, pauth->auth);
1336 "%s: skipping unknown auth scheme `%s'\n",
1340 FREEPTR(*auth);
1341 *auth = ftp_strdup(token);
1342 DPRINTF("%s: parsed auth as " "`%s'\n", __func__, cp);
1352 do_auth(hcode, url, penv, wauth, pauth, auth, message, rval,
1408 char *volatile auth;
1432 auth = location = message = NULL;
1596 &wauth, &pauth, __UNVOLATILE(&auth), &hasleading,
1616 hasleading = print_proxy(fin, hasleading, wauth.auth,
1617 auth ? NULL : pauth.auth);
1634 __UNVOLATILE(&auth), &ui)) {
1899 FREEPTR(auth);
1955 struct authinfo auth;
1964 initauthinfo(&auth, NULL);
1967 if ((parse_url(url, "URL", &ui, &auth, NULL) == -1) ||
1968 (auth.user != NULL && *auth.user == '\0') ||
2002 auth.user = ui.host;
2060 STRorNULL(auth.user), STRorNULL(auth.pass),
2094 (connected == 1 && !ftp_login(ui.host, auth.user, auth.pass))) {
2268 freeauthinfo(&auth);