1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-14 07:43:06 +00:00
freebsd-ports/net/relayd/files/patch-d-relayd.c
Jun Kuriyama 304acfbef8 OpenBSD's Relay Daemon (previously known as hoststated).
relayd is a daemon to relay and dynamically redirect incoming
connections to a target host. Its main purposes are to run as a
load-balancer, application layer gateway, or transparent proxy. The
daemon is able to monitor groups of hosts for availability, which is
determined by checking for a specific service common to a host group.

WWW: http://spootnik.org/relayd/

# This port will work on $OSVERSION >= 700049.
# If you want to use on RELENG_6, apply a patch in
# http://www.openbsd.org/cgi-bin/cvsweb/src/sys/net/pf_table.c.diff?r1=1.67&r2=1.68
2008-01-20 21:38:26 +00:00

30 lines
693 B
C

--- relayd/relayd.c.orig 2008-01-14 10:00:21.487354557 +0900
+++ relayd/relayd.c 2008-01-14 16:44:45.705572691 +0900
@@ -16,7 +16,7 @@
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
-#include <sys/types.h>
+#include <sys/param.h>
#include <sys/queue.h>
#include <sys/socket.h>
#include <sys/wait.h>
@@ -36,7 +36,7 @@
#include <unistd.h>
#include <ctype.h>
#include <pwd.h>
-#include <sha1.h>
+#include <sha.h>
#include <md5.h>
#include <openssl/ssl.h>
@@ -943,7 +943,7 @@
{
switch (type) {
case DIGEST_SHA1:
- return (SHA1Data(data, len, buf));
+ return (SHA1_Data(data, len, buf));
break;
case DIGEST_MD5:
return (MD5Data(data, len, buf));