Lines Matching refs:buf

135 krb5_decode(void *app_data, void *buf, int len,  in krb5_decode()  argument
146 enc.value = buf; in krb5_decode()
152 memcpy(buf, dec.value, dec.length); in krb5_decode()
519 struct krb5buffer *buf) in read_data() argument
535 Curl_dyn_reset(&buf->buf); in read_data()
546 result = Curl_dyn_addn(&buf->buf, buffer, nread); in read_data()
553 Curl_dyn_ptr(&buf->buf), in read_data()
557 Curl_dyn_setlen(&buf->buf, nread); in read_data()
558 buf->index = 0; in read_data()
563 buffer_read(struct krb5buffer *buf, void *data, size_t len) in buffer_read() argument
565 size_t size = Curl_dyn_len(&buf->buf); in buffer_read()
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()
603 if(Curl_dyn_len(&conn->in_buffer.buf) == 0) { in sec_recv()
708 char *buf; in Curl_sec_read_msg() local
721 error = Curl_base64_decode(buffer + 4, (unsigned char **)&buf, &decoded_sz); in Curl_sec_read_msg()
726 free(buf); in Curl_sec_read_msg()
731 decoded_len = conn->mech->decode(conn->app_data, buf, decoded_len, in Curl_sec_read_msg()
734 free(buf); in Curl_sec_read_msg()
739 buf[decoded_len] = '\n'; in Curl_sec_read_msg()
740 Curl_debug(data, CURLINFO_HEADER_IN, buf, decoded_len + 1); in Curl_sec_read_msg()
743 buf[decoded_len] = '\0'; in Curl_sec_read_msg()
748 if(buf[3] != '-') in Curl_sec_read_msg()
749 ret_code = atoi(buf); in Curl_sec_read_msg()
751 if(buf[decoded_len - 1] == '\n') in Curl_sec_read_msg()
752 buf[decoded_len - 1] = '\0'; in Curl_sec_read_msg()
753 strcpy(buffer, buf); in Curl_sec_read_msg()
754 free(buf); in Curl_sec_read_msg()
853 Curl_dyn_init(&conn->in_buffer.buf, CURL_MAX_INPUT_LENGTH); in choose_mech()
919 Curl_dyn_free(&conn->in_buffer.buf); in Curl_sec_end()