]> granicus.if.org Git - neomutt/commitdiff
drop dupe function
authorRichard Russon <rich@flatcap.org>
Fri, 20 Jul 2018 21:39:06 +0000 (22:39 +0100)
committerRichard Russon <rich@flatcap.org>
Fri, 20 Jul 2018 21:39:06 +0000 (22:39 +0100)
ncrypt/crypt_gpgme.c

index 041be471f563f746b93edc1e5685c89b596f981f..1cb10be73efa8695d80867fa7ff98dd965d3b189 100644 (file)
@@ -960,16 +960,6 @@ static char *encrypt_gpgme_object(gpgme_data_t plaintext, gpgme_key_t *rset,
   return outfile;
 }
 
-/**
- * strlower - Lower-case a string
- * @param s String to alter
- */
-static void strlower(char *s)
-{
-  for (; *s; ++s)
-    *s = tolower(*s);
-}
-
 /**
  * get_micalg - Find the "micalg" parameter from the last GPGME operation
  * @param ctx       GPGME handle
@@ -1001,13 +991,13 @@ static int get_micalg(gpgme_ctx_t ctx, int use_smime, char *buf, size_t buflen)
       {
         /* convert GPGME raw hash name to RFC2633 format */
         snprintf(buf, buflen, "%s", algorithm_name);
-        strlower(buf);
+        mutt_str_strlower(buf);
       }
       else
       {
         /* convert GPGME raw hash name to RFC3156 format */
         snprintf(buf, buflen, "pgp-%s", algorithm_name);
-        strlower(buf + 4);
+        mutt_str_strlower(buf + 4);
       }
     }
   }