Lines Matching refs:req
105 int write_certificate_request( mbedtls_x509write_csr *req, const char *output_file, in write_certificate_request() argument
115 if( ( ret = mbedtls_x509write_csr_pem( req, output_buf, 4096, f_rng, p_rng ) ) < 0 ) in write_certificate_request()
141 mbedtls_x509write_csr req; in main() local
149 mbedtls_x509write_csr_init( &req ); in main()
150 mbedtls_x509write_csr_set_md_alg( &req, MBEDTLS_MD_SHA256 ); in main()
251 mbedtls_x509write_csr_set_key_usage( &req, opt.key_usage ); in main()
254 mbedtls_x509write_csr_set_ns_cert_type( &req, opt.ns_cert_type ); in main()
279 if( ( ret = mbedtls_x509write_csr_set_subject_name( &req, opt.subject_name ) ) != 0 ) in main()
301 mbedtls_x509write_csr_set_key( &req, &key ); in main()
311 if( ( ret = write_certificate_request( &req, opt.output_file, in main()
332 mbedtls_x509write_csr_free( &req ); in main()