/*
** Copyright 1998 - 2000 Double Precision, Inc. See COPYING for
** distribution information.
*/
#if HAVE_CONFIG_H
#include "courier_auth_config.h"
#endif
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include <pwd.h>
#if HAVE_UNISTD_H
#include <unistd.h>
#endif
#include <sys/types.h>
#include <sys/stat.h>
#include "auth.h"
static const char rcsid[]="$Id: authvchkpwlib.c,v 1.8 2004/10/21 00:10:49 mrsam Exp $";
char *authvchkpw_isvirtual(char *c)
{
char *p;
if ((p=strchr(c, '@')) != 0) return (p);
#if 0
if ((p=strchr(c, '%')) != 0) return (p);
#endif
if ((p=strchr(c, ':')) != 0) return (p);
return (0);
}
syntax highlighted by Code2HTML, v. 0.9.1