diff options
author | Daniel Stenberg <daniel@haxx.se> | 2001-08-17 10:14:06 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2001-08-17 10:14:06 +0000 |
commit | 1b00298b52a2d66126ddec8688001e46b4f45f5b (patch) | |
tree | 5dc771864015dcc43ac37b3c81ec6f07525a9984 /lib/ftp.c | |
parent | 5ad4a522811b799480b6cc32335c36b62ebc98a0 (diff) |
modified to use the renamed kerberos functions with Curl_ prefix
Diffstat (limited to 'lib/ftp.c')
-rw-r--r-- | lib/ftp.c | 18 |
1 files changed, 9 insertions, 9 deletions
@@ -289,13 +289,13 @@ int Curl_GetFTPResponse(int sockfd, /* FIXME: some errorchecking perhaps... ***/ switch(code) { case 631: - sec_read_msg(conn, buf, prot_safe); + Curl_sec_read_msg(conn, buf, prot_safe); break; case 632: - sec_read_msg(conn, buf, prot_private); + Curl_sec_read_msg(conn, buf, prot_private); break; case 633: - sec_read_msg(conn, buf, prot_confidential); + Curl_sec_read_msg(conn, buf, prot_confidential); break; default: /* normal ftp stuff we pass through! */ @@ -392,13 +392,13 @@ CURLcode Curl_ftp_connect(struct connectdata *conn) if(data->bits.krb4) { /* request data protection level (default is 'clear') */ - sec_request_prot(conn, "private"); + Curl_sec_request_prot(conn, "private"); /* We set private first as default, in case the line below fails to set a valid level */ - sec_request_prot(conn, data->krb4_level); + Curl_sec_request_prot(conn, data->krb4_level); - if(sec_login(conn) != 0) + if(Curl_sec_login(conn) != 0) infof(data, "Logging in with password in cleartext!\n"); else infof(data, "Authentication successful\n"); @@ -453,13 +453,13 @@ CURLcode Curl_ftp_connect(struct connectdata *conn) * now set the requested protection level */ if(conn->sec_complete) - sec_set_protection_level(conn); + Curl_sec_set_protection_level(conn); /* we may need to issue a KAUTH here to have access to the files * do it if user supplied a password */ if(conn->data->passwd && *conn->data->passwd) - krb_kauth(conn); + Curl_krb_kauth(conn); #endif } else { @@ -554,7 +554,7 @@ CURLcode Curl_ftp_done(struct connectdata *conn) } #ifdef KRB4 - sec_fflush_fd(conn, conn->secondarysocket); + Curl_sec_fflush_fd(conn, conn->secondarysocket); #endif /* shut down the socket to inform the server we're done */ sclose(conn->secondarysocket); |