Lines Matching refs:TEST_ASSERT
31 TEST_ASSERT( mbedtls_pk_parse_keyfile( &key, key_file, NULL ) == 0 );
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 );
44 TEST_ASSERT( ret == 0 );
49 TEST_ASSERT( f != NULL );
53 TEST_ASSERT( olen >= pem_len - 1 );
54 TEST_ASSERT( memcmp( buf, check_buf, pem_len - 1 ) == 0 );
58 TEST_ASSERT( der_len >= 0 );
65 TEST_ASSERT( ret == MBEDTLS_ERR_ASN1_BUF_TOO_SMALL );
97 TEST_ASSERT( mbedtls_pk_parse_keyfile( &subject_key, subject_key_file,
99 TEST_ASSERT( mbedtls_pk_parse_keyfile( &issuer_key, issuer_key_file,
101 TEST_ASSERT( mbedtls_mpi_read_string( &serial, 10, serial_str ) == 0 );
106 TEST_ASSERT( mbedtls_x509write_crt_set_serial( &crt, &serial ) == 0 );
107 TEST_ASSERT( mbedtls_x509write_crt_set_validity( &crt, not_before,
110 TEST_ASSERT( mbedtls_x509write_crt_set_issuer_name( &crt, issuer_name ) == 0 );
111 TEST_ASSERT( mbedtls_x509write_crt_set_subject_name( &crt, subject_name ) == 0 );
117 TEST_ASSERT( mbedtls_x509write_crt_set_basic_constraints( &crt, 0, 0 ) == 0 );
118 TEST_ASSERT( mbedtls_x509write_crt_set_subject_key_identifier( &crt ) == 0 );
119 TEST_ASSERT( mbedtls_x509write_crt_set_authority_key_identifier( &crt ) == 0 );
121 TEST_ASSERT( mbedtls_x509write_crt_set_key_usage( &crt, key_usage ) == 0 );
123 TEST_ASSERT( mbedtls_x509write_crt_set_ns_cert_type( &crt, cert_type ) == 0 );
128 TEST_ASSERT( ret == 0 );
133 TEST_ASSERT( f != NULL );
136 TEST_ASSERT( olen < sizeof(check_buf) );
138 TEST_ASSERT( olen >= pem_len - 1 );
139 TEST_ASSERT( memcmp( buf, check_buf, pem_len - 1 ) == 0 );
143 TEST_ASSERT( der_len >= 0 );
150 TEST_ASSERT( ret == MBEDTLS_ERR_ASN1_BUF_TOO_SMALL );
175 TEST_ASSERT( ret == result );
181 TEST_ASSERT( ret > 0 );
183 TEST_ASSERT( mbedtls_asn1_get_tag( &c, buf + sizeof( buf ), &len,
185 TEST_ASSERT( mbedtls_x509_get_name( &c, buf + sizeof( buf ), &parsed ) == 0 );
188 TEST_ASSERT( ret > 0 );
190 TEST_ASSERT( strcmp( (char *) out, parsed_name ) == 0 );