Lines Matching refs:cert
102 struct tls_credential *cert, *key, *temp; in test_credential_internal_iterate() local
109 cert = credential_next_get(common_tag, NULL); in test_credential_internal_iterate()
110 zassert_not_null(cert, "Should have find a credential"); in test_credential_internal_iterate()
112 key = credential_next_get(common_tag, cert); in test_credential_internal_iterate()
115 if (cert->type == TLS_CREDENTIAL_PRIVATE_KEY) { in test_credential_internal_iterate()
120 key = cert; in test_credential_internal_iterate()
121 cert = temp; in test_credential_internal_iterate()
124 zassert_equal(cert->type, TLS_CREDENTIAL_SERVER_CERTIFICATE, in test_credential_internal_iterate()
126 zassert_equal(cert->tag, common_tag, "Invalid tag for cert"); in test_credential_internal_iterate()
127 zassert_equal(cert->len, sizeof(test_server_cert), in test_credential_internal_iterate()
129 zassert_mem_equal(cert->buf, test_server_cert, sizeof(test_server_key), in test_credential_internal_iterate()