Lines Matching refs:sspi_w_token
79 SecBuffer sspi_send_token, sspi_recv_token, sspi_w_token[3]; in Curl_SOCKS5_gssapi_negotiate() local
136 wrap_desc.pBuffers = sspi_w_token; in Curl_SOCKS5_gssapi_negotiate()
407 sspi_w_token[0].cbBuffer = sspi_sizes.cbSecurityTrailer; in Curl_SOCKS5_gssapi_negotiate()
408 sspi_w_token[0].BufferType = SECBUFFER_TOKEN; in Curl_SOCKS5_gssapi_negotiate()
409 sspi_w_token[0].pvBuffer = malloc(sspi_sizes.cbSecurityTrailer); in Curl_SOCKS5_gssapi_negotiate()
411 if(!sspi_w_token[0].pvBuffer) { in Curl_SOCKS5_gssapi_negotiate()
416 sspi_w_token[1].cbBuffer = 1; in Curl_SOCKS5_gssapi_negotiate()
417 sspi_w_token[1].pvBuffer = malloc(1); in Curl_SOCKS5_gssapi_negotiate()
418 if(!sspi_w_token[1].pvBuffer) { in Curl_SOCKS5_gssapi_negotiate()
419 Curl_pSecFn->FreeContextBuffer(sspi_w_token[0].pvBuffer); in Curl_SOCKS5_gssapi_negotiate()
424 memcpy(sspi_w_token[1].pvBuffer, &gss_enc, 1); in Curl_SOCKS5_gssapi_negotiate()
425 sspi_w_token[2].BufferType = SECBUFFER_PADDING; in Curl_SOCKS5_gssapi_negotiate()
426 sspi_w_token[2].cbBuffer = sspi_sizes.cbBlockSize; in Curl_SOCKS5_gssapi_negotiate()
427 sspi_w_token[2].pvBuffer = malloc(sspi_sizes.cbBlockSize); in Curl_SOCKS5_gssapi_negotiate()
428 if(!sspi_w_token[2].pvBuffer) { in Curl_SOCKS5_gssapi_negotiate()
429 Curl_pSecFn->FreeContextBuffer(sspi_w_token[0].pvBuffer); in Curl_SOCKS5_gssapi_negotiate()
430 Curl_pSecFn->FreeContextBuffer(sspi_w_token[1].pvBuffer); in Curl_SOCKS5_gssapi_negotiate()
439 Curl_pSecFn->FreeContextBuffer(sspi_w_token[0].pvBuffer); in Curl_SOCKS5_gssapi_negotiate()
440 Curl_pSecFn->FreeContextBuffer(sspi_w_token[1].pvBuffer); in Curl_SOCKS5_gssapi_negotiate()
441 Curl_pSecFn->FreeContextBuffer(sspi_w_token[2].pvBuffer); in Curl_SOCKS5_gssapi_negotiate()
446 sspi_send_token.cbBuffer = sspi_w_token[0].cbBuffer in Curl_SOCKS5_gssapi_negotiate()
447 + sspi_w_token[1].cbBuffer in Curl_SOCKS5_gssapi_negotiate()
448 + sspi_w_token[2].cbBuffer; in Curl_SOCKS5_gssapi_negotiate()
451 Curl_pSecFn->FreeContextBuffer(sspi_w_token[0].pvBuffer); in Curl_SOCKS5_gssapi_negotiate()
452 Curl_pSecFn->FreeContextBuffer(sspi_w_token[1].pvBuffer); in Curl_SOCKS5_gssapi_negotiate()
453 Curl_pSecFn->FreeContextBuffer(sspi_w_token[2].pvBuffer); in Curl_SOCKS5_gssapi_negotiate()
458 memcpy(sspi_send_token.pvBuffer, sspi_w_token[0].pvBuffer, in Curl_SOCKS5_gssapi_negotiate()
459 sspi_w_token[0].cbBuffer); in Curl_SOCKS5_gssapi_negotiate()
460 memcpy((PUCHAR) sspi_send_token.pvBuffer +(int)sspi_w_token[0].cbBuffer, in Curl_SOCKS5_gssapi_negotiate()
461 sspi_w_token[1].pvBuffer, sspi_w_token[1].cbBuffer); in Curl_SOCKS5_gssapi_negotiate()
463 + sspi_w_token[0].cbBuffer in Curl_SOCKS5_gssapi_negotiate()
464 + sspi_w_token[1].cbBuffer, in Curl_SOCKS5_gssapi_negotiate()
465 sspi_w_token[2].pvBuffer, sspi_w_token[2].cbBuffer); in Curl_SOCKS5_gssapi_negotiate()
467 Curl_pSecFn->FreeContextBuffer(sspi_w_token[0].pvBuffer); in Curl_SOCKS5_gssapi_negotiate()
468 sspi_w_token[0].pvBuffer = NULL; in Curl_SOCKS5_gssapi_negotiate()
469 sspi_w_token[0].cbBuffer = 0; in Curl_SOCKS5_gssapi_negotiate()
470 Curl_pSecFn->FreeContextBuffer(sspi_w_token[1].pvBuffer); in Curl_SOCKS5_gssapi_negotiate()
471 sspi_w_token[1].pvBuffer = NULL; in Curl_SOCKS5_gssapi_negotiate()
472 sspi_w_token[1].cbBuffer = 0; in Curl_SOCKS5_gssapi_negotiate()
473 Curl_pSecFn->FreeContextBuffer(sspi_w_token[2].pvBuffer); in Curl_SOCKS5_gssapi_negotiate()
474 sspi_w_token[2].pvBuffer = NULL; in Curl_SOCKS5_gssapi_negotiate()
475 sspi_w_token[2].cbBuffer = 0; in Curl_SOCKS5_gssapi_negotiate()
541 sspi_w_token[0].cbBuffer = us_length; in Curl_SOCKS5_gssapi_negotiate()
542 sspi_w_token[0].pvBuffer = malloc(us_length); in Curl_SOCKS5_gssapi_negotiate()
543 if(!sspi_w_token[0].pvBuffer) { in Curl_SOCKS5_gssapi_negotiate()
548 result = Curl_blockread_all(cf, data, (char *)sspi_w_token[0].pvBuffer, in Curl_SOCKS5_gssapi_negotiate()
549 sspi_w_token[0].cbBuffer, &actualread); in Curl_SOCKS5_gssapi_negotiate()
553 Curl_pSecFn->FreeContextBuffer(sspi_w_token[0].pvBuffer); in Curl_SOCKS5_gssapi_negotiate()
561 sspi_w_token[0].BufferType = SECBUFFER_STREAM; in Curl_SOCKS5_gssapi_negotiate()
562 sspi_w_token[1].BufferType = SECBUFFER_DATA; in Curl_SOCKS5_gssapi_negotiate()
563 sspi_w_token[1].cbBuffer = 0; in Curl_SOCKS5_gssapi_negotiate()
564 sspi_w_token[1].pvBuffer = NULL; in Curl_SOCKS5_gssapi_negotiate()
572 if(sspi_w_token[0].pvBuffer) in Curl_SOCKS5_gssapi_negotiate()
573 Curl_pSecFn->FreeContextBuffer(sspi_w_token[0].pvBuffer); in Curl_SOCKS5_gssapi_negotiate()
574 if(sspi_w_token[1].pvBuffer) in Curl_SOCKS5_gssapi_negotiate()
575 Curl_pSecFn->FreeContextBuffer(sspi_w_token[1].pvBuffer); in Curl_SOCKS5_gssapi_negotiate()
581 if(sspi_w_token[1].cbBuffer != 1) { in Curl_SOCKS5_gssapi_negotiate()
583 (unsigned long)sspi_w_token[1].cbBuffer); in Curl_SOCKS5_gssapi_negotiate()
584 if(sspi_w_token[0].pvBuffer) in Curl_SOCKS5_gssapi_negotiate()
585 Curl_pSecFn->FreeContextBuffer(sspi_w_token[0].pvBuffer); in Curl_SOCKS5_gssapi_negotiate()
586 if(sspi_w_token[1].pvBuffer) in Curl_SOCKS5_gssapi_negotiate()
587 Curl_pSecFn->FreeContextBuffer(sspi_w_token[1].pvBuffer); in Curl_SOCKS5_gssapi_negotiate()
592 memcpy(socksreq, sspi_w_token[1].pvBuffer, sspi_w_token[1].cbBuffer); in Curl_SOCKS5_gssapi_negotiate()
593 Curl_pSecFn->FreeContextBuffer(sspi_w_token[0].pvBuffer); in Curl_SOCKS5_gssapi_negotiate()
594 Curl_pSecFn->FreeContextBuffer(sspi_w_token[1].pvBuffer); in Curl_SOCKS5_gssapi_negotiate()
597 if(sspi_w_token[0].cbBuffer != 1) { in Curl_SOCKS5_gssapi_negotiate()
599 (unsigned long)sspi_w_token[0].cbBuffer); in Curl_SOCKS5_gssapi_negotiate()
600 Curl_pSecFn->FreeContextBuffer(sspi_w_token[0].pvBuffer); in Curl_SOCKS5_gssapi_negotiate()
604 memcpy(socksreq, sspi_w_token[0].pvBuffer, sspi_w_token[0].cbBuffer); in Curl_SOCKS5_gssapi_negotiate()
605 Curl_pSecFn->FreeContextBuffer(sspi_w_token[0].pvBuffer); in Curl_SOCKS5_gssapi_negotiate()