/* * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * * Copyright (C) 2000-2002 * Andrey Aristarkhov . * All rights reserved * Partial Copyright (C) 1996 * David L. Nugent. All rights reserved. * * $Id: user.h,v 1.2 2002/08/14 13:00:32 dron Exp $ * * Header file for user & password file manipulation functions * within CVS repository */ #ifndef CVS_USER_H_ #define CVS_USER_H_ #include #include #include #ifdef OS_FREEBSD #include #endif #ifdef __cplusplus extern "C" { #endif int password (int argc, char **argv); int user (int argc, char **argv); enum updtype { PWD_CREATE, PWD_UPDATE, PWD_DELETE, PWD_UNDEFINED }; #define CVS_ADMIN_USER "admin" #define PWBUFSZ 1024 #ifndef _PASSWORD_LEN #define _PASSSWORD_LEN #endif #define MAX_PASSWORD_LEN _PASSWORD_LEN #define MIN_PASSWORD_LEN 6 #ifndef TRUE #define TRUE 1 #endif #ifndef FALSE #define FALSE 0 #endif #ifdef HAVE_GETPASSPHRASE #define GETPASS getpassphrase #else #define GETPASS getpass #endif #ifdef __cplucplus } #endif #endif /* CVS_USER_H */