summaryrefslogtreecommitdiff
path: root/lib/http_negotiate.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2019-05-11 12:57:42 +0100
committerSteve Holme <steve_holme@hotmail.com>2019-05-12 18:37:00 +0100
commit52dfab65d6822d1281bb62ebc5c46cd2b7501487 (patch)
tree7af042b2ee44ac4912a16f031364cd9908dbed27 /lib/http_negotiate.c
parent4d8461ae8aef6140d7b3222dda6c3e078ad076be (diff)
downloadcurl-52dfab65d6822d1281bb62ebc5c46cd2b7501487.tar.gz
auth: Rename the various authentication clean up functions
For consistency and to a avoid confusion. Closes #3869
Diffstat (limited to 'lib/http_negotiate.c')
-rw-r--r--lib/http_negotiate.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/http_negotiate.c b/lib/http_negotiate.c
index 201c3a785..7930cf67b 100644
--- a/lib/http_negotiate.c
+++ b/lib/http_negotiate.c
@@ -84,12 +84,12 @@ CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy,
if(!len) {
if(neg_ctx->state == GSS_AUTHSUCC) {
infof(conn->data, "Negotiate auth restarted\n");
- Curl_cleanup_negotiate(conn);
+ Curl_http_auth_cleanup_negotiate(conn);
}
else if(neg_ctx->state != GSS_AUTHNONE) {
/* The server rejected our authentication and hasn't supplied any more
negotiation mechanisms */
- Curl_cleanup_negotiate(conn);
+ Curl_http_auth_cleanup_negotiate(conn);
return CURLE_LOGIN_DENIED;
}
}
@@ -104,7 +104,7 @@ CURLcode Curl_input_negotiate(struct connectdata *conn, bool proxy,
host, header, neg_ctx);
if(result)
- Curl_auth_spnego_cleanup(neg_ctx);
+ Curl_auth_cleanup_spnego(neg_ctx);
return result;
}
@@ -139,7 +139,7 @@ CURLcode Curl_output_negotiate(struct connectdata *conn, bool proxy)
if(neg_ctx->noauthpersist && neg_ctx->state == GSS_AUTHSUCC) {
infof(conn->data, "Curl_output_negotiate, "
"no persistent authentication: cleanup existing context");
- Curl_auth_spnego_cleanup(neg_ctx);
+ Curl_auth_cleanup_spnego(neg_ctx);
}
if(!neg_ctx->context) {
result = Curl_input_negotiate(conn, proxy, "Negotiate");
@@ -203,10 +203,10 @@ CURLcode Curl_output_negotiate(struct connectdata *conn, bool proxy)
return CURLE_OK;
}
-void Curl_cleanup_negotiate(struct connectdata *conn)
+void Curl_http_auth_cleanup_negotiate(struct connectdata *conn)
{
- Curl_auth_spnego_cleanup(&conn->negotiate);
- Curl_auth_spnego_cleanup(&conn->proxyneg);
+ Curl_auth_cleanup_spnego(&conn->negotiate);
+ Curl_auth_cleanup_spnego(&conn->proxyneg);
}
#endif /* !CURL_DISABLE_HTTP && USE_SPNEGO */