1 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
2  *
3  * Copyright (C) 2013-2015 Richard Hughes <richard@hughsie.com>
4  *
5  * Licensed under the GNU Lesser General Public License Version 2.1
6  *
7  * This library is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * This library is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with this library; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301 USA
20  */
21 
22 #ifndef __DNF_KEYRING_H
23 #define __DNF_KEYRING_H
24 
25 #include <glib.h>
26 
27 #include <rpm/rpmkeyring.h>
28 
29 G_BEGIN_DECLS
30 
31 gboolean         dnf_keyring_add_public_key     (rpmKeyring              keyring,
32                                                  const gchar            *filename,
33                                                  GError                 **error);
34 gboolean         dnf_keyring_add_public_keys    (rpmKeyring              keyring,
35                                                  GError                 **error);
36 gboolean         dnf_keyring_check_untrusted_file (rpmKeyring            keyring,
37                                                  const gchar            *filename,
38                                                  GError                 **error);
39 
40 G_END_DECLS
41 
42 #endif /* __DNF_KEYRING_H */
43