X-Git-Url: http://git.madism.org/?a=blobdiff_plain;f=pop_auth.c;h=785e1a926c45f2a97a1da4a3e8a6bfad8eb07a71;hb=841934011451205d8295ac955486f06c317fdf15;hp=0aa49c9e2d56126ef0f7696b2959d5207ee91e2a;hpb=df70e07e24add1869bcc9b7af2277d9d0c09a281;p=apps%2Fmadmutt.git diff --git a/pop_auth.c b/pop_auth.c index 0aa49c9..785e1a9 100644 --- a/pop_auth.c +++ b/pop_auth.c @@ -1,19 +1,10 @@ /* + * Copyright notice from original mutt: * Copyright (C) 2000-2001 Vsevolod Volkov - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License - * along with this program; if not, write to the Free Software - * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. + * + * This file is part of mutt-ng, see http://www.muttng.org/. + * It's licensed under the GNU General Public License, + * please see the file GPL in the top level source directory. */ #if HAVE_CONFIG_H @@ -96,7 +87,7 @@ static pop_auth_res_t pop_auth_sasl (POP_DATA * pop_data, const char *method) mutt_message _("Authenticating (SASL)..."); snprintf (buf, sizeof (buf), "AUTH %s", mech); - olen = strlen (buf); + olen = mutt_strlen (buf); /* looping protocol */ FOREVER { @@ -113,11 +104,11 @@ static pop_auth_res_t pop_auth_sasl (POP_DATA * pop_data, const char *method) #ifdef USE_SASL2 if (!mutt_strncmp (inbuf, "+ ", 2) - && sasl_decode64 (inbuf, strlen (inbuf), buf, LONG_STRING - 1, + && sasl_decode64 (inbuf, mutt_strlen (inbuf), buf, LONG_STRING - 1, &len) != SASL_OK) #else if (!mutt_strncmp (inbuf, "+ ", 2) - && sasl_decode64 (inbuf, strlen (inbuf), buf, &len) != SASL_OK) + && sasl_decode64 (inbuf, mutt_strlen (inbuf), buf, &len) != SASL_OK) #endif { dprint (1, @@ -212,9 +203,9 @@ static pop_auth_res_t pop_auth_apop (POP_DATA * pop_data, const char *method) /* Compute the authentication hash to send to the server */ MD5Init (&mdContext); MD5Update (&mdContext, (unsigned char *) pop_data->timestamp, - strlen (pop_data->timestamp)); + mutt_strlen (pop_data->timestamp)); MD5Update (&mdContext, (unsigned char *) pop_data->conn->account.pass, - strlen (pop_data->conn->account.pass)); + mutt_strlen (pop_data->conn->account.pass)); MD5Final (digest, &mdContext); for (i = 0; i < sizeof (digest); i++)