Lines Matching refs:input_len
138 const unsigned char *input, size_t input_len) in mbedtls_test_ssl_buffer_put() argument
147 if ((buf->content_length + input_len) > buf->capacity) { in mbedtls_test_ssl_buffer_put()
148 input_len = buf->capacity - buf->content_length; in mbedtls_test_ssl_buffer_put()
152 return (input_len == 0) ? 0 : -1; in mbedtls_test_ssl_buffer_put()
161 if (buf->start + buf->content_length + input_len in mbedtls_test_ssl_buffer_put()
163 overflow = (buf->start + buf->content_length + input_len) in mbedtls_test_ssl_buffer_put()
168 input_len - overflow); in mbedtls_test_ssl_buffer_put()
169 memcpy(buf->buffer, input + input_len - overflow, overflow); in mbedtls_test_ssl_buffer_put()
174 input, input_len); in mbedtls_test_ssl_buffer_put()
177 buf->content_length += input_len; in mbedtls_test_ssl_buffer_put()
178 return (input_len > INT_MAX) ? INT_MAX : (int) input_len; in mbedtls_test_ssl_buffer_put()