Replace OpenSSL base64 impl with a simple direct impl.
Unit tests, too.
This commit is contained in:
+5
-3
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user