Lines Matching refs:mbedtls_printf

34 #define mbedtls_printf     printf  macro
47 mbedtls_printf("MBEDTLS_BIGNUM_C and/or MBEDTLS_CERTS_C and/or MBEDTLS_ENTROPY_C " in main()
134 mbedtls_printf( " [ #%ld ] Setting up SSL/TLS data\n", thread_id ); in handle_ssl_connection()
141 mbedtls_printf( " [ #%ld ] failed: mbedtls_ssl_setup returned -0x%04x\n", in handle_ssl_connection()
151 mbedtls_printf( " [ #%ld ] Performing the SSL/TLS handshake\n", thread_id ); in handle_ssl_connection()
157 mbedtls_printf( " [ #%ld ] failed: mbedtls_ssl_handshake returned -0x%04x\n", in handle_ssl_connection()
163 mbedtls_printf( " [ #%ld ] ok\n", thread_id ); in handle_ssl_connection()
168 mbedtls_printf( " [ #%ld ] < Read from client\n", thread_id ); in handle_ssl_connection()
184 mbedtls_printf( " [ #%ld ] connection was closed gracefully\n", in handle_ssl_connection()
189 mbedtls_printf( " [ #%ld ] connection was reset by peer\n", in handle_ssl_connection()
194 mbedtls_printf( " [ #%ld ] mbedtls_ssl_read returned -0x%04x\n", in handle_ssl_connection()
201 mbedtls_printf( " [ #%ld ] %d bytes read\n=====\n%s\n=====\n", in handle_ssl_connection()
212 mbedtls_printf( " [ #%ld ] > Write to client:\n", thread_id ); in handle_ssl_connection()
221 mbedtls_printf( " [ #%ld ] failed: peer closed the connection\n", in handle_ssl_connection()
228 mbedtls_printf( " [ #%ld ] failed: mbedtls_ssl_write returned -0x%04x\n", in handle_ssl_connection()
235 mbedtls_printf( " [ #%ld ] %d bytes written\n=====\n%s\n=====\n", in handle_ssl_connection()
238 mbedtls_printf( " [ #%ld ] . Closing the connection...", thread_id ); in handle_ssl_connection()
245 mbedtls_printf( " [ #%ld ] failed: mbedtls_ssl_close_notify returned -0x%04x\n", in handle_ssl_connection()
251 mbedtls_printf( " ok\n" ); in handle_ssl_connection()
262 mbedtls_printf(" [ #%ld ] Last error was: -0x%04x - %s\n\n", in handle_ssl_connection()
289 mbedtls_printf( " [ main ] Cleaning up thread %d\n", i ); in thread_create()
363 mbedtls_printf( "\n . Loading the server cert. and key..." ); in main()
375 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned %d\n\n", ret ); in main()
383 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned %d\n\n", ret ); in main()
392 mbedtls_printf( " failed\n ! mbedtls_pk_parse_key returned %d\n\n", ret ); in main()
396 mbedtls_printf( " ok\n" ); in main()
401 mbedtls_printf( " . Seeding the random number generator..." ); in main()
407 mbedtls_printf( " failed: mbedtls_ctr_drbg_seed returned -0x%04x\n", in main()
412 mbedtls_printf( " ok\n" ); in main()
417 mbedtls_printf( " . Setting up the SSL data...." ); in main()
424 mbedtls_printf( " failed: mbedtls_ssl_config_defaults returned -0x%04x\n", in main()
444 mbedtls_printf( " failed\n ! mbedtls_ssl_conf_own_cert returned %d\n\n", ret ); in main()
448 mbedtls_printf( " ok\n" ); in main()
454 mbedtls_printf( " . Bind on https://localhost:4433/ ..." ); in main()
459 mbedtls_printf( " failed\n ! mbedtls_net_bind returned %d\n\n", ret ); in main()
463 mbedtls_printf( " ok\n" ); in main()
471 mbedtls_printf( " [ main ] Last error was: -0x%04x - %s\n", -ret, error_buf ); in main()
478 mbedtls_printf( " [ main ] Waiting for a remote connection\n" ); in main()
483 mbedtls_printf( " [ main ] failed: mbedtls_net_accept returned -0x%04x\n", ret ); in main()
487 mbedtls_printf( " [ main ] ok\n" ); in main()
488 mbedtls_printf( " [ main ] Creating a new thread\n" ); in main()
492 mbedtls_printf( " [ main ] failed: thread_create returned %d\n", ret ); in main()
519 mbedtls_printf( " Press Enter to exit this program.\n" ); in main()