diff options
Diffstat (limited to 'plugins/openpgp/src/util.vala')
| -rw-r--r-- | plugins/openpgp/src/util.vala | 9 |
1 files changed, 9 insertions, 0 deletions
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 "<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; +} + } |
