passwords.h
来自「linux内核」· C头文件 代码 · 共 28 行
H
28 行
#ifndef _PASSWORDS_H_#define _PASSWORDS_H_ char authenticate_user(const char * username, const char* pwd);char isallowed(const char *username, const char * perm);// Initialise the list of of user passwords permissions from filevoid init_passwords(const char *filename);// Free all space used for internal data structuresvoid close_passwords();#define MAX_USERS 128 // Maximum number of users#define USERNAME_LENGTH 12 // Max length of user name#define PWDHASH_LENGTH 40 // Max lenght of pwd hashtypedef struct { char username[USERNAME_LENGTH+1]; char pwdhash[PWDHASH_LENGTH+1]; char *perms; // pointer to string containing ":" delimited permissions} pwdentry;typedef pwdentry *p_pwdentry;#define GUEST_USER "guest"#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?