Replace OpenSSL base64 impl with a simple direct impl.

Unit tests, too.
This commit is contained in:
John Hood
2015-10-04 20:16:25 -04:00
parent 1307dc4a0f
commit db311f92f7
8 changed files with 256 additions and 88 deletions
+5 -3
View File
@@ -30,8 +30,10 @@
also delete it here.
*/
bool base64_decode( const char *b64, const size_t b64_len,
char *raw, size_t *raw_len );
#include <stdint.h>
void base64_encode( const char *raw, const size_t raw_len,
bool base64_decode( const char *b64, const size_t b64_len,
uint8_t *raw, size_t *raw_len );
void base64_encode( const uint8_t *raw, const size_t raw_len,
char *b64, const size_t b64_len );