Lines Matching refs:mbedtls_printf

32 #define mbedtls_printf     printf  macro
42 mbedtls_printf( "MBEDTLS_X509_CRT_WRITE_C and/or MBEDTLS_X509_CRT_PARSE_C and/or " in main()
224 mbedtls_printf( USAGE ); in main()
365 mbedtls_printf("\n"); in main()
370 mbedtls_printf( " . Seeding the random number generator..." ); in main()
379 mbedtls_printf( " failed\n ! mbedtls_ctr_drbg_seed returned %d - %s\n", ret, buf ); in main()
383 mbedtls_printf( " ok\n" ); in main()
387 mbedtls_printf( " . Reading serial number..." ); in main()
393mbedtls_printf( " failed\n ! mbedtls_mpi_read_string returned -0x%02x - %s\n\n", -ret, buf ); in main()
397 mbedtls_printf( " ok\n" ); in main()
406 mbedtls_printf( " . Loading the issuer certificate ..." ); in main()
412mbedtls_printf( " failed\n ! mbedtls_x509_crt_parse_file returned -0x%02x - %s\n\n", -ret, buf ); in main()
421mbedtls_printf( " failed\n ! mbedtls_x509_dn_gets returned -0x%02x - %s\n\n", -ret, buf ); in main()
427 mbedtls_printf( " ok\n" ); in main()
438 mbedtls_printf( " . Loading the certificate request ..." ); in main()
444mbedtls_printf( " failed\n ! mbedtls_x509_csr_parse_file returned -0x%02x - %s\n\n", -ret, buf ); in main()
453mbedtls_printf( " failed\n ! mbedtls_x509_dn_gets returned -0x%02x - %s\n\n", -ret, buf ); in main()
460 mbedtls_printf( " ok\n" ); in main()
469 mbedtls_printf( " . Loading the subject key ..." ); in main()
477mbedtls_printf( " failed\n ! mbedtls_pk_parse_keyfile returned -0x%02x - %s\n\n", -ret, buf ); in main()
481 mbedtls_printf( " ok\n" ); in main()
484 mbedtls_printf( " . Loading the issuer key ..." ); in main()
492mbedtls_printf( " failed\n ! mbedtls_pk_parse_keyfile returned -x%02x - %s\n\n", -ret, buf ); in main()
506 mbedtls_printf( " failed\n ! issuer_key does not match issuer certificate\n\n" ); in main()
512 mbedtls_printf( " ok\n" ); in main()
529mbedtls_printf( " failed\n ! mbedtls_x509write_crt_set_subject_name returned -0x%02x - %s\n\n", … in main()
536mbedtls_printf( " failed\n ! mbedtls_x509write_crt_set_issuer_name returned -0x%02x - %s\n\n", -… in main()
540 mbedtls_printf( " . Setting certificate values ..." ); in main()
547mbedtls_printf( " failed\n ! mbedtls_x509write_crt_set_serial returned -0x%02x - %s\n\n", -ret, … in main()
555mbedtls_printf( " failed\n ! mbedtls_x509write_crt_set_validity returned -0x%02x - %s\n\n", -ret… in main()
559 mbedtls_printf( " ok\n" ); in main()
561 mbedtls_printf( " . Adding the Basic Constraints extension ..." ); in main()
569mbedtls_printf( " failed\n ! x509write_crt_set_basic_contraints returned -0x%02x - %s\n\n", -ret… in main()
573 mbedtls_printf( " ok\n" ); in main()
576 mbedtls_printf( " . Adding the Subject Key Identifier ..." ); in main()
583mbedtls_printf( " failed\n ! mbedtls_x509write_crt_set_subject_key_identifier returned -0x%02x -… in main()
587 mbedtls_printf( " ok\n" ); in main()
589 mbedtls_printf( " . Adding the Authority Key Identifier ..." ); in main()
596mbedtls_printf( " failed\n ! mbedtls_x509write_crt_set_authority_key_identifier returned -0x%02x… in main()
600 mbedtls_printf( " ok\n" ); in main()
605 mbedtls_printf( " . Adding the Key Usage extension ..." ); in main()
612mbedtls_printf( " failed\n ! mbedtls_x509write_crt_set_key_usage returned -0x%02x - %s\n\n", -re… in main()
616 mbedtls_printf( " ok\n" ); in main()
621 mbedtls_printf( " . Adding the NS Cert Type extension ..." ); in main()
628mbedtls_printf( " failed\n ! mbedtls_x509write_crt_set_ns_cert_type returned -0x%02x - %s\n\n", … in main()
632 mbedtls_printf( " ok\n" ); in main()
638 mbedtls_printf( " . Writing the certificate..." ); in main()
645 mbedtls_printf( " failed\n ! write_certifcate -0x%02x - %s\n\n", -ret, buf ); in main()
649 mbedtls_printf( " ok\n" ); in main()
660 mbedtls_printf( " + Press Enter to exit this program.\n" ); in main()