[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
CVS gsasl/lib/gl
From: |
gsasl-commit |
Subject: |
CVS gsasl/lib/gl |
Date: |
Sat, 01 Jan 2005 17:04:36 +0100 |
Update of /home/cvs/gsasl/lib/gl
In directory dopio:/tmp/cvs-serv19962
Modified Files:
base64.h base64.c
Log Message:
Update.
--- /home/cvs/gsasl/lib/gl/base64.h 2004/11/30 13:29:07 1.4
+++ /home/cvs/gsasl/lib/gl/base64.h 2005/01/01 16:04:36 1.5
@@ -29,6 +29,8 @@
integer >= n/k, i.e., the ceiling of n/k. */
#define BASE64_LENGTH(inlen) ((((inlen) + 2) / 3) * 4)
+extern bool isbase64 (char ch);
+
extern void base64_encode (const char *restrict in, size_t inlen,
char *restrict out, size_t outlen);
--- /home/cvs/gsasl/lib/gl/base64.c 2004/11/30 20:51:04 1.11
+++ /home/cvs/gsasl/lib/gl/base64.c 2005/01/01 16:04:36 1.12
@@ -274,10 +274,10 @@
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
@@ -295,7 +295,7 @@
while (inlen >= 2)
{
- if (!isb64 (in[0]) || !isb64 (in[1]))
+ if (!isbase64 (in[0]) || !isbase64 (in[1]))
break;
if (outleft)
@@ -319,7 +319,7 @@
}
else
{
- if (!isb64 (in[2]))
+ if (!isbase64 (in[2]))
break;
if (outleft)
@@ -339,7 +339,7 @@
}
else
{
- if (!isb64 (in[3]))
+ if (!isbase64 (in[3]))
break;
if (outleft)
- CVS gsasl/lib/gl,
gsasl-commit <=
- CVS gsasl/lib/gl, gsasl-commit, 2005/01/01
- CVS gsasl/lib/gl, gsasl-commit, 2005/01/01
- CVS gsasl/lib/gl, gsasl-commit, 2005/01/01
- CVS gsasl/lib/gl, gsasl-commit, 2005/01/01
- CVS gsasl/lib/gl, gsasl-commit, 2005/01/28