g_free (pull_data->remote_name);
pull_data->remote_name = g_strdup (remote_name_or_baseurl);
-#ifndef OSTREE_DISABLE_GPGME
/* Fetch GPG verification settings from remote if it wasn't already
* explicitly set in the options. */
if (!opt_gpg_verify_set)
if (!ostree_repo_remote_get_gpg_verify_summary (self, pull_data->remote_name,
&pull_data->gpg_verify_summary, error))
goto out;
-#endif /* OSTREE_DISABLE_GPGME */
/* Fetch verification settings from remote if it wasn't already
* explicitly set in the options. */
if (!opt_sign_verify_set)
g_autofree char *metalink_url_string = NULL;
g_autoptr(GBytes) summary = NULL;
g_autoptr(GBytes) signatures = NULL;
-#ifndef OSTREE_DISABLE_GPGME
gboolean gpg_verify_summary;
-#endif
gboolean ret = FALSE;
gboolean summary_is_from_cache;
error))
goto out;
-#ifndef OSTREE_DISABLE_GPGME
if (!ostree_repo_remote_get_gpg_verify_summary (self, name, &gpg_verify_summary, error))
goto out;
}
}
-#else
- g_message ("%s: GPG feature is disabled in a build time", __FUNCTION__);
-#endif /* OSTREE_DISABLE_GPGME */
-
if (out_summary != NULL)
*out_summary = g_steal_pointer (&summary);
return TRUE;
}
-#ifndef OSTREE_DISABLE_GPGME
return ostree_repo_get_remote_boolean_option (self, name, "gpg-verify",
TRUE, out_gpg_verify, error);
-#else
- g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
- "'%s': GPG feature is disabled in a build time",
- __FUNCTION__);
- if (out_gpg_verify != NULL)
- *out_gpg_verify = FALSE;
- return FALSE;
-#endif /* OSTREE_DISABLE_GPGME */
}
/**
gboolean *out_gpg_verify_summary,
GError **error)
{
-#ifndef OSTREE_DISABLE_GPGME
return ostree_repo_get_remote_boolean_option (self, name, "gpg-verify-summary",
FALSE, out_gpg_verify_summary, error);
-#else
- g_set_error (error, G_IO_ERROR, G_IO_ERROR_NOT_SUPPORTED,
- "'%s': GPG feature is disabled in a build time",
- __FUNCTION__);
- if (out_gpg_verify_summary != NULL)
- *out_gpg_verify_summary = FALSE;
- return FALSE;
-#endif /* OSTREE_DISABLE_GPGME */
}
/**