Deleted Added
sdiff udiff text old ( 126354 ) new ( 126355 )
full compact
1/* $FreeBSD: head/contrib/pf/authpf/authpf.c 126355 2004-02-28 17:32:53Z mlaier $ */
2/* $OpenBSD: authpf.c,v 1.68 2003/08/21 19:13:23 frantzen Exp $ */
3
4/*
5 * Copyright (C) 1998 - 2002 Bob Beck (beck@openbsd.org).
6 *
7 * Redistribution and use in source and binary forms, with or without
8 * modification, are permitted provided that the following conditions
9 * are met:

--- 35 unchanged lines hidden (view full) ---

45#include <string.h>
46#include <syslog.h>
47#include <unistd.h>
48
49#include <pfctl_parser.h>
50
51#include "pathnames.h"
52
53#if defined(__FreeBSD__)
54#define __dead __volatile
55#endif
56extern int symset(const char *, const char *, int);
57
58static int read_config(FILE *);
59static void print_message(char *);
60static int allowed_luser(char *);
61static int check_luser(char *, char *);
62static int remove_stale_rulesets(void);
63static int change_filter(int, const char *, const char *);

--- 220 unchanged lines hidden (view full) ---

284 printf("\r\n\r\nSorry, this service is currently unavailable due to ");
285 printf("technical difficulties\r\n\r\n");
286 print_message(PATH_PROBLEM);
287 printf("\r\nYour authentication process (pid %ld) was unable to run\n",
288 (long)getpid());
289 sleep(180); /* them lusers read reaaaaal slow */
290die:
291 do_death(0);
292#if defined(__FreeBSD__)
293 return 0; /* gcc hack to prevent warning */
294#endif
295}
296
297/*
298 * reads config file in PATH_CONFFILE to set optional behaviours up
299 */
300static int
301read_config(FILE *f)
302{

--- 576 unchanged lines hidden ---