⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 passwords.h

📁 linux内核
💻 H
字号:
#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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -