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-1307, USA. */
+ Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */
/* Written by Simon Josefsson. Partially adapted from GNU MailUtils
* (mailbox/filter_trans.c, as of 2004-11-28). Improved by review
B64 (252), B64 (253), B64 (254), B64 (255)
};
-static inline bool
-isb64 (unsigned char ch)
+bool
+isbase64 (char ch)
{
- return ch <= 255 && 0 <= b64[ch];
+ return to_uchar (ch) <= 255 && 0 <= b64[to_uchar (ch)];
}
/* Decode base64 encoded input array IN of length INLEN to output
while (inlen >= 2)
{
- if (!isb64 (in[0]) || !isb64 (in[1]))
+ if (!isbase64 (in[0]) || !isbase64 (in[1]))
break;
if (outleft)
}
else
{
- if (!isb64 (in[2]))
+ if (!isbase64 (in[2]))
break;
if (outleft)
}
else
{
- if (!isb64 (in[3]))
+ if (!isbase64 (in[3]))
break;
if (outleft)