about summary refs log tree commit diff stats
path: root/src/pgp
diff options
context:
space:
mode:
authorJames Booth <boothj5@gmail.com>2017-08-10 22:47:17 +0100
committerJames Booth <boothj5@gmail.com>2017-08-10 22:47:17 +0100
commitca1dcdda6cd6114061ff99963e59c76bd92e4603 (patch)
tree7ba91af6304e3c70df07ee6ffffe71c18eb626eb /src/pgp
parent17b4e45c5795ed191d06964feeb2d20ae7ec6e94 (diff)
downloadprofani-tty-ca1dcdda6cd6114061ff99963e59c76bd92e4603.tar.gz
Show libotr and libgpgme versions on --version
issue #956
Diffstat (limited to 'src/pgp')
-rw-r--r--src/pgp/gpg.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pgp/gpg.c b/src/pgp/gpg.c
index 051f99f0..4654ee31 100644
--- a/src/pgp/gpg.c
+++ b/src/pgp/gpg.c
@@ -56,7 +56,7 @@
 #define PGP_MESSAGE_HEADER "-----BEGIN PGP MESSAGE-----"
 #define PGP_MESSAGE_FOOTER "-----END PGP MESSAGE-----"
 
-static const char *libversion;
+static const char *libversion = NULL;
 static GHashTable *pubkeys;
 
 static gchar *pubsloc;
@@ -420,6 +420,9 @@ p_gpg_pubkeys(void)
 const char*
 p_gpg_libver(void)
 {
+    if (libversion == NULL) {
+        libversion = gpgme_check_version(NULL);
+    }
     return libversion;
 }
 
le='author Simon Ser <contact@emersion.fr> 2019-04-27 16:47:59 +0000 committer Drew DeVault <sir@cmpwn.com> 2019-04-27 14:30:28 -0400 lib/ui: introduce Invalidatable' href='/akspecs/aerc/commit/widgets/msglist.go?id=5685a176747711d0330f1251ad297b13e0621a37'>5685a17 ^
32f970e ^






0f8b7a1 ^

fcdcd32 ^
0f8b7a1 ^
32f970e ^


0f8b7a1 ^








0f8b7a1 ^
5685a17 ^
0f8b7a1 ^


e780c6e ^
0f8b7a1 ^

f1698a3 ^

0f8b7a1 ^




11f0a72 ^
0f8b7a1 ^


f1698a3 ^


de36484 ^
0f8b7a1 ^






de36484 ^




5f651b3 ^

32f970e ^
84965d6 ^
0f8b7a1 ^
5f651b3 ^
f1698a3 ^
4465646 ^

5f651b3 ^










de36484 ^
fca7321 ^



da62f63 ^


fca7321 ^
0f8b7a1 ^



f1698a3 ^
89ffd86 ^
8a42dfc ^



0f8b7a1 ^
f1698a3 ^
0f8b7a1 ^



0f8b7a1 ^

e780c6e ^



312a53e ^
f1698a3 ^
312a53e ^

f1698a3 ^

1303273 ^





32f970e ^
1303273 ^

fa5d8d7 ^

32f970e ^
fa5d8d7 ^

1303273 ^
312a53e ^
f1698a3 ^
312a53e ^


ef6178a ^
f9251c2 ^
52a97c0 ^
52a97c0 ^
a15ea01 ^
0f8b7a1 ^

1303273 ^
f1698a3 ^
0f8b7a1 ^




24daef8 ^
312a53e ^
a15ea01 ^
312a53e ^

3cd0d5b ^
f1698a3 ^

3cd0d5b ^

312a53e ^
f1698a3 ^
32f970e ^
312a53e ^

13ba53c ^
f1698a3 ^
32f970e ^
a275f65 ^
c0146ef ^
32f970e ^
c0146ef ^

32f970e ^
c0146ef ^

13ba53c ^

32f970e ^
f1698a3 ^
a275f65 ^
f1698a3 ^
0b26241 ^

52a97c0 ^
32f970e ^
52a97c0 ^
32f970e ^
52a97c0 ^


24daef8 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210