Lines Matching refs:mbedtls_printf

27     mbedtls_printf( MBEDTLS_SSL_TEST_IMPOSSIBLE );  in main()
33 mbedtls_printf( "MBEDTLS_SSL_SRV_C not defined.\n" ); in main()
1156 mbedtls_printf( "Async %s callback: looking for DN=%s\n", in ssl_async_start()
1173 mbedtls_printf( "Async %s callback: no key matches this certificate.\n", in ssl_async_start()
1177 mbedtls_printf( "Async %s callback: using key slot %u, delay=%u.\n", in ssl_async_start()
1182 mbedtls_printf( "Async %s callback: injected error\n", op_name ); in ssl_async_start()
1242 mbedtls_printf( "Async resume (slot %u): call %u more times.\n", in ssl_async_resume()
1263mbedtls_printf( "Async resume (slot %u): unknown operation type %ld. This shouldn't happen.\n", in ssl_async_resume()
1274 mbedtls_printf( "Async resume callback: %s done but injected error\n", in ssl_async_resume()
1280 mbedtls_printf( "Async resume (slot %u): %s done, status=%d.\n", in ssl_async_resume()
1289 mbedtls_printf( "Async cancel callback.\n" ); in ssl_async_cancel()
1339 mbedtls_printf( " failed\n ! mbedtls_ssl_get_peer_cid returned -0x%x\n\n", in report_cid_usage()
1348 mbedtls_printf( "(%s) Use of Connection ID was not offered by client.\n", in report_cid_usage()
1355 mbedtls_printf( "(%s) Use of Connection ID has been negotiated.\n", in report_cid_usage()
1357 mbedtls_printf( "(%s) Peer CID (length %u Bytes): ", in report_cid_usage()
1362 mbedtls_printf( "%02x ", peer_cid[ idx ] ); in report_cid_usage()
1365 mbedtls_printf( "\n" ); in report_cid_usage()
1623 mbedtls_printf( USAGE1 ); in main()
1624 mbedtls_printf( USAGE2 ); in main()
1625 mbedtls_printf( USAGE3 ); in main()
1626 mbedtls_printf( USAGE4 ); in main()
1631 mbedtls_printf(" %-42s", mbedtls_ssl_get_ciphersuite_name( *list ) ); in main()
1635 mbedtls_printf(" %s\n", mbedtls_ssl_get_ciphersuite_name( *list ) ); in main()
1638 mbedtls_printf("\n"); in main()
1767 mbedtls_printf( "build version: %s (build %d)\n", in main()
2269 mbedtls_printf( "Error: eap_tls and nss_keylog options cannot be used together.\n" ); in main()
2278 mbedtls_printf( "Warning: event-driven IO mandates nbio=1 - overwrite\n" ); in main()
2303 mbedtls_printf( "Could not allocate %lu bytes\n", in main()
2314 mbedtls_printf( "psk_opaque set but no psk to be imported specified.\n" ); in main()
2321mbedtls_printf( "opaque PSKs are only supported in conjunction with forcing TLS 1.2 and a PSK-only… in main()
2331 mbedtls_printf( "psk_slot set but no psk to be imported specified.\n" ); in main()
2338mbedtls_printf( "opaque PSKs are only supported in conjunction with forcing TLS 1.2 and a PSK-only… in main()
2354 mbedtls_printf( "forced ciphersuite not allowed with this protocol version\n" ); in main()
2361 mbedtls_printf( "forced ciphersuite not allowed with this protocol version\n" ); in main()
2398 mbedtls_printf( "CID not valid hex\n" ); in main()
2412 mbedtls_printf( "CID not valid hex\n" ); in main()
2424 mbedtls_printf( "pre-shared key not valid hex\n" ); in main()
2432 mbedtls_printf( "psk_list invalid" ); in main()
2467 mbedtls_printf( "unknown curve %s\n", q ); in main()
2468 mbedtls_printf( "supported curves: " ); in main()
2473 mbedtls_printf( "%s ", curve_cur->name ); in main()
2475 mbedtls_printf( "\n" ); in main()
2480 mbedtls_printf("Number of curves: %d\n", i ); in main()
2484 mbedtls_printf( "curves list too long, maximum %d", in main()
2578 mbedtls_printf( "unknown signature algorithm \"%s\"\n", q ); in main()
2586 mbedtls_printf( "signature algorithm list too long, maximum %d", in main()
2615 mbedtls_printf( "build version: %s (build %d)\n", in main()
2621 mbedtls_printf( "\n . Seeding the random number generator..." ); in main()
2627 mbedtls_printf( " ok\n" ); in main()
2633 mbedtls_printf( " . Loading the CA root certificate ..." ); in main()
2674mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned -0x%x\n\n", (unsigned int) -ret ); in main()
2678 mbedtls_printf( " ok (%d skipped)\n", ret ); in main()
2683 mbedtls_printf( " . Loading the server cert. and key..." ); in main()
2692 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse_file returned -0x%x\n\n", in main()
2703mbedtls_printf( " failed\n ! mbedtls_pk_parse_keyfile returned -0x%x\n\n", (unsigned int) -ret ); in main()
2709 mbedtls_printf( " failed\n ! crt_file without key_file or vice-versa\n\n" ); in main()
2718 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse_file(2) returned -0x%x\n\n", in main()
2729 mbedtls_printf( " failed\n ! mbedtls_pk_parse_keyfile(2) returned -0x%x\n\n", in main()
2736 mbedtls_printf( " failed\n ! crt_file2 without key_file2 or vice-versa\n\n" ); in main()
2752 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned -0x%x\n\n", in main()
2761 mbedtls_printf( " failed\n ! mbedtls_pk_parse_key returned -0x%x\n\n", in main()
2772 mbedtls_printf( " failed\n ! x509_crt_parse2 returned -0x%x\n\n", in main()
2781 mbedtls_printf( " failed\n ! pk_parse_key2 returned -0x%x\n\n", in main()
2806 mbedtls_printf( " failed\n ! " in main()
2827 mbedtls_printf( " failed\n ! " in main()
2836 mbedtls_printf( " ok (key types: %s, %s)\n", in main()
2844 mbedtls_printf( " . Loading DHM parameters..." ); in main()
2849 mbedtls_printf( " failed\n ! mbedtls_dhm_parse_dhmfile returned -0x%04X\n\n", in main()
2854 mbedtls_printf( " ok\n" ); in main()
2861 mbedtls_printf( " . Setting up SNI information..." ); in main()
2866 mbedtls_printf( " failed\n" ); in main()
2870 mbedtls_printf( " ok\n" ); in main()
2877 mbedtls_printf( " . Setting up the SSL/TLS structure..." ); in main()
2885mbedtls_printf( " failed\n ! mbedtls_ssl_config_defaults returned -0x%x\n\n", (unsigned int) -ret… in main()
2935 mbedtls_printf( " failed\n ! mbedtls_ssl_conf_max_frag_len returned %d\n\n", ret ); in main()
2947 mbedtls_printf( "CID length must not change during renegotiation\n" ); in main()
2960 mbedtls_printf( " failed\n ! mbedtls_ssl_conf_cid_len returned -%#04x\n\n", in main()
2982mbedtls_printf( " failed\n ! mbedtls_ssl_conf_dtls_srtp_protection_profiles returned %d\n\n", ret… in main()
2994 mbedtls_printf( " failed\n ! must enable use_srtp to force srtp profile\n\n" ); in main()
3013 mbedtls_printf( " failed\n ! mbedtls_ssl_conf_alpn_protocols returned %d\n\n", ret ); in main()
3064 mbedtls_printf( in main()
3091 mbedtls_printf( " failed\n ! mbedtls_ssl_ticket_rotate returned %d\n\n", ret ); in main()
3107 mbedtls_printf( " failed\n ! mbedtls_ssl_cookie_setup returned %d\n\n", ret ); in main()
3180 mbedtls_printf( " Test error: ssl_async_set_key failed (%d)\n", in main()
3189 mbedtls_printf( " failed\n ! mbedtls_ssl_conf_own_cert returned %d\n\n", ret ); in main()
3203 mbedtls_printf( " Test error: ssl_async_set_key failed (%d)\n", in main()
3212 mbedtls_printf( " failed\n ! mbedtls_ssl_conf_own_cert returned %d\n\n", ret ); in main()
3266 mbedtls_printf( " Test error: ssl_async_set_key failed (%d)\n", in main()
3309 mbedtls_printf( " failed\n ! mbedtls_ssl_conf_psk_opaque returned %d\n\n", in main()
3323mbedtls_printf( " failed\n mbedtls_ssl_conf_psk returned -0x%04X\n\n", (unsigned int) -ret ); in main()
3364mbedtls_printf( " failed\n mbedtls_ssl_conf_dh_param returned -0x%04X\n\n", (unsigned int) -ret … in main()
3377 mbedtls_printf( " failed\n ! mbedtls_ssl_setup returned -0x%x\n\n", (unsigned int) -ret ); in main()
3411 mbedtls_printf( " failed\n ! mbedtls_ssl_set_cid returned %d\n\n", in main()
3428 mbedtls_printf( " ok\n" ); in main()
3433 mbedtls_printf( " . Bind on %s://%s:%s/ ...", in main()
3443 mbedtls_printf( " failed\n ! mbedtls_net_bind returned -0x%x\n\n", (unsigned int) -ret ); in main()
3446 mbedtls_printf( " ok\n" ); in main()
3452 mbedtls_printf( " interrupted by SIGTERM (not in net_accept())\n" ); in main()
3462 mbedtls_printf( " ! Client initiated reconnection from same port\n" ); in main()
3471 mbedtls_printf("Last error was: %d - %s\n\n", ret, error_buf ); in main()
3482 mbedtls_printf( " . Waiting for a remote connection ..." ); in main()
3491 mbedtls_printf( " interrupted by SIGTERM (in net_accept())\n" ); in main()
3499 mbedtls_printf( " failed\n ! mbedtls_net_accept returned -0x%x\n\n", (unsigned int) -ret ); in main()
3509mbedtls_printf( " failed\n ! net_set_(non)block() returned -0x%x\n\n", (unsigned int) -ret ); in main()
3521 mbedtls_printf( " failed\n ! mbedtls_ssl_set_client_transport_id() returned -0x%x\n\n", in main()
3535mbedtls_printf( " failed\n ! mbedtls_ssl_set_hs_ecjpake_password returned %d\n\n", ret ); in main()
3553 mbedtls_printf( " ok\n" ); in main()
3559 mbedtls_printf( " . Performing the SSL/TLS handshake..." ); in main()
3568 mbedtls_printf( " cancelling on injected error\n" ); in main()
3591 mbedtls_printf( " hello verification requested\n" ); in main()
3597mbedtls_printf( " failed\n ! mbedtls_ssl_handshake returned -0x%x\n\n", (unsigned int) -ret ); in main()
3607 mbedtls_printf( "%s\n", vrfy_buf ); in main()
3624 mbedtls_printf( " ok\n [ Protocol is %s ]\n" in main()
3634 mbedtls_printf( " [ Record expansion is %d ]\n", ret ); in main()
3636 mbedtls_printf( " [ Record expansion is unknown ]\n" ); in main()
3639 mbedtls_printf( " [ Maximum incoming record payload length is %u ]\n", in main()
3641 mbedtls_printf( " [ Maximum outgoing record payload length is %u ]\n", in main()
3649 mbedtls_printf( " [ Application Layer Protocol is %s ]\n", in main()
3658 mbedtls_printf( " . Verifying peer X.509 certificate..." ); in main()
3664 mbedtls_printf( " failed\n" ); in main()
3667 mbedtls_printf( "%s\n", vrfy_buf ); in main()
3670 mbedtls_printf( " ok\n" ); in main()
3677 mbedtls_printf( " . Peer certificate information ...\n" ); in main()
3680 mbedtls_printf( "%s\n", crt_buf ); in main()
3699 mbedtls_printf( " failed\n ! mbedtls_ssl_tls_prf returned -0x%x\n\n", in main()
3704 mbedtls_printf( " EAP-TLS key material is:" ); in main()
3708 mbedtls_printf("\n "); in main()
3709 mbedtls_printf("%02x ", eap_tls_keymaterial[j] ); in main()
3711 mbedtls_printf("\n"); in main()
3720 mbedtls_printf( " failed\n ! mbedtls_ssl_tls_prf returned -0x%x\n\n", in main()
3725 mbedtls_printf( " EAP-TLS IV is:" ); in main()
3729 mbedtls_printf("\n "); in main()
3730 mbedtls_printf("%02x ", eap_tls_iv[j] ); in main()
3732 mbedtls_printf("\n"); in main()
3745 mbedtls_printf( " Unable to negotiate " in main()
3760 mbedtls_printf( " failed\n ! mbedtls_ssl_tls_prf returned -0x%x\n\n", in main()
3765 mbedtls_printf( " DTLS-SRTP key material is:" ); in main()
3769 mbedtls_printf( "\n " ); in main()
3770 mbedtls_printf( "%02x ", dtls_srtp_key_material[j] ); in main()
3772 mbedtls_printf( "\n" ); in main()
3778 mbedtls_printf( " Keying material: " ); in main()
3781 mbedtls_printf( "%02X", dtls_srtp_key_material[j] ); in main()
3783 mbedtls_printf( "\n" ); in main()
3787 mbedtls_printf( " DTLS-SRTP mki value: " ); in main()
3790 mbedtls_printf( "%02X", dtls_srtp_negotiation_result.mki_value[j] ); in main()
3795 mbedtls_printf( " DTLS-SRTP no mki value negotiated" ); in main()
3797 mbedtls_printf( "\n" ); in main()
3813 mbedtls_printf( " failed\n ! mbedtls_ssl_set_cid returned %d\n\n", in main()
3823 mbedtls_printf( "Heap memory usage after handshake: %lu bytes. Peak memory usage was %lu\n", in main()
3835 mbedtls_printf( " < Read from client:" ); in main()
3869 mbedtls_printf( " connection was closed gracefully\n" ); in main()
3874 mbedtls_printf( " connection was reset by peer\n" ); in main()
3879 mbedtls_printf( " mbedtls_ssl_read returned -0x%x\n", (unsigned int) -ret ); in main()
3888 mbedtls_printf( " %d bytes read\n\n%s\n", len, (char *) buf ); in main()
3906 mbedtls_printf( " ! memory allocation failed\n" ); in main()
3919 mbedtls_printf( " ! mbedtls_ssl_read failed on cached data\n" ); in main()
3925 mbedtls_printf( " %d bytes read (%d + %d)\n\n%s\n", in main()
3988 mbedtls_printf( " connection was closed gracefully\n" ); in main()
3993 mbedtls_printf( " mbedtls_ssl_read returned -0x%x\n", (unsigned int) -ret ); in main()
4000 mbedtls_printf( " %d bytes read\n\n%s", len, (char *) buf ); in main()
4011 mbedtls_printf( " . Requestion renegotiation..." ); in main()
4018 mbedtls_printf( " failed\n ! mbedtls_ssl_renegotiate returned %d\n\n", ret ); in main()
4033 mbedtls_printf( " ok\n" ); in main()
4046 mbedtls_printf( " > Write to client:" ); in main()
4082 mbedtls_printf( " failed\n ! peer closed the connection\n\n" ); in main()
4088 mbedtls_printf( " failed\n ! mbedtls_ssl_write returned %d\n\n", ret ); in main()
4126 mbedtls_printf( " failed\n ! mbedtls_ssl_write returned %d\n\n", ret ); in main()
4135 mbedtls_printf( " %d bytes written in %d fragments\n\n%s\n", written, frags, (char *) buf ); in main()
4146 mbedtls_printf( " . Serializing live connection..." ); in main()
4151 mbedtls_printf( " failed\n ! mbedtls_ssl_context_save returned " in main()
4159 mbedtls_printf( " failed\n ! Couldn't allocate buffer for " in main()
4169 mbedtls_printf( " failed\n ! mbedtls_ssl_context_save returned " in main()
4175 mbedtls_printf( " ok\n" ); in main()
4184 mbedtls_printf( " . Save serialized context to a file... " ); in main()
4190 mbedtls_printf( "failed\n ! Couldn't allocate buffer for " in main()
4198 mbedtls_printf( "failed\n ! mbedtls_base64_encode returned " in main()
4206 mbedtls_printf( "failed\n ! Cannot open '%s' for writing.\n", in main()
4214 mbedtls_printf( "failed\n ! fwrite(%ld bytes) failed\n", in main()
4224 mbedtls_printf( "ok\n" ); in main()
4237 mbedtls_printf( " . Context has been reset... ok\n" ); in main()
4250 mbedtls_printf( " . Freeing and reinitializing context..." ); in main()
4258 mbedtls_printf( " failed\n ! mbedtls_ssl_setup returned " in main()
4283 mbedtls_printf( " ok\n" ); in main()
4286 mbedtls_printf( " . Deserializing connection..." ); in main()
4291 mbedtls_printf( "failed\n ! mbedtls_ssl_context_load returned " in main()
4301 mbedtls_printf( " ok\n" ); in main()
4315 mbedtls_printf( " . Closing the connection..." ); in main()
4322 mbedtls_printf( " done\n" ); in main()
4335 mbedtls_printf("Last error was: -0x%X - %s\n\n", (unsigned int) -ret, error_buf ); in main()
4341 mbedtls_printf( " . Cleaning up..." ); in main()
4374 mbedtls_printf( "Failed to list of opaque PSKs - error was %d\n", ret ); in main()
4417 mbedtls_printf( "Failed to destroy key slot %u - error was %d", in main()
4431 mbedtls_printf( "PSA memory leak detected: %s\n", message); in main()
4456 mbedtls_printf( "Test hooks detected errors.\n" ); in main()
4471 mbedtls_printf( " done.\n" ); in main()