From 9b7b0d98cb9a41e8bd06ae627474d4e1e97139e6 Mon Sep 17 00:00:00 2001 From: Marvin W Date: Sun, 7 Jun 2026 21:52:00 +0200 Subject: OpenPGP: Process signatures on presences only once needed - Incoming signatures are stored in the database and processed when needed (to send PGP encrypted messages or to display them in the contact details) - Outgoing signatures are stored in the database and cached until the key is changed --- plugins/openpgp/src/util.vala | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'plugins/openpgp/src/util.vala') diff --git a/plugins/openpgp/src/util.vala b/plugins/openpgp/src/util.vala index 9cba9b2f..3c7a7594 100644 --- a/plugins/openpgp/src/util.vala +++ b/plugins/openpgp/src/util.vala @@ -17,4 +17,13 @@ public static string markup_id(string s, bool is_fingerprint) { return "" + markup + ""; } +private static string? get_sign_key(string sig, string signed_text) { + string armor = "-----BEGIN PGP MESSAGE-----\n\n" + sig + "\n-----END PGP MESSAGE-----"; + string? sign_key = null; + try { + sign_key = GPGHelper.get_sign_key(armor, signed_text); + } catch (Error e) { } + return sign_key; +} + } -- cgit v1.3