]> granicus.if.org Git - neomutt/commitdiff
crypt_key_is_valid
authorRichard Russon <rich@flatcap.org>
Tue, 11 Apr 2017 11:58:12 +0000 (12:58 +0100)
committerRichard Russon <rich@flatcap.org>
Wed, 12 Apr 2017 01:01:42 +0000 (02:01 +0100)
crypt-gpgme.c

index c16fe626bc489e0f05816dfaf6ec6a37bd0ed9fb..96ea7519133bb06a00685936fbd0f2fd86f1f9eb 100644 (file)
@@ -316,11 +316,11 @@ static void crypt_free_key (crypt_key_t **keylist)
 }
 
 /* Return true when key K is valid. */
-static int crypt_key_is_valid (crypt_key_t *k)
+static bool crypt_key_is_valid (crypt_key_t *k)
 {
   if (k->flags & KEYFLAG_CANTUSE)
-    return 0;
-  return 1;
+    return false;
+  return true;
 }
 
 /* Return true when validity of KEY is sufficient. */