diff options
author | Dan McGee <dan@archlinux.org> | 2011-08-14 20:39:43 -0500 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-08-15 06:24:49 -0500 |
commit | 83f076d3a81e5a625c07fdaf82a5e598a1c75c71 (patch) | |
tree | 26fbabfa4dc21d8c12e318a54826b8a98b12def6 /lib/libalpm/base64.c | |
parent | 835365b817285abf136fc8509ae9d1bf97f55dff (diff) | |
download | pacman-83f076d3a81e5a625c07fdaf82a5e598a1c75c71.tar.xz |
Update base64 PolarSSL code
Also adjust our code using it for the size_t adjustments made by
upstream.
Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'lib/libalpm/base64.c')
-rw-r--r-- | lib/libalpm/base64.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/libalpm/base64.c b/lib/libalpm/base64.c index fa8bec5c..5c9fa814 100644 --- a/lib/libalpm/base64.c +++ b/lib/libalpm/base64.c @@ -65,10 +65,10 @@ static const unsigned char base64_dec_map[128] = /* * Encode a buffer into base64 format */ -int base64_encode( unsigned char *dst, int *dlen, - const unsigned char *src, int slen ) +int base64_encode( unsigned char *dst, size_t *dlen, + const unsigned char *src, size_t slen ) { - int i, n; + size_t i, n; int C1, C2, C3; unsigned char *p; @@ -128,10 +128,10 @@ int base64_encode( unsigned char *dst, int *dlen, /* * Decode a base64-formatted buffer */ -int base64_decode( unsigned char *dst, int *dlen, - const unsigned char *src, int slen ) +int base64_decode( unsigned char *dst, size_t *dlen, + const unsigned char *src, size_t slen ) { - int i, j, n; + size_t i, j, n; unsigned long x; unsigned char *p; |