summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeffrey Stedfast <jestedfa@microsoft.com>2020-03-18 18:30:50 -0400
committerJeffrey Stedfast <jestedfa@microsoft.com>2020-03-18 18:30:50 -0400
commitc3f086305ea14062e2d20de2b7e59646f077f73c (patch)
tree25f804b5b658ea60f8c557bf0fbcba2f7f160592
parent09c13647bf36a39bfea5baad4ec5227ac7c062f6 (diff)
downloadgmime-c3f086305ea14062e2d20de2b7e59646f077f73c.tar.gz
coding style fixes
-rw-r--r--gmime/gmime-pkcs7-context.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/gmime/gmime-pkcs7-context.c b/gmime/gmime-pkcs7-context.c
index 4030e413..8e34d4b2 100644
--- a/gmime/gmime-pkcs7-context.c
+++ b/gmime/gmime-pkcs7-context.c
@@ -382,9 +382,9 @@ GMimeCryptoContext *
g_mime_pkcs7_context_new (void)
{
#ifdef ENABLE_CRYPTO
+ gpgme_keylist_mode_t keylist_mode;
GMimePkcs7Context *pkcs7;
gpgme_ctx_t ctx;
- gpgme_keylist_mode_t keylist_mode;
/* make sure GpgMe supports the CMS protocols */
if (gpgme_engine_check_version (GPGME_PROTOCOL_CMS) != GPG_ERR_NO_ERROR)
@@ -398,16 +398,17 @@ g_mime_pkcs7_context_new (void)
gpgme_set_protocol (ctx, GPGME_PROTOCOL_CMS);
gpgme_set_textmode (ctx, FALSE);
gpgme_set_armor (ctx, FALSE);
-
+
/* ensure that key listings are correctly validated, since we
use user ID validity to determine what identity to report */
keylist_mode = gpgme_get_keylist_mode (ctx);
- if (! (keylist_mode & GPGME_KEYLIST_MODE_VALIDATE))
+ if (!(keylist_mode & GPGME_KEYLIST_MODE_VALIDATE)) {
if (gpgme_set_keylist_mode (ctx, keylist_mode | GPGME_KEYLIST_MODE_VALIDATE) != GPG_ERR_NO_ERROR) {
gpgme_release (ctx);
return NULL;
}
-
+ }
+
pkcs7->ctx = ctx;
return (GMimeCryptoContext *) pkcs7;