]> the.earth.li Git - onak.git/blob - cleankey.h
454dd4cd6c13ade22bc97a0c36c258e99a78d585
[onak.git] / cleankey.h
1 /*
2  * cleankey.h - Routines to look for common key problems and clean them up.
3  *
4  * Copyright 2004 Jonathan McDowell <noodles@earth.li>
5  *
6  * This program is free software: you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License as published by the Free
8  * Software Foundation; version 2 of the License.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along with
16  * this program.  If not, see <https://www.gnu.org/licenses/>.
17  */
18
19 #ifndef __CLEANKEY_H__
20 #define __CLEANKEY_H__
21
22 #include "keystructs.h"
23
24 /**
25  *      cleankeys - Apply all available cleaning options on a list of keys.
26  *      @publickey: The list of keys to clean.
27  *
28  *      Applies all the cleaning options we can (eg duplicate key ids) to a
29  *      list of keys. Returns 0 if no changes were made, otherwise the number
30  *      of keys cleaned.
31  */
32 int cleankeys(struct openpgp_publickey *keys);
33
34 #endif