http_negotiate: We prefer 'CURLcode result'
Continuing commit 0eb3d15ccb
more return code variable name changes.
This commit is contained in:
parent
64814739d5
commit
07ac29a058
@ -115,7 +115,7 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
|
|||||||
int ret;
|
int ret;
|
||||||
size_t len;
|
size_t len;
|
||||||
size_t rawlen = 0;
|
size_t rawlen = 0;
|
||||||
CURLcode error;
|
CURLcode result;
|
||||||
|
|
||||||
if(neg_ctx->context && neg_ctx->status == GSS_S_COMPLETE) {
|
if(neg_ctx->context && neg_ctx->status == GSS_S_COMPLETE) {
|
||||||
/* We finished successfully our part of authentication, but server
|
/* We finished successfully our part of authentication, but server
|
||||||
@ -135,9 +135,9 @@ int Curl_input_negotiate(struct connectdata *conn, bool proxy,
|
|||||||
|
|
||||||
len = strlen(header);
|
len = strlen(header);
|
||||||
if(len > 0) {
|
if(len > 0) {
|
||||||
error = Curl_base64_decode(header,
|
result = Curl_base64_decode(header, (unsigned char **)&input_token.value,
|
||||||
(unsigned char **)&input_token.value, &rawlen);
|
&rawlen);
|
||||||
if(error || rawlen == 0)
|
if(result || rawlen == 0)
|
||||||
return -1;
|
return -1;
|
||||||
input_token.length = rawlen;
|
input_token.length = rawlen;
|
||||||
|
|
||||||
@ -181,18 +181,18 @@ CURLcode Curl_output_negotiate(struct connectdata *conn, bool proxy)
|
|||||||
char *encoded = NULL;
|
char *encoded = NULL;
|
||||||
size_t len = 0;
|
size_t len = 0;
|
||||||
char *userp;
|
char *userp;
|
||||||
CURLcode error;
|
CURLcode result;
|
||||||
OM_uint32 discard_st;
|
OM_uint32 discard_st;
|
||||||
|
|
||||||
error = Curl_base64_encode(conn->data,
|
result = Curl_base64_encode(conn->data,
|
||||||
neg_ctx->output_token.value,
|
neg_ctx->output_token.value,
|
||||||
neg_ctx->output_token.length,
|
neg_ctx->output_token.length,
|
||||||
&encoded, &len);
|
&encoded, &len);
|
||||||
if(error) {
|
if(result) {
|
||||||
gss_release_buffer(&discard_st, &neg_ctx->output_token);
|
gss_release_buffer(&discard_st, &neg_ctx->output_token);
|
||||||
neg_ctx->output_token.value = NULL;
|
neg_ctx->output_token.value = NULL;
|
||||||
neg_ctx->output_token.length = 0;
|
neg_ctx->output_token.length = 0;
|
||||||
return error;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!encoded || !len) {
|
if(!encoded || !len) {
|
||||||
|
Loading…
Reference in New Issue
Block a user