cscvs to tla changeset 138
[onak.git] / cleankey.h
diff --git a/cleankey.h b/cleankey.h
new file mode 100644 (file)
index 0000000..2b9d8ec
--- /dev/null
@@ -0,0 +1,26 @@
+/*
+ * cleankey.h - Routines to look for common key problems and clean them up.
+ *
+ * Jonathan McDowell <noodles@earth.li>
+ *
+ * Copyright 2004 Project Purple
+ *
+ * $Id: cleankey.h,v 1.1 2004/05/31 14:16:49 noodles Exp $
+ */
+
+#ifndef __CLEANKEY_H__
+#define __CLEANKEY_H__
+
+#include "keystructs.h"
+
+/**
+ *     cleankeys - Apply all available cleaning options on a list of keys.
+ *     @publickey: The list of keys to clean.
+ *
+ *     Applies all the cleaning options we can (eg duplicate key ids) to a
+ *     list of keys. Returns 0 if no changes were made, otherwise the number
+ *     of keys cleaned.
+ */
+int cleankeys(struct openpgp_publickey *keys);
+
+#endif