diff options
author | Nikolay Sturm <sturm@cvs.openbsd.org> | 2005-06-30 20:52:21 +0000 |
---|---|---|
committer | Nikolay Sturm <sturm@cvs.openbsd.org> | 2005-06-30 20:52:21 +0000 |
commit | 31bd9ec4606eba4b156dd600ed8bc479f4b1e1e7 (patch) | |
tree | 9a4a8289b9ae6eae45e6e3cdcd544ca31644245a /sbin/pfctl/pfctl_parser.c | |
parent | 3912fd30e96aeec8ba6f45bae610692b9c859f92 (diff) |
in order for pfvar.h not to conflict with openssl's crypto.h, use
PF_MD5_DIGEST_LENGTH instead of including crypto/md5.h
ok markus@, henning@, mpf@
Diffstat (limited to 'sbin/pfctl/pfctl_parser.c')
-rw-r--r-- | sbin/pfctl/pfctl_parser.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sbin/pfctl/pfctl_parser.c b/sbin/pfctl/pfctl_parser.c index 5c9f7f128c4..16c6e08654e 100644 --- a/sbin/pfctl/pfctl_parser.c +++ b/sbin/pfctl/pfctl_parser.c @@ -1,4 +1,4 @@ -/* $OpenBSD: pfctl_parser.c,v 1.218 2005/06/13 20:17:26 henning Exp $ */ +/* $OpenBSD: pfctl_parser.c,v 1.219 2005/06/30 20:52:20 sturm Exp $ */ /* * Copyright (c) 2001 Daniel Hartmeier @@ -482,7 +482,7 @@ print_status(struct pf_status *s, int opts) char statline[80], *running; time_t runtime; int i; - char buf[MD5_DIGEST_LENGTH * 2 + 1]; + char buf[PF_MD5_DIGEST_LENGTH * 2 + 1]; static const char hex[] = "0123456789abcdef"; runtime = time(NULL) - s->since; @@ -521,7 +521,7 @@ print_status(struct pf_status *s, int opts) if (opts & PF_OPT_VERBOSE) { printf("Hostid: 0x%08x\n", ntohl(s->hostid)); - for (i = 0; i < MD5_DIGEST_LENGTH; i++) { + for (i = 0; i < PF_MD5_DIGEST_LENGTH; i++) { buf[i + i] = hex[s->pf_chksum[i] >> 4]; buf[i + i + 1] = hex[s->pf_chksum[i] & 0x0f]; } |