Lines Matching refs:mbedtls_printf
36 #define mbedtls_printf printf macro
47 mbedtls_printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_CERTS_C and/or MBEDTLS_ENTROPY_C " in main()
129 mbedtls_printf( "\n . Loading the server cert. and key..." ); in main()
141 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned %d\n\n", ret ); in main()
149 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned %d\n\n", ret ); in main()
157 mbedtls_printf( " failed\n ! mbedtls_pk_parse_key returned %d\n\n", ret ); in main()
161 mbedtls_printf( " ok\n" ); in main()
166 mbedtls_printf( " . Bind on https://localhost:4433/ ..." ); in main()
171 mbedtls_printf( " failed\n ! mbedtls_net_bind returned %d\n\n", ret ); in main()
175 mbedtls_printf( " ok\n" ); in main()
180 mbedtls_printf( " . Seeding the random number generator..." ); in main()
187 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main()
191 mbedtls_printf( " ok\n" ); in main()
196 mbedtls_printf( " . Setting up the SSL data...." ); in main()
204 mbedtls_printf( " failed\n ! mbedtls_ssl_config_defaults returned %d\n\n", ret ); in main()
220 mbedtls_printf( " failed\n ! mbedtls_ssl_conf_own_cert returned %d\n\n", ret ); in main()
226 mbedtls_printf( " failed\n ! mbedtls_ssl_setup returned %d\n\n", ret ); in main()
230 mbedtls_printf( " ok\n" ); in main()
238 mbedtls_printf("Last error was: %d - %s\n\n", ret, error_buf ); in main()
249 mbedtls_printf( " . Waiting for a remote connection ..." ); in main()
255 mbedtls_printf( " failed\n ! mbedtls_net_accept returned %d\n\n", ret ); in main()
261 mbedtls_printf( " ok\n" ); in main()
266 mbedtls_printf( " . Performing the SSL/TLS handshake..." ); in main()
273 mbedtls_printf( " failed\n ! mbedtls_ssl_handshake returned %d\n\n", ret ); in main()
278 mbedtls_printf( " ok\n" ); in main()
283 mbedtls_printf( " < Read from client:" ); in main()
300 mbedtls_printf( " connection was closed gracefully\n" ); in main()
304 mbedtls_printf( " connection was reset by peer\n" ); in main()
308 mbedtls_printf( " mbedtls_ssl_read returned -0x%x\n", -ret ); in main()
316 mbedtls_printf( " %d bytes read\n\n%s", len, (char *) buf ); in main()
326 mbedtls_printf( " > Write to client:" ); in main()
336 mbedtls_printf( " failed\n ! peer closed the connection\n\n" ); in main()
342 mbedtls_printf( " failed\n ! mbedtls_ssl_write returned %d\n\n", ret ); in main()
348 mbedtls_printf( " %d bytes written\n\n%s\n", len, (char *) buf ); in main()
350 mbedtls_printf( " . Closing the connection..." ); in main()
357 mbedtls_printf( " failed\n ! mbedtls_ssl_close_notify returned %d\n\n", ret ); in main()
362 mbedtls_printf( " ok\n" ); in main()
374 mbedtls_printf("Last error was: %d - %s\n\n", ret, error_buf ); in main()
392 mbedtls_printf( " Press Enter to exit this program.\n" ); in main()