Lines Matching refs:end

52 	const u8 *pos, *end;
56 end = req + req_len;
72 if (end - pos < 1)
83 wpa_hexdump(MSG_DEBUG, "TLSv1: OCSPStatusRequest", pos, end - pos);
93 const u8 *pos, *end;
98 end = ext + ext_len;
108 while (end - pos >= 2) {
113 if (len > end - pos)
124 const u8 *pos, *end, *c;
173 end = pos + len;
176 if (end - pos < 2) {
208 if (end - pos < TLS_RANDOM_LEN) {
219 if (end - pos < 1) {
223 if (end - pos < 1 + *pos || *pos > TLS_SESSION_ID_MAX_LEN) {
232 if (end - pos < 2) {
239 if (end - pos < num_suites) {
284 if (end - pos < 1) {
290 if (end - pos < num_suites) {
309 if (end - pos == 1) {
310 tlsv1_server_log(conn, "Unexpected extra octet in the end of ClientHello: 0x%02x",
315 if (end - pos >= 2) {
322 if (end - pos != ext_len) {
324 ext_len, (unsigned int) (end - pos));
335 while (pos < end) {
336 if (end - pos < 2) {
344 if (end - pos < 2) {
352 if (end - pos < ext_len) {
381 *in_len = end - in_data;
399 const u8 *pos, *end;
467 end = pos + len;
469 if (end - pos < 3) {
480 if ((size_t) (end - pos) != list_len) {
483 (unsigned long) (end - pos));
490 while (pos < end) {
491 if (end - pos < 3) {
502 if ((size_t) (end - pos) < cert_len) {
505 (unsigned long) (end - pos));
590 *in_len = end - in_data;
599 struct tlsv1_server *conn, const u8 *pos, const u8 *end)
607 if (end - pos < 2) {
615 if (pos + encr_len > end) {
617 encr_len, (unsigned int) (end - pos));
623 outbuflen = outlen = end - pos;
702 struct tlsv1_server *conn, const u8 *pos, const u8 *end)
723 pos, end - pos);
725 if (end == pos) {
733 if (end - pos < 3) {
743 if (dh_yc_len > end - dh_yc) {
810 const u8 *pos, *end;
848 end = pos + len;
869 tls_process_client_key_exchange_dh(conn, pos, end) < 0)
873 tls_process_client_key_exchange_rsa(conn, pos, end) < 0)
876 *in_len = end - in_data;
887 const u8 *pos, *end;
938 end = pos + len;
970 if (end - pos < 2) {
1031 hash, hlen, pos, end - pos, &alert) < 0) {
1037 *in_len = end - in_data;
1098 const u8 *pos, *end;
1181 end = pos + len;
1254 *in_len = end - in_data;