diff options
| author | frosty <frostinator33@airmail.cc> | 2026-10-26 10:21:57 -0400 |
|---|---|---|
| committer | frosty <frostinator33@airmail.cc> | 2026-10-26 10:21:57 -0400 |
| commit | 74aecd8b0986d07b50b7ce310d64e645b8b54e38 (patch) | |
| tree | 560e6434f183eb54cd779936f3a4c9575146a066 /plugins/openpgp/src/util.vala | |
| parent | 3d7e90d401da02d430a87db0ec7e1db3a6f1a68f (diff) | |
| parent | 4436001bb361ad4f9e4e05819214ecf0ea77c063 (diff) | |
Merge 'upstream/master'
Diffstat (limited to 'plugins/openpgp/src/util.vala')
| -rw-r--r-- | plugins/openpgp/src/util.vala | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/plugins/openpgp/src/util.vala b/plugins/openpgp/src/util.vala deleted file mode 100644 index 3c7a7594..00000000 --- a/plugins/openpgp/src/util.vala +++ /dev/null @@ -1,29 +0,0 @@ -using Gtk; - -using Dino.Entities; -using Xmpp.Util; - -namespace Dino.Plugins.OpenPgp { - -public static string markup_id(string s, bool is_fingerprint) { - string markup = is_fingerprint ? "" : "0x"; - for (int i = 0; i < s.length; i += 4) { - string four_chars = s.substring(i, 4).down(); - - if (i == 4 * 5) markup += "\n"; - markup += four_chars; - if (is_fingerprint) markup += " "; - } - return "<span font_family='monospace' font='9'>" + markup + "</span>"; -} - -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; -} - -} |
