gpg: Add OstreeGpgVerifyResult
Wrappers a referenced gpgme_verify_result_t so detailed verify results can be examined independently of executing a verify operation. _ostree_gpg_verifier_check_signature() now returns this object instead of a single valid/invalid boolean, but the idea is for OstreeRepo to also return this object for commit signature verification so it can be utilized at the CLI layer (and possibly by other programs).
This commit is contained in:
1 parent
553d7840d5
commit
4a2733f9e7
19 files changed
+1679
-105
No files matched your search
@@ -0,0 +1,42 @@
|
||||
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
|
||||
*
|
||||
* Copyright (C) 2015 Red Hat, Inc.
|
||||
*
|
||||
* This library is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU Lesser General Public
|
||||
* License as published by the Free Software Foundation; either
|
||||
* version 2 of the License, or (at your option) any later version.
|
||||
*
|
||||
* This library is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||
* Lesser General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU Lesser General Public
|
||||
* License along with this library; if not, write to the
|
||||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||||
* Boston, MA 02111-1307, USA.
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#include "ostree-gpg-verify-result.h"
|
||||
|
||||
#include <gpgme.h>
|
||||
|
||||
/**
|
||||
* OstreeGpgVerifyResult:
|
||||
*
|
||||
* Private instance structure.
|
||||
*/
|
||||
struct OstreeGpgVerifyResult {
|
||||
GObject parent;
|
||||
|
||||
gpgme_ctx_t context;
|
||||
gpgme_verify_result_t details;
|
||||
};
|
||||
|
||||
/* XXX Split these into a separate "GPGME utilities" file? */
|
||||
|
||||
void _ostree_gpg_error_to_gio_error (gpgme_error_t gpg_error, GError **error);
|
||||
|
||||
Reference in new issue
Block a user