Lines Matching refs:nego
81 struct negotiatedata *nego) in Curl_auth_decode_spnego_message() argument
96 if(nego->context && nego->status == GSS_S_COMPLETE) { in Curl_auth_decode_spnego_message()
100 Curl_auth_spnego_cleanup(nego); in Curl_auth_decode_spnego_message()
104 if(!nego->spn) { in Curl_auth_decode_spnego_message()
117 &nego->spn); in Curl_auth_decode_spnego_message()
153 &nego->context, in Curl_auth_decode_spnego_message()
154 nego->spn, in Curl_auth_decode_spnego_message()
165 nego->status = major_status; in Curl_auth_decode_spnego_message()
184 if(nego->output_token.length && nego->output_token.value) in Curl_auth_decode_spnego_message()
185 gss_release_buffer(&unused_status, &nego->output_token); in Curl_auth_decode_spnego_message()
187 nego->output_token = output_token; in Curl_auth_decode_spnego_message()
209 struct negotiatedata *nego, in Curl_auth_create_spnego_message() argument
217 nego->output_token.value, in Curl_auth_create_spnego_message()
218 nego->output_token.length, in Curl_auth_create_spnego_message()
222 gss_release_buffer(&minor_status, &nego->output_token); in Curl_auth_create_spnego_message()
223 nego->output_token.value = NULL; in Curl_auth_create_spnego_message()
224 nego->output_token.length = 0; in Curl_auth_create_spnego_message()
230 gss_release_buffer(&minor_status, &nego->output_token); in Curl_auth_create_spnego_message()
231 nego->output_token.value = NULL; in Curl_auth_create_spnego_message()
232 nego->output_token.length = 0; in Curl_auth_create_spnego_message()
250 void Curl_auth_spnego_cleanup(struct negotiatedata *nego) in Curl_auth_spnego_cleanup() argument
255 if(nego->context != GSS_C_NO_CONTEXT) { in Curl_auth_spnego_cleanup()
256 gss_delete_sec_context(&minor_status, &nego->context, GSS_C_NO_BUFFER); in Curl_auth_spnego_cleanup()
257 nego->context = GSS_C_NO_CONTEXT; in Curl_auth_spnego_cleanup()
261 if(nego->output_token.value) { in Curl_auth_spnego_cleanup()
262 gss_release_buffer(&minor_status, &nego->output_token); in Curl_auth_spnego_cleanup()
263 nego->output_token.value = NULL; in Curl_auth_spnego_cleanup()
264 nego->output_token.length = 0; in Curl_auth_spnego_cleanup()
269 if(nego->spn != GSS_C_NO_NAME) { in Curl_auth_spnego_cleanup()
270 gss_release_name(&minor_status, &nego->spn); in Curl_auth_spnego_cleanup()
271 nego->spn = GSS_C_NO_NAME; in Curl_auth_spnego_cleanup()
275 nego->status = 0; in Curl_auth_spnego_cleanup()
276 nego->state = GSS_AUTHNONE; in Curl_auth_spnego_cleanup()
277 nego->noauthpersist = FALSE; in Curl_auth_spnego_cleanup()
278 nego->havenoauthpersist = FALSE; in Curl_auth_spnego_cleanup()
279 nego->havenegdata = FALSE; in Curl_auth_spnego_cleanup()
280 nego->havemultiplerequests = FALSE; in Curl_auth_spnego_cleanup()