]> the.earth.li Git - onak.git/blobdiff - keydb_hkp.c
Change delete_key to use a full fingerprint
[onak.git] / keydb_hkp.c
index b4540e15ab915d5cf01542a72cb87964106c4040..46fceb8dc230811a9c320ba44cead2d722fbf34f 100644 (file)
@@ -23,6 +23,8 @@
 #include <string.h>
 #include <curl/curl.h>
 
+#include "build-config.h"
+
 #include "armor.h"
 #include "charfuncs.h"
 #include "keydb.h"
@@ -31,7 +33,6 @@
 #include "mem.h"
 #include "onak-conf.h"
 #include "parsekey.h"
-#include "version.h"
 
 struct onak_hkp_dbctx {
        struct onak_db_config *config; /* Our DB config info */
@@ -270,13 +271,13 @@ static int hkp_store_key(struct onak_dbctx *dbctx,
 
 /**
  *     delete_key - Given a keyid delete the key from storage.
- *     @keyid: The keyid to delete.
+ *     @fp: The fingerprint of the key to delete.
  *     @intrans: If we're already in a transaction.
  *
  *     No op for HKP.
  */
 static int hkp_delete_key(struct onak_dbctx *dbctx,
-               uint64_t keyid, bool intrans)
+               struct openpgp_fingerprint *fp, bool intrans)
 {
        return -1;
 }