diff -r 000000000000 -r 6f7a81934006 lib/courier-authlib/authmodfail.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/lib/courier-authlib/authmodfail.c Wed Jan 16 22:39:43 2008 +0100 @@ -0,0 +1,52 @@ +/* +** Copyright 1998 - 1999 Double Precision, Inc. See COPYING for +** distribution information. +*/ + +#include "auth.h" +#include "authmod.h" +#include +#include +#include +#include +#if HAVE_UNISTD_H +#include +#endif + +static const char rcsid[]="$Id: authmodfail.c,v 1.1 2000/04/13 17:55:05 bruce Exp $"; + +void authmod_fail_completely() +{ +char **argv; +int argc, n; +const char *p=getenv("AUTHARGC"); +char buf[20]; + + if (!p || sscanf(p, "%d", &argc) <= 0 || argc <= 0) + { + write(2, "AUTHFAILURE\n", 12); + authexit(1); + } + + if ((argv=(char **)malloc((argc+1)*sizeof(char *))) == 0) + { + perror("malloc"); + authexit(1); + } + + for (n=0; n