-/* $USAGI: md5.h,v 1.2 2000/11/02 11:59:25 yoshfuji Exp $ */
-/* $KAME: md5.h,v 1.4 2000/03/27 04:36:22 sumikawa Exp $ */
-/* $Id: md5.h,v 1.3 2006/01/17 17:40:45 paul Exp $ */
-
/*
* Copyright (C) 2004 6WIND
* <Vincent.Jardin@6WIND.com>
#ifndef _LIBZEBRA_MD5_H_
#define _LIBZEBRA_MD5_H_
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define MD5_BUFLEN 64
typedef struct {
} md5_ctxt;
extern void md5_init(md5_ctxt *);
-extern void md5_loop(md5_ctxt *, const void *, u_int);
+extern void md5_loop(md5_ctxt *, const void *, unsigned int);
extern void md5_pad(md5_ctxt *);
extern void md5_result(uint8_t *, md5_ctxt *);
void hmac_md5(unsigned char *text, int text_len, unsigned char *key,
int key_len, uint8_t *digest);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* ! _LIBZEBRA_MD5_H_*/