1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-12-22 15:58:50 -05:00

base64: don't compile base64_encode() function

We don't use this anywhere; "comment" it out so we still remain
relatively close to the upstream sources.

Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
Dan McGee 2011-10-17 12:03:02 -05:00
parent b633985e60
commit e47eb9a777
2 changed files with 4 additions and 0 deletions

View File

@ -62,6 +62,7 @@ static const unsigned char base64_dec_map[128] =
49, 50, 51, 127, 127, 127, 127, 127 49, 50, 51, 127, 127, 127, 127, 127
}; };
#if 0
/* /*
* Encode a buffer into base64 format * Encode a buffer into base64 format
*/ */
@ -124,6 +125,7 @@ int base64_encode( unsigned char *dst, size_t *dlen,
return( 0 ); return( 0 );
} }
#endif
/* /*
* Decode a base64-formatted buffer * Decode a base64-formatted buffer

View File

@ -30,6 +30,7 @@
#define POLARSSL_ERR_BASE64_BUFFER_TOO_SMALL -0x0010 /**< Output buffer too small. */ #define POLARSSL_ERR_BASE64_BUFFER_TOO_SMALL -0x0010 /**< Output buffer too small. */
#define POLARSSL_ERR_BASE64_INVALID_CHARACTER -0x0012 /**< Invalid character in input. */ #define POLARSSL_ERR_BASE64_INVALID_CHARACTER -0x0012 /**< Invalid character in input. */
#if 0
/** /**
* \brief Encode a buffer into base64 format * \brief Encode a buffer into base64 format
* *
@ -47,6 +48,7 @@
*/ */
int base64_encode( unsigned char *dst, size_t *dlen, int base64_encode( unsigned char *dst, size_t *dlen,
const unsigned char *src, size_t slen ); const unsigned char *src, size_t slen );
#endif
/** /**
* \brief Decode a base64-formatted buffer * \brief Decode a base64-formatted buffer