summaryrefslogtreecommitdiff
path: root/usr.sbin/relayd/relayd.h
diff options
context:
space:
mode:
authorReyk Floeter <reyk@cvs.openbsd.org>2007-11-21 20:13:21 +0000
committerReyk Floeter <reyk@cvs.openbsd.org>2007-11-21 20:13:21 +0000
commit4f6f111953d49f763adfc382ca85d496fa69bf61 (patch)
tree6ace273054e4bf43533144b4e5f5d1ade13244ff /usr.sbin/relayd/relayd.h
parent44a09499b4dd3de4910ce3f9a1bc6509e2986b72 (diff)
move digest string handling into an extra function.
Diffstat (limited to 'usr.sbin/relayd/relayd.h')
-rw-r--r--usr.sbin/relayd/relayd.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.sbin/relayd/relayd.h b/usr.sbin/relayd/relayd.h
index 929df02e2cf..d04108607ef 100644
--- a/usr.sbin/relayd/relayd.h
+++ b/usr.sbin/relayd/relayd.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: relayd.h,v 1.78 2007/11/21 14:12:04 reyk Exp $ */
+/* $OpenBSD: relayd.h,v 1.79 2007/11/21 20:13:20 reyk Exp $ */
/*
* Copyright (c) 2006, 2007 Pierre-Yves Ritschard <pyr@openbsd.org>
@@ -338,8 +338,9 @@ enum host_status {
#define HOST_ISUP(x) (x == HOST_UP)
enum digest_type {
- DIGEST_SHA1 = 0,
- DIGEST_MD5 = 1
+ DIGEST_NONE = 0,
+ DIGEST_SHA1 = 1,
+ DIGEST_MD5 = 2
};
struct table_config {
@@ -782,6 +783,7 @@ int expand_string(char *, size_t, const char *, const char *);
void translate_string(char *);
void purge_config(struct hoststated *, u_int8_t);
void merge_config(struct hoststated *, struct hoststated *);
+char *digeststr(enum digest_type, const u_int8_t *, size_t, char *);
/* carp.c */
int carp_demote_init(char *, int);