Lines Matching refs:crt
182 int write_certificate( mbedtls_x509write_cert *crt, const char *output_file, in write_certificate() argument
192 if( ( ret = mbedtls_x509write_crt_pem( crt, output_buf, 4096, in write_certificate()
228 mbedtls_x509write_cert crt; in main() local
237 mbedtls_x509write_crt_init( &crt ); in main()
622 mbedtls_x509write_crt_set_subject_key( &crt, subject_key ); in main()
623 mbedtls_x509write_crt_set_issuer_key( &crt, issuer_key ); in main()
628 if( ( ret = mbedtls_x509write_crt_set_subject_name( &crt, opt.subject_name ) ) != 0 ) in main()
636 if( ( ret = mbedtls_x509write_crt_set_issuer_name( &crt, opt.issuer_name ) ) != 0 ) in main()
647 mbedtls_x509write_crt_set_version( &crt, opt.version ); in main()
648 mbedtls_x509write_crt_set_md_alg( &crt, opt.md ); in main()
650 ret = mbedtls_x509write_crt_set_serial( &crt, &serial ); in main()
659 ret = mbedtls_x509write_crt_set_validity( &crt, opt.not_before, opt.not_after ); in main()
676 ret = mbedtls_x509write_crt_set_basic_constraints( &crt, opt.is_ca, in main()
696 ret = mbedtls_x509write_crt_set_subject_key_identifier( &crt ); in main()
715 ret = mbedtls_x509write_crt_set_authority_key_identifier( &crt ); in main()
735 ret = mbedtls_x509write_crt_set_key_usage( &crt, opt.key_usage ); in main()
753 ret = mbedtls_x509write_crt_set_ns_cert_type( &crt, opt.ns_cert_type ); in main()
771 if( ( ret = write_certificate( &crt, opt.output_file, in main()
789 mbedtls_x509write_crt_free( &crt ); in main()