summaryrefslogtreecommitdiffstats
path: root/sbin/routed/defs.h
diff options
context:
space:
mode:
Diffstat (limited to 'sbin/routed/defs.h')
-rw-r--r--sbin/routed/defs.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/sbin/routed/defs.h b/sbin/routed/defs.h
index 7e023d7..8057a90 100644
--- a/sbin/routed/defs.h
+++ b/sbin/routed/defs.h
@@ -622,4 +622,12 @@ extern struct interface *iflookup(naddr);
extern struct auth_key *find_auth(struct interface *);
extern void end_md5_auth(struct ws_buf *, struct auth_key *);
-#include <md5.h>
+#define MD5_DIGEST_LEN 16
+typedef struct {
+ u_int32_t state[4]; /* state (ABCD) */
+ u_int32_t count[2]; /* # of bits, modulo 2^64 (LSB 1st) */
+ unsigned char buffer[64]; /* input buffer */
+} MD5_CTX;
+extern void MD5Init(MD5_CTX*);
+extern void MD5Update(MD5_CTX*, u_char*, u_int);
+extern void MD5Final(u_char[MD5_DIGEST_LEN], MD5_CTX*);
OpenPOWER on IntegriCloud