Mercurial > ~mikael > mcabber > hg
comparison mcabber/mcabber/pgp.c @ 2238:a34c8b41e0b5
Cosmectics (fix coding style)
author | Mikael Berthe <mikael@lilotux.net> |
---|---|
date | Sat, 21 Nov 2015 18:43:10 +0100 |
parents | 048cff929e4d |
children | f5402d705f67 |
comparison
equal
deleted
inserted
replaced
2237:048cff929e4d | 2238:a34c8b41e0b5 |
---|---|
99 // Check OpenPGP engine version; with version 2+ the agent is mandatory | 99 // Check OpenPGP engine version; with version 2+ the agent is mandatory |
100 // and we do not manage the passphrase. | 100 // and we do not manage the passphrase. |
101 gpgme_set_protocol(ctx, GPGME_PROTOCOL_OpenPGP); | 101 gpgme_set_protocol(ctx, GPGME_PROTOCOL_OpenPGP); |
102 if (err) return -1; | 102 if (err) return -1; |
103 | 103 |
104 err = gpgme_get_engine_info (&info); | 104 err = gpgme_get_engine_info(&info); |
105 if (!err) { | 105 if (!err) { |
106 while (info && info->protocol != gpgme_get_protocol (ctx)) | 106 while (info && info->protocol != gpgme_get_protocol(ctx)) |
107 info = info->next; | 107 info = info->next; |
108 | 108 |
109 if (info && info->version) { | 109 if (info && info->version) { |
110 if (!strncmp(info->version, "1.", 2)) | 110 if (!strncmp(info->version, "1.", 2)) |
111 gpg.version1 = TRUE; | 111 gpg.version1 = TRUE; |