Lines Matching refs:mbedtls_printf
32 #define mbedtls_printf printf macro
43 mbedtls_printf( "MBEDTLS_SSL_CLI_C and/or MBEDTLS_SSL_PROTO_DTLS and/or " in main()
115 mbedtls_printf( "\n . Seeding the random number generator..." ); in main()
123 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main()
127 mbedtls_printf( " ok\n" ); in main()
132 mbedtls_printf( " . Loading the CA root certificate ..." ); in main()
139 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned -0x%x\n\n", -ret ); in main()
143 mbedtls_printf( " ok (%d skipped)\n", ret ); in main()
148 mbedtls_printf( " . Connecting to udp/%s/%s...", SERVER_NAME, SERVER_PORT ); in main()
154 mbedtls_printf( " failed\n ! mbedtls_net_connect returned %d\n\n", ret ); in main()
158 mbedtls_printf( " ok\n" ); in main()
163 mbedtls_printf( " . Setting up the DTLS structure..." ); in main()
171 mbedtls_printf( " failed\n ! mbedtls_ssl_config_defaults returned %d\n\n", ret ); in main()
185 mbedtls_printf( " failed\n ! mbedtls_ssl_setup returned %d\n\n", ret ); in main()
191 mbedtls_printf( " failed\n ! mbedtls_ssl_set_hostname returned %d\n\n", ret ); in main()
201 mbedtls_printf( " ok\n" ); in main()
206 mbedtls_printf( " . Performing the SSL/TLS handshake..." ); in main()
215 mbedtls_printf( " failed\n ! mbedtls_ssl_handshake returned -0x%x\n\n", -ret ); in main()
219 mbedtls_printf( " ok\n" ); in main()
224 mbedtls_printf( " . Verifying peer X.509 certificate..." ); in main()
233 mbedtls_printf( " failed\n" ); in main()
237 mbedtls_printf( "%s\n", vrfy_buf ); in main()
240 mbedtls_printf( " ok\n" ); in main()
246 mbedtls_printf( " > Write to server:" ); in main()
257 mbedtls_printf( " failed\n ! mbedtls_ssl_write returned %d\n\n", ret ); in main()
262 mbedtls_printf( " %d bytes written\n\n%s\n\n", len, MESSAGE ); in main()
267 mbedtls_printf( " < Read from server:" ); in main()
282 mbedtls_printf( " timeout\n\n" ); in main()
288 mbedtls_printf( " connection was closed gracefully\n" ); in main()
293 mbedtls_printf( " mbedtls_ssl_read returned -0x%x\n\n", -ret ); in main()
299 mbedtls_printf( " %d bytes read\n\n%s\n\n", len, buf ); in main()
305 mbedtls_printf( " . Closing the connection..." ); in main()
312 mbedtls_printf( " done\n" ); in main()
324 mbedtls_printf( "Last error was: %d - %s\n\n", ret, error_buf ); in main()
337 mbedtls_printf( " + Press Enter to exit this program.\n" ); in main()