]> granicus.if.org Git - neomutt/commitdiff
globals: upper case
authorRichard Russon <rich@flatcap.org>
Sun, 9 Dec 2018 15:01:02 +0000 (15:01 +0000)
committerRichard Russon <rich@flatcap.org>
Sun, 9 Dec 2018 16:00:42 +0000 (16:00 +0000)
ncrypt/crypt_mod_pgp_classic.c
ncrypt/crypt_mod_pgp_gpgme.c
ncrypt/crypt_mod_smime_classic.c
ncrypt/crypt_mod_smime_gpgme.c
ncrypt/cryptglue.c

index 9a965f39f9b4167a9494949eb5baf66ecf806059..ffc300666f307a7abae727343f4ae7d5e00f5b46 100644 (file)
 #endif
 
 // clang-format off
-struct CryptModuleSpecs crypt_mod_pgp_classic = {
+/**
+ * CryptModPgpClassic - CLI PGP - Implements ::CryptModuleSpecs
+ */
+struct CryptModuleSpecs CryptModPgpClassic = {
   APPLICATION_PGP,
 
   NULL, /* init */
index e0c32032aa5d9324ca680029428e3e3692c3e2d8..73151ede229d1c76bb52de7f9e0f68e7aef9a84e 100644 (file)
@@ -52,7 +52,10 @@ static int pgp_gpgme_valid_passphrase(void)
 }
 
 // clang-format off
-struct CryptModuleSpecs crypt_mod_pgp_gpgme = {
+/**
+ * CryptModPgpGpgme - GPGME PGP - Implements ::CryptModuleSpecs
+ */
+struct CryptModuleSpecs CryptModPgpGpgme = {
   APPLICATION_PGP,
 
   pgp_gpgme_init,
index 28cae5df3613d62c5fb6d9498fa4b2446995ce83..4665b3176a4f46476f0ce4e69867f8e848f7432d 100644 (file)
 #endif
 
 // clang-format off
-struct CryptModuleSpecs crypt_mod_smime_classic = {
+/**
+ * CryptModSmimeClassic - CLI SMIME - Implements ::CryptModuleSpecs
+ */
+struct CryptModuleSpecs CryptModSmimeClassic = {
   APPLICATION_SMIME,
 
   NULL, /* init */
index 0050bcf47ed14e0343e35d7cc4c7dfb4b6d64f1c..c16cebd1d7dc34b27a6b6dfca95d2332c865b760 100644 (file)
@@ -52,7 +52,10 @@ static int smime_gpgme_valid_passphrase(void)
 }
 
 // clang-format off
-struct CryptModuleSpecs crypt_mod_smime_gpgme = {
+/**
+ * CryptModSmimeGpgme - GPGME SMIME - Implements ::CryptModuleSpecs
+ */
+struct CryptModuleSpecs CryptModSmimeGpgme = {
   APPLICATION_SMIME,
 
   smime_gpgme_init,
index 49e4dd34e0375e0f85959cb7a1a3444c6b4590c0..a617256ac0628476a65f34a46fbe8357cccec19e 100644 (file)
@@ -53,16 +53,16 @@ struct State;
 bool CryptUseGpgme; ///< Config: Use GPGME crypto backend
 
 #ifdef CRYPT_BACKEND_CLASSIC_PGP
-extern struct CryptModuleSpecs crypt_mod_pgp_classic;
+extern struct CryptModuleSpecs CryptModPgpClassic;
 #endif
 
 #ifdef CRYPT_BACKEND_CLASSIC_SMIME
-extern struct CryptModuleSpecs crypt_mod_smime_classic;
+extern struct CryptModuleSpecs CryptModSmimeClassic;
 #endif
 
 #ifdef CRYPT_BACKEND_GPGME
-extern struct CryptModuleSpecs crypt_mod_pgp_gpgme;
-extern struct CryptModuleSpecs crypt_mod_smime_gpgme;
+extern struct CryptModuleSpecs CryptModPgpGpgme;
+extern struct CryptModuleSpecs CryptModSmimeGpgme;
 #endif
 
 /* If the crypto module identifier by IDENTIFIER has been registered,
@@ -92,7 +92,7 @@ void crypt_init(void)
       1
 #endif
   )
-    crypto_module_register(&crypt_mod_pgp_classic);
+    crypto_module_register(&CryptModPgpClassic);
 #endif
 
 #ifdef CRYPT_BACKEND_CLASSIC_SMIME
@@ -103,14 +103,14 @@ void crypt_init(void)
       1
 #endif
   )
-    crypto_module_register(&crypt_mod_smime_classic);
+    crypto_module_register(&CryptModSmimeClassic);
 #endif
 
   if (CryptUseGpgme)
   {
 #ifdef CRYPT_BACKEND_GPGME
-    crypto_module_register(&crypt_mod_pgp_gpgme);
-    crypto_module_register(&crypt_mod_smime_gpgme);
+    crypto_module_register(&CryptModPgpGpgme);
+    crypto_module_register(&CryptModSmimeGpgme);
 #else
     mutt_message(_("\"crypt_use_gpgme\" set"
                    " but not built with GPGME support"));