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

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

44#include <string.h>
45#include <syslog.h>
46#include <unistd.h>
47
48#include <pfctl_parser.h>
49
50#include "pathnames.h"
51
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
52extern int symset(const char *, const char *, int);
53
54static int read_config(FILE *);
55static void print_message(char *);
56static int allowed_luser(char *);
57static int check_luser(char *, char *);
58static int remove_stale_rulesets(void);
59static int change_filter(int, const char *, const char *);

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

280 printf("\r\n\r\nSorry, this service is currently unavailable due to ");
281 printf("technical difficulties\r\n\r\n");
282 print_message(PATH_PROBLEM);
283 printf("\r\nYour authentication process (pid %ld) was unable to run\n",
284 (long)getpid());
285 sleep(180); /* them lusers read reaaaaal slow */
286die:
287 do_death(0);
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
288}
289
290/*
291 * reads config file in PATH_CONFFILE to set optional behaviours up
292 */
293static int
294read_config(FILE *f)
295{

--- 576 unchanged lines hidden ---
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 ---