Skip to content
Snippets Groups Projects
Commit 37b2160f authored by rswindell's avatar rswindell
Browse files

Added C++ support for function prototypes.

parent f8c6686d
Branches
Tags
No related merge requests found
......@@ -35,5 +35,13 @@
* Note: If this box doesn't appear square, then you need to fix your tabs. *
****************************************************************************/
#ifdef __cplusplus
extern "C" {
#endif
int b64_encode(char *target, size_t tlen, const char *source, size_t slen);
int b64_decode(char *target, size_t tlen, const char *source, size_t slen);
#ifdef __cplusplus
}
#endif
\ No newline at end of file
......@@ -48,10 +48,18 @@ typedef struct
BYTE buffer[64];
} MD5;
#ifdef __cplusplus
extern "C" {
#endif
void MD5_open(MD5* ctx);
void MD5_digest(MD5* ctx, const void* buf, size_t len);
void MD5_close(MD5* ctx, BYTE digest[MD5_DIGEST_SIZE]);
BYTE* MD5_calc(BYTE digest[MD5_DIGEST_SIZE], const void* buf, size_t len);
BYTE* MD5_hex(BYTE* dest, const BYTE digest[MD5_DIGEST_SIZE]);
#ifdef __cplusplus
}
#endif
#endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment