Lines Matching refs:msg_len
2906 uint32_t msg_len, frag_off, frag_len; in ssl_check_hs_header() local
2908 msg_len = ssl_get_hs_total_len( ssl ); in ssl_check_hs_header()
2912 if( frag_off > msg_len ) in ssl_check_hs_header()
2915 if( frag_len > msg_len - frag_off ) in ssl_check_hs_header()
2987 static size_t ssl_get_reassembly_buffer_size( size_t msg_len, in ssl_get_reassembly_buffer_size() argument
2993 alloc_len += msg_len; /* Content buffer */ in ssl_get_reassembly_buffer_size()
2996 alloc_len += msg_len / 8 + ( msg_len % 8 != 0 ); /* Bitmap */ in ssl_get_reassembly_buffer_size()
4090 size_t msg_len = ( hs_buf->data[1] << 16 ) | in ssl_load_buffered_message() local
4096 if( msg_len + 12 > MBEDTLS_SSL_IN_CONTENT_LEN ) in ssl_load_buffered_message()
4104 hs_buf->data, msg_len + 12 ); in ssl_load_buffered_message()
4107 ssl->in_hslen = msg_len + 12; in ssl_load_buffered_message()
4108 ssl->in_msglen = msg_len + 12; in ssl_load_buffered_message()
4195 size_t msg_len = ssl->in_hslen - 12; in ssl_buffer_message() local
4236 if( msg_len + 12 > MBEDTLS_SSL_IN_CONTENT_LEN ) in ssl_buffer_message()
4250 reassembly_buf_sz = ssl_get_reassembly_buffer_size( msg_len, in ssl_buffer_message()
4264 msg_len, (size_t) MBEDTLS_SSL_DTLS_MAX_BUFFERING, in ssl_buffer_message()
4274 msg_len, (size_t) MBEDTLS_SSL_DTLS_MAX_BUFFERING, in ssl_buffer_message()
4285 msg_len, in ssl_buffer_message()
4295 msg_len ) ); in ssl_buffer_message()
4347 unsigned char * const bitmask = msg + msg_len; in ssl_buffer_message()
4350 msg_len ) == 0 ); in ssl_buffer_message()