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()
177 mbedtls_printf( " . Performing the SSL/TLS handshake..." ); in do_handshake()
187 mbedtls_printf( " failed\n ! mbedtls_ssl_handshake returned %d: %s\n\n", ret, buf ); in do_handshake()
192 mbedtls_printf( " ok\n [ Ciphersuite is %s ]\n", in do_handshake()
198 mbedtls_printf( " . Verifying peer X.509 certificate..." ); in do_handshake()
205 mbedtls_printf( " failed\n" ); in do_handshake()
209 mbedtls_printf( "%s\n", vrfy_buf ); in do_handshake()
212 mbedtls_printf( " ok\n" ); in do_handshake()
214 mbedtls_printf( " . Peer certificate information ...\n" ); in do_handshake()
217 mbedtls_printf( "%s\n", buf ); in do_handshake()
226 mbedtls_printf("\n%s", buf); in write_ssl_data()
231 mbedtls_printf( " failed\n ! mbedtls_ssl_write returned %d\n\n", ret ); in write_ssl_data()
246 mbedtls_printf("\n%s", buf); in write_ssl_and_get_response()
251 mbedtls_printf( " failed\n ! mbedtls_ssl_write returned %d\n\n", ret ); in write_ssl_and_get_response()
270 mbedtls_printf( "failed\n ! mbedtls_ssl_read returned %d\n\n", ret ); in write_ssl_and_get_response()
274 mbedtls_printf("\n%s", data); in write_ssl_and_get_response()
304 mbedtls_printf("\n%s", buf); in write_and_get_response()
307 mbedtls_printf( " failed\n ! mbedtls_ssl_write returned %d\n\n", ret ); in write_and_get_response()
319 mbedtls_printf( "failed\n ! read returned %d\n\n", ret ); in write_and_get_response()
324 mbedtls_printf("\n%s", data); in write_and_get_response()
385 mbedtls_printf( USAGE ); in main()
390 mbedtls_printf(" %s\n", mbedtls_ssl_get_ciphersuite_name( *list ) ); in main()
393 mbedtls_printf("\n"); in main()
472 mbedtls_printf( "\n . Seeding the random number generator..." ); in main()
480 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d\n", ret ); in main()
484 mbedtls_printf( " ok\n" ); in main()
489 mbedtls_printf( " . Loading the CA root certificate ..." ); in main()
503 mbedtls_printf("MBEDTLS_CERTS_C not defined."); in main()
508 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned %d\n\n", ret ); in main()
512 mbedtls_printf( " ok (%d skipped)\n", ret ); in main()
519 mbedtls_printf( " . Loading the client cert. and key..." ); in main()
533 mbedtls_printf("MBEDTLS_CERTS_C not defined."); in main()
538 mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse returned %d\n\n", ret ); in main()
553 mbedtls_printf("MBEDTLS_CERTS_C or MBEDTLS_PEM_PARSE_C not defined."); in main()
558 mbedtls_printf( " failed\n ! mbedtls_pk_parse_key returned %d\n\n", ret ); in main()
562 mbedtls_printf( " ok\n" ); in main()
567 mbedtls_printf( " . Connecting to tcp/%s/%s...", opt.server_name, in main()
574 mbedtls_printf( " failed\n ! mbedtls_net_connect returned %d\n\n", ret ); in main()
578 mbedtls_printf( " ok\n" ); in main()
583 mbedtls_printf( " . Setting up the SSL/TLS structure..." ); in main()
591 mbedtls_printf( " failed\n ! mbedtls_ssl_config_defaults returned %d\n\n", ret ); in main()
608 mbedtls_printf( " failed\n ! mbedtls_ssl_conf_own_cert returned %d\n\n", ret ); in main()
614 mbedtls_printf( " failed\n ! mbedtls_ssl_setup returned %d\n\n", ret ); in main()
620 mbedtls_printf( " failed\n ! mbedtls_ssl_set_hostname returned %d\n\n", ret ); in main()
626 mbedtls_printf( " ok\n" ); in main()
633 mbedtls_printf( " > Get header from server:" ); in main()
639 mbedtls_printf( " failed\n ! server responded with %d\n\n", ret ); in main()
643 mbedtls_printf(" ok\n" ); in main()
645 mbedtls_printf( " > Write EHLO to server:" ); in main()
653 mbedtls_printf( " failed\n ! server responded with %d\n\n", ret ); in main()
659 mbedtls_printf( " > Get header from server:" ); in main()
665 mbedtls_printf( " failed\n ! server responded with %d\n\n", ret ); in main()
669 mbedtls_printf(" ok\n" ); in main()
671 mbedtls_printf( " > Write EHLO to server:" ); in main()
679 mbedtls_printf( " failed\n ! server responded with %d\n\n", ret ); in main()
683 mbedtls_printf(" ok\n" ); in main()
685 mbedtls_printf( " > Write STARTTLS to server:" ); in main()
693 mbedtls_printf( " failed\n ! server responded with %d\n\n", ret ); in main()
697 mbedtls_printf(" ok\n" ); in main()
706 mbedtls_printf( " > Write AUTH LOGIN to server:" ); in main()
713 mbedtls_printf( " failed\n ! server responded with %d\n\n", ret ); in main()
717 mbedtls_printf(" ok\n" ); in main()
719 mbedtls_printf( " > Write username to server: %s", opt.user_name ); in main()
726 mbedtls_printf( " failed\n ! mbedtls_base64_encode returned %d\n\n", ret ); in main()
733 mbedtls_printf( " failed\n ! server responded with %d\n\n", ret ); in main()
737 mbedtls_printf(" ok\n" ); in main()
739 mbedtls_printf( " > Write password to server: %s", opt.user_pwd ); in main()
746 mbedtls_printf( " failed\n ! mbedtls_base64_encode returned %d\n\n", ret ); in main()
753 mbedtls_printf( " failed\n ! server responded with %d\n\n", ret ); in main()
757 mbedtls_printf(" ok\n" ); in main()
761 mbedtls_printf( " > Write MAIL FROM to server:" ); in main()
768 mbedtls_printf( " failed\n ! server responded with %d\n\n", ret ); in main()
772 mbedtls_printf(" ok\n" ); in main()
774 mbedtls_printf( " > Write RCPT TO to server:" ); in main()
781 mbedtls_printf( " failed\n ! server responded with %d\n\n", ret ); in main()
785 mbedtls_printf(" ok\n" ); in main()
787 mbedtls_printf( " > Write DATA to server:" ); in main()
794 mbedtls_printf( " failed\n ! server responded with %d\n\n", ret ); in main()
798 mbedtls_printf(" ok\n" ); in main()
800 mbedtls_printf( " > Write content to server:" ); in main()
814 mbedtls_printf( " failed\n ! server responded with %d\n\n", ret ); in main()
818 mbedtls_printf(" ok\n" ); in main()
834 mbedtls_printf( " + Press Enter to exit this program.\n" ); in main()