Lines Matching refs:inbuf
292 SecBuffer inbuf[2]; in schannel_connect_step2() local
378 InitSecBuffer(&inbuf[0], SECBUFFER_TOKEN, malloc(connssl->encdata_offset), in schannel_connect_step2()
380 InitSecBuffer(&inbuf[1], SECBUFFER_EMPTY, NULL, 0); in schannel_connect_step2()
381 InitSecBufferDesc(&inbuf_desc, inbuf, 2); in schannel_connect_step2()
389 if(inbuf[0].pvBuffer == NULL) { in schannel_connect_step2()
395 memcpy(inbuf[0].pvBuffer, connssl->encdata_buffer, in schannel_connect_step2()
412 Curl_safefree(inbuf[0].pvBuffer); in schannel_connect_step2()
469 if(inbuf[1].BufferType == SECBUFFER_EXTRA && inbuf[1].cbBuffer > 0) { in schannel_connect_step2()
470 infof(data, "schannel: encrypted data length: %lu\n", inbuf[1].cbBuffer); in schannel_connect_step2()
483 if(connssl->encdata_offset > inbuf[1].cbBuffer) { in schannel_connect_step2()
486 inbuf[1].cbBuffer, inbuf[1].cbBuffer); in schannel_connect_step2()
487 connssl->encdata_offset = inbuf[1].cbBuffer; in schannel_connect_step2()
858 SecBuffer inbuf[4]; in schannel_recv() local
959 InitSecBuffer(&inbuf[0], SECBUFFER_DATA, connssl->encdata_buffer, in schannel_recv()
963 InitSecBuffer(&inbuf[1], SECBUFFER_EMPTY, NULL, 0); in schannel_recv()
964 InitSecBuffer(&inbuf[2], SECBUFFER_EMPTY, NULL, 0); in schannel_recv()
965 InitSecBuffer(&inbuf[3], SECBUFFER_EMPTY, NULL, 0); in schannel_recv()
966 InitSecBufferDesc(&inbuf_desc, inbuf, 4); in schannel_recv()
978 if(inbuf[1].BufferType == SECBUFFER_DATA) { in schannel_recv()
980 inbuf[1].cbBuffer); in schannel_recv()
983 size = inbuf[1].cbBuffer > CURL_SCHANNEL_BUFFER_FREE_SIZE ? in schannel_recv()
984 inbuf[1].cbBuffer : CURL_SCHANNEL_BUFFER_FREE_SIZE; in schannel_recv()
1005 size = inbuf[1].cbBuffer; in schannel_recv()
1008 inbuf[1].pvBuffer, size); in schannel_recv()
1018 if(inbuf[3].BufferType == SECBUFFER_EXTRA && inbuf[3].cbBuffer > 0) { in schannel_recv()
1020 inbuf[3].cbBuffer); in schannel_recv()
1025 if(connssl->encdata_offset > inbuf[3].cbBuffer) { in schannel_recv()
1030 inbuf[3].cbBuffer, inbuf[3].cbBuffer); in schannel_recv()
1031 connssl->encdata_offset = inbuf[3].cbBuffer; in schannel_recv()