mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -05:00
Curl_ prefix added to a few function calls
This commit is contained in:
parent
6c2a9009e9
commit
429b09ee04
14
lib/krb4.c
14
lib/krb4.c
@ -311,7 +311,7 @@ void Curl_krb_kauth(struct connectdata *conn)
|
|||||||
|
|
||||||
int save;
|
int save;
|
||||||
|
|
||||||
save = set_command_prot(conn, prot_private);
|
save = Curl_set_command_prot(conn, prot_private);
|
||||||
|
|
||||||
Curl_ftpsendf(conn->firstsocket, conn,
|
Curl_ftpsendf(conn->firstsocket, conn,
|
||||||
"SITE KAUTH %s", conn->data->user);
|
"SITE KAUTH %s", conn->data->user);
|
||||||
@ -322,7 +322,7 @@ void Curl_krb_kauth(struct connectdata *conn)
|
|||||||
return /*CURLE_OPERATION_TIMEOUTED*/;
|
return /*CURLE_OPERATION_TIMEOUTED*/;
|
||||||
|
|
||||||
if(/*ret != CONTINUE*/conn->data->buffer[0] != '3'){
|
if(/*ret != CONTINUE*/conn->data->buffer[0] != '3'){
|
||||||
set_command_prot(conn, save);
|
Curl_set_command_prot(conn, save);
|
||||||
/*code = -1;***/
|
/*code = -1;***/
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -330,7 +330,7 @@ void Curl_krb_kauth(struct connectdata *conn)
|
|||||||
p = strstr(conn->data->buffer, "T=");
|
p = strstr(conn->data->buffer, "T=");
|
||||||
if(!p) {
|
if(!p) {
|
||||||
printf("Bad reply from server.\n");
|
printf("Bad reply from server.\n");
|
||||||
set_command_prot(conn, save);
|
Curl_set_command_prot(conn, save);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -338,7 +338,7 @@ void Curl_krb_kauth(struct connectdata *conn)
|
|||||||
tmp = Curl_base64_decode(p, &tkt.dat);
|
tmp = Curl_base64_decode(p, &tkt.dat);
|
||||||
if(tmp < 0) {
|
if(tmp < 0) {
|
||||||
printf("Failed to decode base64 in reply.\n");
|
printf("Failed to decode base64 in reply.\n");
|
||||||
set_command_prot(conn, save);
|
Curl_set_command_prot(conn, save);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
tkt.length = tmp;
|
tkt.length = tmp;
|
||||||
@ -347,7 +347,7 @@ void Curl_krb_kauth(struct connectdata *conn)
|
|||||||
p = strstr(conn->data->buffer, "P=");
|
p = strstr(conn->data->buffer, "P=");
|
||||||
if(!p) {
|
if(!p) {
|
||||||
printf("Bad reply from server.\n");
|
printf("Bad reply from server.\n");
|
||||||
set_command_prot(conn, save);
|
Curl_set_command_prot(conn, save);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
name = p + 2;
|
name = p + 2;
|
||||||
@ -375,7 +375,7 @@ void Curl_krb_kauth(struct connectdata *conn)
|
|||||||
memset(passwd, 0, sizeof(passwd));
|
memset(passwd, 0, sizeof(passwd));
|
||||||
if(Curl_base64_encode(tktcopy.dat, tktcopy.length, &p) < 0) {
|
if(Curl_base64_encode(tktcopy.dat, tktcopy.length, &p) < 0) {
|
||||||
failf(conn->data, "Out of memory base64-encoding.\n");
|
failf(conn->data, "Out of memory base64-encoding.\n");
|
||||||
set_command_prot(conn, save);
|
Curl_set_command_prot(conn, save);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
memset (tktcopy.dat, 0, tktcopy.length);
|
memset (tktcopy.dat, 0, tktcopy.length);
|
||||||
@ -388,7 +388,7 @@ void Curl_krb_kauth(struct connectdata *conn)
|
|||||||
if(nread < 0)
|
if(nread < 0)
|
||||||
return /*CURLE_OPERATION_TIMEOUTED*/;
|
return /*CURLE_OPERATION_TIMEOUTED*/;
|
||||||
free(p);
|
free(p);
|
||||||
set_command_prot(conn, save);
|
Curl_set_command_prot(conn, save);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif /* KRB4 */
|
#endif /* KRB4 */
|
||||||
|
Loading…
Reference in New Issue
Block a user