267 |
|
|
268 |
static int |
static int |
269 |
base64_decode (const char *iptr, size_t isize, char *optr, size_t osize, |
base64_decode (const char *iptr, size_t isize, char *optr, size_t osize, |
270 |
size_t *nbytes, int *line_len) |
size_t *nbytes, int *line_len ARG_UNUSED) |
271 |
{ |
{ |
272 |
int i = 0, tmp = 0, pad = 0; |
int i = 0, tmp = 0, pad = 0; |
273 |
size_t consumed = 0; |
size_t consumed = 0; |
274 |
unsigned char data[4]; |
unsigned char data[4]; |
275 |
|
|
|
(void) line_len; |
|
276 |
*nbytes = 0; |
*nbytes = 0; |
277 |
while (consumed < isize && (*nbytes)+3 < osize) |
while (consumed < isize && (*nbytes)+3 < osize) |
278 |
{ |
{ |
375 |
|
|
376 |
static int |
static int |
377 |
qp_decode (const char *iptr, size_t isize, char *optr, size_t osize, |
qp_decode (const char *iptr, size_t isize, char *optr, size_t osize, |
378 |
size_t *nbytes, int *line_len) |
size_t *nbytes, int *line_len ARG_UNUSED) |
379 |
{ |
{ |
380 |
char c; |
char c; |
381 |
int last_char = 0; |
int last_char = 0; |
382 |
size_t consumed = 0; |
size_t consumed = 0; |
383 |
|
|
|
(void)line_len; |
|
384 |
*nbytes = 0; |
*nbytes = 0; |
385 |
while (consumed < isize && *nbytes < osize) |
while (consumed < isize && *nbytes < osize) |
386 |
{ |
{ |