1 #ifndef AUTHFILE_H 2 #define AUTHFILE_H 3 4 enum authfile_ret { 5 AUTHFILE_OK = 0, 6 AUTHFILE_OOM, 7 AUTHFILE_STATFAIL, // not likely, but just to be sure 8 AUTHFILE_OPENFAIL, 9 AUTHFILE_MALFORMED, 10 }; 11 12 // FIXME: mc_authfile or something? 13 enum authfile_ret authfile_load(const char *file); 14 int authfile_check(const char *user, const char *pass); 15 16 #endif /* AUTHFILE_H */ 17