Lines Matching refs:xlen

746     size_t xlen, share_len;  in ssl_print_extension()  local
757 xlen = ext[0]; in ssl_print_extension()
758 if (extlen != xlen + 1) in ssl_print_extension()
760 return ssl_trace_list(bio, indent + 2, ext + 1, xlen, 2, ssl_comp_cert_tbl); in ssl_print_extension()
765 xlen = extlen; in ssl_print_extension()
766 return ssl_trace_list(bio, indent + 2, ext, xlen, 1, ssl_mfl_tbl); in ssl_print_extension()
771 xlen = ext[0]; in ssl_print_extension()
772 if (extlen != xlen + 1) in ssl_print_extension()
774 return ssl_trace_list(bio, indent + 2, ext + 1, xlen, 1, ssl_point_tbl); in ssl_print_extension()
779 xlen = (ext[0] << 8) | ext[1]; in ssl_print_extension()
780 if (extlen != xlen + 2) in ssl_print_extension()
782 return ssl_trace_list(bio, indent + 2, ext + 2, xlen, 2, ssl_groups_tbl); in ssl_print_extension()
786 xlen = (ext[0] << 8) | ext[1]; in ssl_print_extension()
787 if (extlen != xlen + 2) in ssl_print_extension()
790 while (xlen > 0) { in ssl_print_extension()
793 if (plen + 1 > xlen) in ssl_print_extension()
799 xlen -= plen + 1; in ssl_print_extension()
807 xlen = (ext[0] << 8) | ext[1]; in ssl_print_extension()
808 if (extlen != xlen + 2) in ssl_print_extension()
810 if (xlen & 1) in ssl_print_extension()
813 while (xlen > 0) { in ssl_print_extension()
818 xlen -= 2; in ssl_print_extension()
826 xlen = ext[0]; in ssl_print_extension()
827 if (xlen + 1 != extlen) in ssl_print_extension()
830 if (xlen) { in ssl_print_extension()
832 if (xlen & 1) in ssl_print_extension()
834 xlen >>= 1; in ssl_print_extension()
836 ssl_print_hex(bio, indent + 4, "client_verify_data", ext, xlen); in ssl_print_extension()
838 ext += xlen; in ssl_print_extension()
839 ssl_print_hex(bio, indent + 4, "server_verify_data", ext, xlen); in ssl_print_extension()
866 xlen = extlen; in ssl_print_extension()
868 xlen = (ext[0] << 8) | ext[1]; in ssl_print_extension()
869 if (extlen != xlen + 2) in ssl_print_extension()
873 for (; xlen > 0; ext += share_len, xlen -= share_len) { in ssl_print_extension()
876 if (xlen < 4) in ssl_print_extension()
881 xlen -= 4; in ssl_print_extension()
882 if (xlen < share_len) in ssl_print_extension()
905 xlen = ext[0]; in ssl_print_extension()
906 if (extlen != xlen + 1) in ssl_print_extension()
908 return ssl_trace_list(bio, indent + 2, ext + 1, xlen, 2, in ssl_print_extension()
914 xlen = ext[0]; in ssl_print_extension()
915 if (extlen != xlen + 1) in ssl_print_extension()
917 return ssl_trace_list(bio, indent + 2, ext + 1, xlen, 1, in ssl_print_extension()
942 xlen = ext[0]; in ssl_print_extension()
943 if (extlen != xlen + 1) in ssl_print_extension()
945 return ssl_trace_list(bio, indent + 2, ext + 1, xlen, 1, ssl_cert_type_tbl); in ssl_print_extension()
1461 size_t xlen; in ssl_print_cert_request() local
1474 xlen = msg[0]; in ssl_print_cert_request()
1475 if (msglen < xlen + 1) in ssl_print_cert_request()
1479 BIO_printf(bio, "certificate_types (len=%d)\n", (int)xlen); in ssl_print_cert_request()
1480 if (!ssl_trace_list(bio, indent + 2, msg, xlen, 1, ssl_ctype_tbl)) in ssl_print_cert_request()
1482 msg += xlen; in ssl_print_cert_request()
1483 msglen -= xlen + 1; in ssl_print_cert_request()
1488 xlen = (msg[0] << 8) | msg[1]; in ssl_print_cert_request()
1489 if (msglen < xlen + 2 || (xlen & 1)) in ssl_print_cert_request()
1492 msglen -= xlen + 2; in ssl_print_cert_request()
1494 BIO_printf(bio, "signature_algorithms (len=%d)\n", (int)xlen); in ssl_print_cert_request()
1495 while (xlen > 0) { in ssl_print_cert_request()
1500 xlen -= 2; in ssl_print_cert_request()
1503 msg += xlen; in ssl_print_cert_request()
1508 xlen = (msg[0] << 8) | msg[1]; in ssl_print_cert_request()
1510 if (msglen < xlen + 2) in ssl_print_cert_request()
1513 msglen -= 2 + xlen; in ssl_print_cert_request()
1514 BIO_printf(bio, "certificate_authorities (len=%d)\n", (int)xlen); in ssl_print_cert_request()
1515 while (xlen > 0) { in ssl_print_cert_request()
1519 if (xlen < 2) in ssl_print_cert_request()
1522 if (xlen < dlen + 2) in ssl_print_cert_request()
1536 xlen -= dlen + 2; in ssl_print_cert_request()