use m_strdup and m_strlen that are inlined for efficiency
[apps/madmutt.git] / imap / auth_cram.c
index 1eda8d9..e4ea149 100644 (file)
@@ -101,7 +101,7 @@ imap_auth_res_t imap_auth_cram_md5 (IMAP_DATA * idata, const char *method)
    */
 
   mutt_to_base64 ((unsigned char *) ibuf, (unsigned char *) obuf,
-                  str_len (obuf), sizeof (ibuf) - 2);
+                  m_strlen(obuf), sizeof (ibuf) - 2);
   str_cat (ibuf, sizeof (ibuf), "\r\n");
   mutt_socket_write (idata->conn, ibuf);
 
@@ -134,8 +134,8 @@ static void hmac_md5 (const char *password, char *challenge,
   unsigned int secret_len, chal_len;
   int i;
 
-  secret_len = str_len (password);
-  chal_len = str_len (challenge);
+  secret_len = m_strlen(password);
+  chal_len = m_strlen(challenge);
 
   /* passwords longer than MD5_BLOCK_LEN bytes are substituted with their MD5
    * digests */