diff mcabber/mcabber/pgp.c @ 2188:84252c616919

PGP: Encrypt messages with our own PGP key when carbons are enabled
author Mikael Berthe <mikael@lilotux.net>
date Sun, 04 Oct 2015 19:04:43 +0200
parents e3b66c8ead4f
children 40ddaebeb81e
line wrap: on
line diff
--- a/mcabber/mcabber/pgp.c	Sun Oct 04 19:04:04 2015 +0200
+++ b/mcabber/mcabber/pgp.c	Sun Oct 04 19:04:43 2015 +0200
@@ -118,6 +118,13 @@
     gpg.private_key = NULL;
 }
 
+//  gpg_get_private_key_id()
+// Return the current private key id (static string).
+const char *gpg_get_private_key_id(void)
+{
+  return gpg.private_key;
+}
+
 //  strip_header_footer(data)
 // Remove PGP header & footer from data.
 // Return a new string, or NULL.