X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=lib%2Fmd5.h;h=691a294333599bd45cc79e462e41a2e7d4010dbb;hb=f94ed830df98218447f00b97f856de811bfcc4a2;hp=adc92d670da8abb0f65458ecb5844b5b90d935f9;hpb=211ee93ffb02c5b404a7206e4f46bd23d02d2d26;p=mirror_frr.git diff --git a/lib/md5.h b/lib/md5.h index adc92d670..691a29433 100644 --- 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 * @@ -42,6 +38,10 @@ #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_*/