summaryrefslogtreecommitdiff
path: root/net-im/profanity/files/patch-src_pgp_gpg.c
blob: 6a7e79214fc911c96b54250d6323d74fab9d619e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
The gpgme_attr_t enums and their functions, which have been marked deprecated
since 2003, were removed in GpgME 2.0.0. The individual result structures
should be used instead.

--- src/pgp/gpg.c.orig	2023-07-14 05:39:30 UTC
+++ src/pgp/gpg.c
@@ -683,7 +683,7 @@ p_gpg_decrypt(const char* const cipher)
             error = gpgme_get_key(ctx, recipient->keyid, &key, 1);
 
             if (!error && key) {
-                const char* addr = gpgme_key_get_string_attr(key, GPGME_ATTR_EMAIL, NULL, 0);
+                const char* addr = key->uids->email;
                 if (addr) {
                     g_string_append(recipients_str, addr);
                 }