Mercurial > ~mikael > mcabber > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
2187:e3b66c8ead4f | 2188:84252c616919 |
---|---|
114 g_free(gpg.private_key); | 114 g_free(gpg.private_key); |
115 if (priv_keyid) | 115 if (priv_keyid) |
116 gpg.private_key = g_strdup(priv_keyid); | 116 gpg.private_key = g_strdup(priv_keyid); |
117 else | 117 else |
118 gpg.private_key = NULL; | 118 gpg.private_key = NULL; |
119 } | |
120 | |
121 // gpg_get_private_key_id() | |
122 // Return the current private key id (static string). | |
123 const char *gpg_get_private_key_id(void) | |
124 { | |
125 return gpg.private_key; | |
119 } | 126 } |
120 | 127 |
121 // strip_header_footer(data) | 128 // strip_header_footer(data) |
122 // Remove PGP header & footer from data. | 129 // Remove PGP header & footer from data. |
123 // Return a new string, or NULL. | 130 // Return a new string, or NULL. |