Lines Matching refs:left

82 	size_t left, len, i;  in tls_process_server_hello()  local
95 left = *in_len; in tls_process_server_hello()
97 if (left < 4) in tls_process_server_hello()
113 left -= 4; in tls_process_server_hello()
115 if (len > left) in tls_process_server_hello()
358 size_t left, len, list_len, cert_len, idx; in tls_process_certificate() local
372 left = *in_len; in tls_process_certificate()
374 if (left < 4) { in tls_process_certificate()
376 "(len=%lu)", (unsigned long) left); in tls_process_certificate()
384 left -= 4; in tls_process_certificate()
386 if (len > left) { in tls_process_certificate()
389 (unsigned long) len, (unsigned long) left); in tls_process_certificate()
429 "(left=%lu)", (unsigned long) left); in tls_process_certificate()
828 size_t left, len; in tls_process_certificate_status() local
844 left = *in_len; in tls_process_certificate_status()
846 if (left < 4) { in tls_process_certificate_status()
849 (unsigned long) left); in tls_process_certificate_status()
857 left -= 4; in tls_process_certificate_status()
859 if (len > left) { in tls_process_certificate_status()
862 (unsigned long) len, (unsigned long) left); in tls_process_certificate_status()
1026 size_t left, len; in tls_process_server_key_exchange() local
1039 left = *in_len; in tls_process_server_key_exchange()
1041 if (left < 4) { in tls_process_server_key_exchange()
1043 "(Left=%lu)", (unsigned long) left); in tls_process_server_key_exchange()
1051 left -= 4; in tls_process_server_key_exchange()
1053 if (len > left) { in tls_process_server_key_exchange()
1056 (unsigned long) len, (unsigned long) left); in tls_process_server_key_exchange()
1123 size_t left, len; in tls_process_certificate_request() local
1135 left = *in_len; in tls_process_certificate_request()
1137 if (left < 4) { in tls_process_certificate_request()
1139 "(left=%lu)", (unsigned long) left); in tls_process_certificate_request()
1147 left -= 4; in tls_process_certificate_request()
1149 if (len > left) { in tls_process_certificate_request()
1152 (unsigned long) len, (unsigned long) left); in tls_process_certificate_request()
1187 size_t left, len; in tls_process_server_hello_done() local
1199 left = *in_len; in tls_process_server_hello_done()
1201 if (left < 4) { in tls_process_server_hello_done()
1203 "(left=%lu)", (unsigned long) left); in tls_process_server_hello_done()
1211 left -= 4; in tls_process_server_hello_done()
1213 if (len > left) { in tls_process_server_hello_done()
1216 (unsigned long) len, (unsigned long) left); in tls_process_server_hello_done()
1254 size_t left; in tls_process_server_change_cipher_spec() local
1287 left = *in_len; in tls_process_server_change_cipher_spec()
1289 if (left < 1) { in tls_process_server_change_cipher_spec()
1324 size_t left, len, hlen; in tls_process_server_finished() local
1337 left = *in_len; in tls_process_server_finished()
1339 if (left < 4) { in tls_process_server_finished()
1342 (unsigned long) left); in tls_process_server_finished()
1359 left -= 4; in tls_process_server_finished()
1361 if (len > left) { in tls_process_server_finished()
1364 (unsigned long) len, (unsigned long) left); in tls_process_server_finished()
1458 size_t left; in tls_process_application_data() local
1469 left = *in_len; in tls_process_application_data()
1472 pos, left); in tls_process_application_data()
1474 *out_data = os_malloc(left); in tls_process_application_data()
1476 os_memcpy(*out_data, pos, left); in tls_process_application_data()
1477 *out_len = left; in tls_process_application_data()