Lines Matching refs:len

135 krb5_decode(void *app_data, void *buf, int len,  in krb5_decode()  argument
147 enc.length = len; in krb5_decode()
153 len = curlx_uztosi(dec.length); in krb5_decode()
156 return len; in krb5_decode()
166 int len; in krb5_encode() local
187 len = curlx_uztosi(enc.length); in krb5_encode()
189 return len; in krb5_encode()
330 size_t len = Curl_dyn_len(&pp->recvbuf); in krb5_auth() local
332 if((len < 4) || (p[0] != '2' && p[0] != '3')) { in krb5_auth()
470 socket_read(struct Curl_easy *data, int sockindex, void *to, size_t len) in socket_read() argument
476 while(len > 0) { in socket_read()
477 result = Curl_conn_recv(data, sockindex, to_p, len, &nread); in socket_read()
479 len -= nread; in socket_read()
497 size_t len) in socket_write() argument
503 while(len > 0) { in socket_write()
504 result = Curl_conn_send(data, sockindex, to_p, len, FALSE, &written); in socket_write()
506 len -= written; in socket_write()
522 int len; in read_data() local
526 result = socket_read(data, sockindex, &len, sizeof(len)); in read_data()
530 if(len) { in read_data()
531 len = (int)ntohl((uint32_t)len); in read_data()
532 if(len > CURL_MAX_INPUT_LENGTH) in read_data()
542 nread = CURLMIN(len, (int)sizeof(buffer)); in read_data()
549 len -= nread; in read_data()
550 } while(len); in read_data()
554 len, conn->data_prot, conn); in read_data()
563 buffer_read(struct krb5buffer *buf, void *data, size_t len) in buffer_read() argument
566 if(size - buf->index < len) in buffer_read()
567 len = size - buf->index; in buffer_read()
568 memcpy(data, Curl_dyn_ptr(&buf->buf) + buf->index, len); in buffer_read()
569 buf->index += len; in buffer_read()
570 return len; in buffer_read()
575 char *buffer, size_t len, CURLcode *err) in sec_recv() argument
586 *err = Curl_conn_recv(data, sockindex, buffer, len, &nread); in sec_recv()
595 bytes_read = buffer_read(&conn->in_buffer, buffer, len); in sec_recv()
596 len -= bytes_read; in sec_recv()
600 while(len > 0) { in sec_recv()
608 bytes_read = buffer_read(&conn->in_buffer, buffer, len); in sec_recv()
609 len -= bytes_read; in sec_recv()
675 ssize_t tx = 0, len = conn->buffer_size; in sec_write() local
677 if(len <= 0) in sec_write()
678 len = length; in sec_write()
680 if(length < (size_t)len) in sec_write()
681 len = length; in sec_write()
683 do_sec_send(data, conn, sockindex, buffer, curlx_sztosi(len)); in sec_write()
684 length -= len; in sec_write()
685 buffer += len; in sec_write()
686 tx += len; in sec_write()
693 const void *buffer, size_t len, bool eos, in sec_send() argument
699 return sec_write(data, conn, sockindex, buffer, len); in sec_send()