Lines Matching refs:req
18 mbedtls_x509write_csr req;
33 mbedtls_x509write_csr_init( &req );
34 mbedtls_x509write_csr_set_md_alg( &req, md_type );
35 mbedtls_x509write_csr_set_key( &req, &key );
36 TEST_ASSERT( mbedtls_x509write_csr_set_subject_name( &req, subject_name ) == 0 );
38 TEST_ASSERT( mbedtls_x509write_csr_set_key_usage( &req, key_usage ) == 0 );
40 TEST_ASSERT( mbedtls_x509write_csr_set_ns_cert_type( &req, cert_type ) == 0 );
42 ret = mbedtls_x509write_csr_pem( &req, buf, sizeof(buf),
56 der_len = mbedtls_x509write_csr_der( &req, buf, sizeof( buf ),
63 ret = mbedtls_x509write_csr_der( &req, buf, (size_t)( der_len - 1 ),
68 mbedtls_x509write_csr_free( &req );