Lines Matching refs:dbg

59 # define dbg(...) fprintf(stderr, __VA_ARGS__)  macro
61 # define dbg(...) ((void)0) macro
299 dbg(fmt, hexbuf); in dump_hex()
313 dbg("< hdr_type:%u ver:%u.%u len:%u", p[0], p[1], p[2], xhdr_len); in dump_tls_record()
318 dbg(" type:%u len24:%u", p[0], len24); in dump_tls_record()
377 dbg(" (%u bytes) ", (int)len); in hash_handshake()
731 dbg("wrote %u bytes (NULL crypt, SHA256 hash)\n", size); in xwrite_encrypted_and_hmac_signed()
772 dbg("before crypt: 5 hdr + %u data + %u hash bytes\n", in xwrite_encrypted_and_hmac_signed()
805 dbg("writing 5 + %u IV + %u encrypted bytes, padding_length:0x%02x\n", in xwrite_encrypted_and_hmac_signed()
812 dbg("wrote %u bytes\n", (int)RECHDR_LEN + size); in xwrite_encrypted_and_hmac_signed()
892 dbg("wrote %u bytes\n", size); in xwrite_encrypted_aesgcm()
917 dbg("wrote %u bytes\n", (int)RECHDR_LEN + size); in xwrite_handshake_record()
1014 dbg("ofs_to_buffered:%u buffered_size:%u\n", tls->ofs_to_buffered, tls->buffered_size); in tls_xread_record()
1037 dbg("xhdr type:%d ver:%d.%d len:%d\n", in tls_xread_record()
1051 dbg("inbuf_size:%d\n", tls->inbuf_size); in tls_xread_record()
1059 dbg("EOF (without TLS shutdown) from peer\n"); in tls_xread_record()
1086 dbg("encrypted size:%u\n", sz); in tls_xread_record()
1105 dbg("encrypted size:%u type:0x%02x padding_length:0x%02x\n", sz, p[0], padding_len); in tls_xread_record()
1122 dbg("ALERT size:%d level:%d description:%d\n", sz, p[0], p[1]); in tls_xread_record()
1131 dbg("EOF (TLS encoded) from peer\n"); in tls_xread_record()
1159 dbg("got block len:%u\n", sz); in tls_xread_record()
1387 dbg("RSA key\n"); in find_key_in_der_cert()
1391 dbg("ECDSA key\n"); in find_key_in_der_cert()
1406 dbg("key bytes:%u, first:0x%02x\n", (int)(end - der), der[0]); in find_key_in_der_cert()
1424 dbg("server_rsa_pub_key.size:%d\n", tls->hsd->server_rsa_pub_key.size); in find_key_in_der_cert()
1447 dbg("got HANDSHAKE\n"); in tls_xread_handshake_block()
1638 dbg(">> CLIENT_HELLO\n"); in send_client_hello_and_alloc_hsd()
1702 dbg("<< SERVER_HELLO\n"); in get_server_hello()
1774 dbg("server chose cipher %04x\n", tls->cipher_id); in get_server_hello()
1775 dbg("key_size:%u MAC_size:%u IV_size:%u\n", tls->key_size, tls->MAC_size, tls->IV_size); in get_server_hello()
1805 dbg("<< CERTIFICATE\n"); in get_server_cert()
1886 dbg("got x25519 eccPubKey\n"); in process_server_key()
1891 dbg("got P256 eccPubKey\n"); in process_server_key()
1924 dbg(">> CERTIFICATE\n"); in send_empty_client_cert()
1974 dbg("computing x25519_premaster\n"); in send_client_key_exchange()
1985 dbg("computing P256_premaster\n"); in send_client_key_exchange()
2004 dbg(">> CLIENT_KEY_EXCHANGE\n"); in send_client_key_exchange()
2108 dbg(">> CHANGE_CIPHER_SPEC\n"); in send_change_cipher_spec()
2175 dbg(">> FINISHED\n"); in send_client_finished()
2229 dbg("<< SERVER_KEY_EXCHANGE len:%u\n", len); in tls_handshake()
2240 dbg("<< CERTIFICATE_REQUEST\n"); in tls_handshake()
2258 dbg("<< SERVER_HELLO_DONE\n"); in tls_handshake()
2276 dbg("<< CHANGE_CIPHER_SPEC\n"); in tls_handshake()
2292 dbg("min_encrypted_len_on_read: %u\n", tls->min_encrypted_len_on_read); in tls_handshake()
2298 dbg("<< FINISHED\n"); in tls_handshake()
2311 dbg(">> DATA\n"); in tls_xwrite()
2386 dbg("STDIN HAS DATA\n"); in tls_run_copy_loop()
2415 dbg("NETWORK HAS DATA\n"); in tls_run_copy_loop()