Lines Matching refs:mbedtls_printf
36 #define mbedtls_printf printf macro
46 mbedtls_printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_ENTROPY_C and/or " in main()
108 mbedtls_printf( "\n . Seeding the random number generator..." ); in main()
116 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main()
120 mbedtls_printf( " ok\n" ); in main()
125 mbedtls_printf( " . Loading the CA root certificate ..." ); in main()
132 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned -0x%x\n\n", -ret ); in main()
136 mbedtls_printf( " ok (%d skipped)\n", ret ); in main()
141 mbedtls_printf( " . Connecting to tcp/%s/%s...", SERVER_NAME, SERVER_PORT ); in main()
147 mbedtls_printf( " failed\n ! mbedtls_net_connect returned %d\n\n", ret ); in main()
151 mbedtls_printf( " ok\n" ); in main()
156 mbedtls_printf( " . Setting up the SSL/TLS structure..." ); in main()
164 mbedtls_printf( " failed\n ! mbedtls_ssl_config_defaults returned %d\n\n", ret ); in main()
168 mbedtls_printf( " ok\n" ); in main()
179 mbedtls_printf( " failed\n ! mbedtls_ssl_setup returned %d\n\n", ret ); in main()
185 mbedtls_printf( " failed\n ! mbedtls_ssl_set_hostname returned %d\n\n", ret ); in main()
194 mbedtls_printf( " . Performing the SSL/TLS handshake..." ); in main()
201 mbedtls_printf( " failed\n ! mbedtls_ssl_handshake returned -0x%x\n\n", -ret ); in main()
206 mbedtls_printf( " ok\n" ); in main()
211 mbedtls_printf( " . Verifying peer X.509 certificate..." ); in main()
218 mbedtls_printf( " failed\n" ); in main()
222 mbedtls_printf( "%s\n", vrfy_buf ); in main()
225 mbedtls_printf( " ok\n" ); in main()
230 mbedtls_printf( " > Write to server:" ); in main()
239 mbedtls_printf( " failed\n ! mbedtls_ssl_write returned %d\n\n", ret ); in main()
245 mbedtls_printf( " %d bytes written\n\n%s", len, (char *) buf ); in main()
250 mbedtls_printf( " < Read from server:" ); in main()
267 mbedtls_printf( "failed\n ! mbedtls_ssl_read returned %d\n\n", ret ); in main()
273 mbedtls_printf( "\n\nEOF\n\n" ); in main()
278 mbedtls_printf( " %d bytes read\n\n%s", len, (char *) buf ); in main()
291 mbedtls_printf("Last error was: %d - %s\n\n", ret, error_buf ); in main()
304 mbedtls_printf( " + Press Enter to exit this program.\n" ); in main()