Lines Matching full:msg

27 # define ssl_trace_list(bio, indent, msg, msglen, value, table) \  argument
28 do_ssl_trace_list(bio, indent, msg, msglen, value, \
44 const unsigned char *msg, size_t msglen, in do_ssl_trace_list() argument
52 val = msg[0]; in do_ssl_trace_list()
54 val = (val << 8) | msg[1]; in do_ssl_trace_list()
57 msg += vlen; in do_ssl_trace_list()
665 const unsigned char *msg, size_t msglen) in ssl_print_hex() argument
672 BIO_printf(bio, "%02X", msg[i]); in ssl_print_hex()
972 const unsigned char *msg = *msgin; in ssl_print_extensions() local
981 extslen = (msg[0] << 8) | msg[1]; in ssl_print_extensions()
983 msg += 2; in ssl_print_extensions()
986 *msgin = msg; in ssl_print_extensions()
999 extype = (msg[0] << 8) | msg[1]; in ssl_print_extensions()
1000 extlen = (msg[2] << 8) | msg[3]; in ssl_print_extensions()
1004 BIO_dump_indent(bio, (const char *)msg, extslen, indent + 2); in ssl_print_extensions()
1007 msg += 4; in ssl_print_extensions()
1008 if (!ssl_print_extension(bio, indent + 2, server, mt, extype, msg, in ssl_print_extensions()
1011 msg += extlen; in ssl_print_extensions()
1015 *msgin = msg; in ssl_print_extensions()
1021 const unsigned char *msg, size_t msglen) in ssl_print_client_hello() argument
1026 if (!ssl_print_version(bio, indent, "client_version", &msg, &msglen, NULL)) in ssl_print_client_hello()
1028 if (!ssl_print_random(bio, indent, &msg, &msglen)) in ssl_print_client_hello()
1030 if (!ssl_print_hexbuf(bio, indent, "session_id", 1, &msg, &msglen)) in ssl_print_client_hello()
1033 if (!ssl_print_hexbuf(bio, indent, "cookie", 1, &msg, &msglen)) in ssl_print_client_hello()
1038 len = (msg[0] << 8) | msg[1]; in ssl_print_client_hello()
1039 msg += 2; in ssl_print_client_hello()
1046 cs = (msg[0] << 8) | msg[1]; in ssl_print_client_hello()
1049 msg[0], msg[1], ssl_trace_str(cs, ssl_ciphers_tbl)); in ssl_print_client_hello()
1050 msg += 2; in ssl_print_client_hello()
1056 len = msg[0]; in ssl_print_client_hello()
1057 msg++; in ssl_print_client_hello()
1066 ssl_trace_str(msg[0], ssl_comp_tbl), msg[0]); in ssl_print_client_hello()
1067 msg++; in ssl_print_client_hello()
1071 if (!ssl_print_extensions(bio, indent, 0, SSL3_MT_CLIENT_HELLO, &msg, in ssl_print_client_hello()
1078 const unsigned char *msg, size_t msglen) in dtls_print_hello_vfyrequest() argument
1080 if (!ssl_print_version(bio, indent, "server_version", &msg, &msglen, NULL)) in dtls_print_hello_vfyrequest()
1082 if (!ssl_print_hexbuf(bio, indent, "cookie", 1, &msg, &msglen)) in dtls_print_hello_vfyrequest()
1088 const unsigned char *msg, size_t msglen) in ssl_print_server_hello() argument
1093 if (!ssl_print_version(bio, indent, "server_version", &msg, &msglen, &vers)) in ssl_print_server_hello()
1095 if (!ssl_print_random(bio, indent, &msg, &msglen)) in ssl_print_server_hello()
1098 && !ssl_print_hexbuf(bio, indent, "session_id", 1, &msg, &msglen)) in ssl_print_server_hello()
1102 cs = (msg[0] << 8) | msg[1]; in ssl_print_server_hello()
1105 msg[0], msg[1], ssl_trace_str(cs, ssl_ciphers_tbl)); in ssl_print_server_hello()
1106 msg += 2; in ssl_print_server_hello()
1113 ssl_trace_str(msg[0], ssl_comp_tbl), msg[0]); in ssl_print_server_hello()
1114 msg++; in ssl_print_server_hello()
1117 if (!ssl_print_extensions(bio, indent, 1, SSL3_MT_SERVER_HELLO, &msg, in ssl_print_server_hello()
1172 const unsigned char *msg, size_t msglen) in ssl_print_client_keyex() argument
1181 "psk_identity", 2, &msg, &msglen)) in ssl_print_client_keyex()
1190 "EncryptedPreMasterSecret", msg, msglen); in ssl_print_client_keyex()
1193 "EncryptedPreMasterSecret", 2, &msg, &msglen)) in ssl_print_client_keyex()
1200 if (!ssl_print_hexbuf(bio, indent + 2, "dh_Yc", 2, &msg, &msglen)) in ssl_print_client_keyex()
1206 if (!ssl_print_hexbuf(bio, indent + 2, "ecdh_Yc", 1, &msg, &msglen)) in ssl_print_client_keyex()
1210 ssl_print_hex(bio, indent + 2, "GostKeyTransportBlob", msg, msglen); in ssl_print_client_keyex()
1215 "GOST-wrapped PreMasterSecret", msg, msglen); in ssl_print_client_keyex()
1224 const unsigned char *msg, size_t msglen) in ssl_print_server_keyex() argument
1233 "psk_identity_hint", 2, &msg, &msglen)) in ssl_print_server_keyex()
1239 if (!ssl_print_hexbuf(bio, indent + 2, "rsa_modulus", 2, &msg, &msglen)) in ssl_print_server_keyex()
1242 &msg, &msglen)) in ssl_print_server_keyex()
1248 if (!ssl_print_hexbuf(bio, indent + 2, "dh_p", 2, &msg, &msglen)) in ssl_print_server_keyex()
1250 if (!ssl_print_hexbuf(bio, indent + 2, "dh_g", 2, &msg, &msglen)) in ssl_print_server_keyex()
1252 if (!ssl_print_hexbuf(bio, indent + 2, "dh_Ys", 2, &msg, &msglen)) in ssl_print_server_keyex()
1261 if (msg[0] == EXPLICIT_PRIME_CURVE_TYPE) in ssl_print_server_keyex()
1263 else if (msg[0] == EXPLICIT_CHAR2_CURVE_TYPE) in ssl_print_server_keyex()
1265 else if (msg[0] == NAMED_CURVE_TYPE) { in ssl_print_server_keyex()
1269 curve = (msg[1] << 8) | msg[2]; in ssl_print_server_keyex()
1272 msg += 3; in ssl_print_server_keyex()
1274 if (!ssl_print_hexbuf(bio, indent + 2, "point", 1, &msg, &msglen)) in ssl_print_server_keyex()
1277 BIO_printf(bio, "UNKNOWN CURVE PARAMETER TYPE %d\n", msg[0]); in ssl_print_server_keyex()
1287 ssl_print_signature(bio, indent, sc, &msg, &msglen); in ssl_print_server_keyex()
1337 const unsigned char *msg = *pmsg; in ssl_print_raw_public_key() local
1342 clen = (msg[0] << 16) | (msg[1] << 8) | msg[2]; in ssl_print_raw_public_key()
1346 msg += 3; in ssl_print_raw_public_key()
1351 pkey = d2i_PUBKEY_ex(NULL, &msg, clen, ssl->ctx->libctx, ssl->ctx->propq); in ssl_print_raw_public_key()
1362 int indent, const unsigned char *msg, in ssl_print_certificates() argument
1368 && !ssl_print_hexbuf(bio, indent, "context", 1, &msg, &msglen)) in ssl_print_certificates()
1373 clen = (msg[0] << 16) | (msg[1] << 8) | msg[2]; in ssl_print_certificates()
1376 msg += 3; in ssl_print_certificates()
1379 if (!ssl_print_raw_public_key(bio, &sc->ssl, server, indent, &msg, &clen)) in ssl_print_certificates()
1383 SSL3_MT_CERTIFICATE, &msg, &clen)) in ssl_print_certificates()
1390 if (!ssl_print_certificate(bio, sc, indent + 2, &msg, &clen)) in ssl_print_certificates()
1394 SSL3_MT_CERTIFICATE, &msg, &clen)) in ssl_print_certificates()
1403 const unsigned char *msg, in ssl_print_compressed_certificates() argument
1419 alg = (msg[0] << 8) | msg[1]; in ssl_print_compressed_certificates()
1420 uclen = (msg[2] << 16) | (msg[3] << 8) | msg[4]; in ssl_print_compressed_certificates()
1421 clen = (msg[5] << 16) | (msg[6] << 8) | msg[7]; in ssl_print_compressed_certificates()
1425 msg += 8; in ssl_print_compressed_certificates()
1436 BIO_dump_indent(bio, (const char *)msg, clen, indent); in ssl_print_compressed_certificates()
1461 || COMP_expand_block(comp, ucdata, uclen, (unsigned char*)msg, clen) != (int)uclen) in ssl_print_compressed_certificates()
1473 const unsigned char *msg, size_t msglen) in ssl_print_cert_request() argument
1479 if (!ssl_print_hexbuf(bio, indent, "request_context", 1, &msg, &msglen)) in ssl_print_cert_request()
1482 SSL3_MT_CERTIFICATE_REQUEST, &msg, &msglen)) in ssl_print_cert_request()
1488 xlen = msg[0]; in ssl_print_cert_request()
1491 msg++; in ssl_print_cert_request()
1494 if (!ssl_trace_list(bio, indent + 2, msg, xlen, 1, ssl_ctype_tbl)) in ssl_print_cert_request()
1496 msg += xlen; in ssl_print_cert_request()
1502 xlen = (msg[0] << 8) | msg[1]; in ssl_print_cert_request()
1505 msg += 2; in ssl_print_cert_request()
1511 sigalg = (msg[0] << 8) | msg[1]; in ssl_print_cert_request()
1515 msg += 2; in ssl_print_cert_request()
1517 msg += xlen; in ssl_print_cert_request()
1522 xlen = (msg[0] << 8) | msg[1]; in ssl_print_cert_request()
1526 msg += 2; in ssl_print_cert_request()
1535 dlen = (msg[0] << 8) | msg[1]; in ssl_print_cert_request()
1538 msg += 2; in ssl_print_cert_request()
1541 p = msg; in ssl_print_cert_request()
1551 msg += dlen; in ssl_print_cert_request()
1555 &msg, &msglen)) in ssl_print_cert_request()
1562 const unsigned char *msg, size_t msglen) in ssl_print_ticket() argument
1573 tick_life = ((unsigned int)msg[0] << 24) in ssl_print_ticket()
1574 | ((unsigned int)msg[1] << 16) in ssl_print_ticket()
1575 | ((unsigned int)msg[2] << 8) in ssl_print_ticket()
1576 | (unsigned int)msg[3]; in ssl_print_ticket()
1578 msg += 4; in ssl_print_ticket()
1587 ((unsigned int)msg[0] << 24) in ssl_print_ticket()
1588 | ((unsigned int)msg[1] << 16) in ssl_print_ticket()
1589 | ((unsigned int)msg[2] << 8) in ssl_print_ticket()
1590 | (unsigned int)msg[3]; in ssl_print_ticket()
1592 msg += 4; in ssl_print_ticket()
1595 if (!ssl_print_hexbuf(bio, indent + 2, "ticket_nonce", 1, &msg, in ssl_print_ticket()
1599 if (!ssl_print_hexbuf(bio, indent + 2, "ticket", 2, &msg, &msglen)) in ssl_print_ticket()
1603 SSL3_MT_NEWSESSION_TICKET, &msg, &msglen)) in ssl_print_ticket()
1611 const unsigned char *msg, size_t msglen, in ssl_print_handshake() argument
1619 htype = msg[0]; in ssl_print_handshake()
1620 hlen = (msg[1] << 16) | (msg[2] << 8) | msg[3]; in ssl_print_handshake()
1624 msg += 4; in ssl_print_handshake()
1632 (msg[0] << 8) | msg[1], in ssl_print_handshake()
1633 (msg[2] << 16) | (msg[3] << 8) | msg[4], in ssl_print_handshake()
1634 (msg[5] << 16) | (msg[6] << 8) | msg[7]); in ssl_print_handshake()
1635 msg += 8; in ssl_print_handshake()
1642 if (!ssl_print_client_hello(bio, sc, indent + 2, msg, msglen)) in ssl_print_handshake()
1647 if (!dtls_print_hello_vfyrequest(bio, indent + 2, msg, msglen)) in ssl_print_handshake()
1652 if (!ssl_print_server_hello(bio, indent + 2, msg, msglen)) in ssl_print_handshake()
1657 if (!ssl_print_server_keyex(bio, indent + 2, sc, msg, msglen)) in ssl_print_handshake()
1662 if (!ssl_print_client_keyex(bio, indent + 2, sc, msg, msglen)) in ssl_print_handshake()
1667 if (!ssl_print_certificates(bio, sc, server, indent + 2, msg, msglen)) in ssl_print_handshake()
1672 if (!ssl_print_compressed_certificates(bio, sc, server, indent + 2, msg, msglen)) in ssl_print_handshake()
1677 if (!ssl_print_signature(bio, indent + 2, sc, &msg, &msglen)) in ssl_print_handshake()
1682 if (!ssl_print_cert_request(bio, indent + 2, sc, msg, msglen)) in ssl_print_handshake()
1687 ssl_print_hex(bio, indent + 2, "verify_data", msg, msglen); in ssl_print_handshake()
1693 ssl_print_hex(bio, indent + 2, "unexpected value", msg, msglen); in ssl_print_handshake()
1697 if (!ssl_print_ticket(bio, indent + 2, sc, msg, msglen)) in ssl_print_handshake()
1703 SSL3_MT_ENCRYPTED_EXTENSIONS, &msg, &msglen)) in ssl_print_handshake()
1709 ssl_print_hex(bio, indent + 2, "unexpected value", msg, msglen); in ssl_print_handshake()
1712 if (!ssl_trace_list(bio, indent + 2, msg, msglen, 1, in ssl_print_handshake()
1720 BIO_dump_indent(bio, (const char *)msg, msglen, indent + 4); in ssl_print_handshake()
1728 const unsigned char *msg = buf; in SSL_trace() local
1757 ssl_print_hex(bio, 0, " too short message", msg, msglen); in SSL_trace()
1760 hvers = msg[1] << 8 | msg[2]; in SSL_trace()
1767 (msg[3] << 8 | msg[4]), in SSL_trace()
1768 (msg[5] << 8 | msg[6]), in SSL_trace()
1769 (msg[7] << 8 | msg[8]), (msg[9] << 8 | msg[10])); in SSL_trace()
1773 ssl_trace_str(msg[0], ssl_content_tbl), msg[0], in SSL_trace()
1774 msg[msglen - 2] << 8 | msg[msglen - 1]); in SSL_trace()
1780 ssl_trace_str(msg[0], ssl_content_tbl), msg[0]); in SSL_trace()
1785 msg, msglen, 4)) in SSL_trace()
1790 if (msglen == 1 && msg[0] == 1) in SSL_trace()
1793 ssl_print_hex(bio, 4, "unknown value", msg, msglen); in SSL_trace()
1801 SSL_alert_type_string_long(msg[0] << 8), in SSL_trace()
1802 msg[0], SSL_alert_desc_string_long(msg[1]), msg[1]); in SSL_trace()