]> 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 59291c7df3bdd233f8fc510c9a50ea36bbbfb73e..691a294333599bd45cc79e462e41a2e7d4010dbb 100644 (file)
--- a/lib/md5.h
+++ b/lib/md5.h
 #ifndef _LIBZEBRA_MD5_H_
 #define _LIBZEBRA_MD5_H_
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #define MD5_BUFLEN     64
 
 typedef struct {
@@ -64,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 *);
 
@@ -82,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_*/