void
empathy_tls_certificate_reject_async (EmpathyTLSCertificate *self,
    EmpTLSCertificateRejectReason reason,
    GHashTable *details,
    GAsyncReadyCallback callback,
    gpointer user_data)
{
  GPtrArray *rejections;
  GSimpleAsyncResult *reject_result;

  g_assert (EMPATHY_IS_TLS_CERTIFICATE (self));

  DEBUG ("Rejecting TLS certificate with reason %u", reason);

  rejections = build_rejections_array (reason, details);
  reject_result = g_simple_async_result_new (G_OBJECT (self),
      callback, user_data, empathy_tls_certificate_reject_async);

  emp_cli_authentication_tls_certificate_call_reject (TP_PROXY (self),
      -1, rejections, cert_proxy_reject_cb,
      reject_result, g_object_unref, G_OBJECT (self));

  tp_clear_boxed (EMP_ARRAY_TYPE_TLS_CERTIFICATE_REJECTION_LIST,
      &rejections);
}
void hev_impathy_tls_certificate_reject_async(HevImpathyTLSCertificate *self,
			TpTLSCertificateRejectReason reason, GHashTable *details,
			GAsyncReadyCallback callback, gpointer user_data)
{
	GPtrArray *rejections = NULL;
	GSimpleAsyncResult *reject_result = NULL;

	g_debug("%s:%d[%s]", __FILE__, __LINE__, __FUNCTION__);

	g_return_if_fail(HEV_IS_IMPATHY_TLS_CERTIFICATE(self));

	rejections = build_rejections_array(reason, details);
	reject_result = g_simple_async_result_new(G_OBJECT(self),
				callback, user_data,
				hev_impathy_tls_certificate_reject_async);

	hev_cli_authentication_tls_certificate_call_reject(TP_PROXY(self),
				-1, rejections, cert_proxy_reject_handler,
				reject_result, g_object_unref, G_OBJECT(self));
	
	tp_clear_boxed(TP_ARRAY_TYPE_TLS_CERTIFICATE_REJECTION_LIST,
				&rejections);
}