]> git.proxmox.com Git - mirror_frr.git/blobdiff - lib/md5.h
Merge pull request #5793 from ton31337/fix/formatting_show_bgp_summary_failed
[mirror_frr.git] / lib / md5.h
index adc92d670da8abb0f65458ecb5844b5b90d935f9..691a294333599bd45cc79e462e41a2e7d4010dbb 100644 (file)
--- a/lib/md5.h
+++ b/lib/md5.h
@@ -1,7 +1,3 @@
-/* $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 {
@@ -68,7 +68,7 @@ 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 *);
 
@@ -86,4 +86,8 @@ 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_*/