| 1 | /* |
| 2 | ** Copyright 1998 - 2000 Double Precision, Inc. See COPYING for |
| 3 | ** distribution information. |
| 4 | */ |
| 5 | |
| 6 | #if HAVE_CONFIG_H |
| 7 | #include "courier_auth_config.h" |
| 8 | #endif |
| 9 | #include <stdio.h> |
| 10 | #include <stdlib.h> |
| 11 | #include <string.h> |
| 12 | #include <errno.h> |
| 13 | #include <pwd.h> |
| 14 | #if HAVE_UNISTD_H |
| 15 | #include <unistd.h> |
| 16 | #endif |
| 17 | #include <sys/types.h> |
| 18 | #include <sys/stat.h> |
| 19 | #include "auth.h" |
| 20 | |
| 21 | static const char rcsid[]="$Id: authvchkpwlib.c,v 1.8 2004/10/21 00:10:49 mrsam Exp $"; |
| 22 | |
| 23 | char *authvchkpw_isvirtual(char *c) |
| 24 | { |
| 25 | char *p; |
| 26 | |
| 27 | if ((p=strchr(c, '@')) != 0) return (p); |
| 28 | #if 0 |
| 29 | if ((p=strchr(c, '%')) != 0) return (p); |
| 30 | #endif |
| 31 | if ((p=strchr(c, ':')) != 0) return (p); |
| 32 | return (0); |
| 33 | } |