cleanup of code for Base64 encoding and decoding
[rocksndiamonds.git] / src / libgame / base64.h
index beffe9caf63ec51169efff50b43582ccb5803a53..3c76e6a0c54c787babbde6e7672d8c84863adfd4 100644 (file)
 #ifndef BASE64_H
 #define BASE64_H
 
-char* base64( const void* binaryData, int len, int *flen );
-unsigned char* unbase64( const char* ascii, int len, int *flen );
+#include "system.h"
+
+
+int base64_encoded_size(int);
+int base64_decoded_size(const char *);
+
+void base64_encode(char *, const void *, int);
+void base64_decode(byte *, const char *);
 
 #endif