From b4e93a95bff6b9c2f69388bffb83320637169bca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Piotr=20W=C3=B3jcik?= Date: Tue, 1 Oct 2019 21:18:25 +0200 Subject: [PATCH] Turn off repodata signing --- bin/xbps-rindex/repoflush.c | 19 +------------------ lib/repo.c | 2 +- 2 files changed, 2 insertions(+), 19 deletions(-) diff --git a/bin/xbps-rindex/repoflush.c b/bin/xbps-rindex/repoflush.c index 52110c7e..61d8f633 100644 --- a/bin/xbps-rindex/repoflush.c +++ b/bin/xbps-rindex/repoflush.c @@ -96,27 +96,10 @@ repodata_flush(struct xbps_handle *xhp, const char *repodir, buflen = strlen(buf); rv = xbps_archive_append_buf(ar, buf, buflen, XBPS_REPOIDX, 0644, "root", "root"); + free(buf); if (rv != 0) { - free(buf); return false; } - if (meta != NULL) - { - rv = sign_buffer(buf, buflen, privkey, &sig, &siglen); - free(buf); - if (rv != 0) { - free(sig); - return false; - } - assert(sig); - rv = xbps_archive_append_buf(ar, sig, siglen, - XBPS_REPOIDX_SIG, 0644, "root", "root"); - if (rv != 0) { - free(sig); - return false; - } - free(sig); - } /* XBPS_REPOIDX_META */ if (meta == NULL) { diff --git a/lib/repo.c b/lib/repo.c index cd5796ea..64e59bec 100644 --- a/lib/repo.c +++ b/lib/repo.c @@ -204,7 +204,7 @@ repo_open_local(struct xbps_repo *repo, const char *repofile) repofile, strerror(rv)); return false; } - if ((repo->idx = repo_get_dict(repo, &verified)) == NULL) { + if ((repo->idx = repo_get_dict(repo, NULL)) == NULL) { xbps_dbg_printf(repo->xhp, "[repo] `%s' failed to internalize " " index on archive, removing file.\n", repofile); /* broken archive, remove it */