Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 37b2160f authored by rswindell's avatar rswindell

Added C++ support for function prototypes.

parent f8c6686d
......@@ -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
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment