Skip to content

Instantly share code, notes, and snippets.

@zhsj
Created July 16, 2018 03:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zhsj/eacb1bca11ec4427ab94e31a701b8ccc to your computer and use it in GitHub Desktop.
Save zhsj/eacb1bca11ec4427ab94e31a701b8ccc to your computer and use it in GitHub Desktop.
sks poison key
diff --git a/keydb.ml b/keydb.ml
index 949a1f4..7ff976a 100644
--- a/keydb.ml
+++ b/keydb.ml
@@ -1166,6 +1166,11 @@ struct
try
if has_hash hash then [] else
let keyid = Fingerprint.keyid_from_key ~short:true key in
+ let keyid_long = Fingerprint.keyid_to_string ~short:false (Fingerprint.keyid_from_key ~short:false key) in
+
+ (* Blacklist poison key - RT#112669 *)
+ plerror 4 "considering keyid %s" keyid_long;
+ if List.mem keyid_long ["E41ED3A107A7DBC7"] then [] else
let potential_merges = List.filter ~f:(fun x -> x <> key)
(get_by_short_keyid keyid)
in
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment