/haiku/headers/posix/ |
H A D | pwd.h | 15 struct passwd { struct 26 extern struct passwd *getpwent(void); 27 extern int getpwent_r(struct passwd* pwbuf, char* buf, size_t buflen, 28 struct passwd** pwbufp); 33 extern struct passwd *getpwnam(const char *name); 34 extern int getpwnam_r(const char *name, struct passwd *passwd, char *buffer, 35 size_t bufferSize, struct passwd **result); 36 extern struct passwd *getpwuid(uid_t uid); 37 extern int getpwuid_r(uid_t uid, struct passwd *passw [all...] |
/haiku/src/bin/ |
H A D | autologin.cpp | 23 struct passwd* passwd = getpwuid(0); local 24 if (passwd == NULL) 27 status_t status = BLaunchRoster().StartSession(passwd->pw_name);
|
H A D | logger.cpp | 133 struct passwd* passwd = getpwuid(geteuid()); local 163 if (tag == NULL && passwd != NULL) 164 tag = passwd->pw_name;
|
/haiku/src/bin/multiuser/ |
H A D | multiuser_utils.h | 18 bool verify_password(passwd* passwd, spwd* spwd, const char* plainPassword); 20 status_t authenticate_user(const char* prompt, passwd* passwd, spwd* spwd, 23 passwd** _passwd, spwd** _spwd, int maxTries, bool useStdio); 25 status_t setup_environment(struct passwd* passwd, bool preserveEnvironment,
|
H A D | multiuser_utils.cpp | 89 verify_password(passwd* passwd, spwd* spwd, const char* plainPassword) argument 91 if (passwd == NULL) 95 const char* requiredPassword = passwd->pw_passwd; 123 \a passwd must always be given, \a spwd only if there exists an entry 127 authenticate_user(const char* prompt, passwd* passwd, spwd* spwd, int maxTries, argument 131 if (verify_password(passwd, spwd, "")) 143 bool ok = verify_password(passwd, spwd, plainPassword); 156 authenticate_user(const char* prompt, const char* user, passwd** _passw 159 struct passwd* passwd = getpwnam(user); local 176 setup_environment(struct passwd* passwd, bool preserveEnvironment, bool chngdir) argument [all...] |
H A D | su.cpp | 79 struct passwd* passwd = NULL; local 81 status = authenticate_user("password: ", user, &passwd, NULL, 84 if (status < B_OK || !passwd) { 85 if (passwd != NULL) 86 syslog(LOG_NOTICE, "su failed for \"%s\"", passwd->pw_name); 94 status = setup_environment(passwd, true, false); 99 syslog(LOG_NOTICE, "su refused for \"%s\"", passwd->pw_name); 103 syslog(LOG_INFO, "su as \"%s\"", passwd->pw_name);
|
H A D | passwd.cpp | 108 // get the passwd entry 109 struct passwd* passwd; 111 passwd = getpwnam(user); 112 if (passwd == NULL) { 117 if (uid != 0 && passwd->pw_uid != uid) { 118 fprintf(stderr, "Error: Only root can change the passwd for other " 123 passwd = getpwuid(uid); 124 if (passwd == NULL) { 125 fprintf(stderr, "Error: Ugh! Couldn't get passwd entr [all...] |
H A D | login.cpp | 55 login(const char* user, struct passwd** _passwd) 90 struct passwd* passwd = getpwnam(user); local 93 bool ok = verify_password(passwd, spwd, password); 99 *_passwd = passwd; 170 struct passwd* passwd = NULL; local 173 status = login(user, &passwd); 187 if (status < B_OK || passwd == NULL) { 190 passwd [all...] |
/haiku/src/system/libroot/posix/ |
H A D | pwd.cpp | 29 static passwd** sPasswdEntries = NULL; 33 static struct passwd sPasswdBuffer; 38 query_passwd_entry(const char* name, uid_t _uid, struct passwd *passwd, argument 39 char *buffer, size_t bufferSize, struct passwd **_result) 73 shell, realName, passwd, buffer, bufferSize); 75 *_result = passwd; 96 passwd** entries; 107 passwd* entry = relocate_pointer(baseAddress, entries[i]); 125 struct passwd* 138 getpwent_r(struct passwd* passwd, char* buffer, size_t bufferSize, struct passwd** _result) argument 198 getpwnam_r(const char *name, struct passwd *passwd, char *buffer, size_t bufferSize, struct passwd **_result) argument 218 getpwuid_r(uid_t uid, struct passwd *passwd, char *buffer, size_t bufferSize, struct passwd **_result) argument [all...] |
/haiku/src/system/libroot/posix/unistd/ |
H A D | getlogin.cpp | 23 struct passwd *pw; 35 struct passwd* pw = NULL; 36 struct passwd passwdBuffer;
|
/haiku/headers/compatibility/bsd/ |
H A D | libutil.h | 111 int pw_copy(int _ffd, int _tfd, const struct passwd *_pw, struct passwd *_old_pw); 112 struct passwd *pw_dup(const struct passwd *_pw); 114 int pw_equal(const struct passwd *_pw1, const struct passwd *_pw2); 117 char *pw_make(const struct passwd *_pw); 120 struct passwd *pw_scan(const char *_line, int _flags);
|
/haiku/src/add-ons/mail_daemon/inbound_protocols/imap/ |
H A D | Settings.cpp | 68 char* passwd = get_passwd(&fMessage, "cpasswd"); local 69 if (passwd != NULL) { 70 password = passwd; 71 delete[] passwd;
|
/haiku/src/add-ons/kernel/drivers/disk/virtual/nbd/ |
H A D | nbd.h | 42 uint8 passwd[8]; /* "NBDMAGIC" */ member in struct:nbd_init_packet
|
/haiku/src/apps/codycam/ |
H A D | FileUploadClient.cpp | 44 const string& passwd) 43 Connect(const string& server, const string& login, const string& passwd) argument
|
H A D | SftpClient.h | 34 const string& passwd);
|
H A D | FileUploadClient.h | 28 const string& passwd);
|
H A D | SftpClient.cpp | 86 const string& passwd) 104 if (!SpawningUploadClient::Connect(server, login, passwd)) 129 write(OutputPipe(), passwd.c_str(), strlen(passwd.c_str())); 85 Connect(const string& server, const string& login, const string& passwd) argument
|
H A D | FtpClient.h | 40 const string& passwd);
|
H A D | SpawningUploadClient.h | 25 const string& passwd);
|
/haiku/src/bin/unzip/ |
H A D | crypt.c | 152 void init_keys(__G__ passwd) 154 ZCONST char *passwd; /* password string with which to modify keys */ variable 159 while (*passwd != '\0') { 160 update_keys(__G__ (int)*passwd); 161 passwd++; 169 * Write encryption header to file zfile using the password passwd 172 void crypthead(passwd, crc, zfile) 173 ZCONST char *passwd; /* password string */ 191 init_keys(passwd); 197 init_keys(passwd); [all...] |
H A D | cryptf.c | 155 void init_keys(__G__ passwd) 157 ZCONST char *passwd; /* password string with which to modify keys */ variable 162 while (*passwd != '\0') { 163 update_keys(__G__ (int)*passwd); 164 passwd++; 172 * Write encryption header to file zfile using the password passwd 175 void crypthead(passwd, crc, zfile) 176 ZCONST char *passwd; /* password string */ 194 init_keys(passwd); 200 init_keys(passwd); [all...] |
/haiku/headers/private/libroot/ |
H A D | user_group.h | 105 // passwd 109 passwd* entry, char* buffer, size_t bufferSize); 110 status_t copy_passwd_to_buffer(const passwd* from, passwd* entry, char* buffer,
|
/haiku/src/system/libroot/posix/crypt/ |
H A D | crypto_scrypt.cpp | 44 * crypto_scrypt(passwd, passwdlen, salt, saltlen, N, r, p, buf, buflen): 45 * Compute scrypt(passwd[0 .. passwdlen - 1], salt[0 .. saltlen - 1], N, r, 53 crypto_scrypt(const uint8_t * passwd, size_t passwdlen, argument 127 PBKDF2_SHA256(passwd, passwdlen, salt, saltlen, 1, B, p * 128 * r); 136 PBKDF2_SHA256(passwd, passwdlen, B, p * 128 * r, 1, buf, buflen);
|
H A D | pbkdf2.cpp | 127 * PBKDF2_SHA256(passwd, passwdlen, salt, saltlen, c, buf, dkLen): 128 * Compute PBKDF2(passwd, salt, c, dkLen) using HMAC-SHA256 as the PRF, and 132 PBKDF2_SHA256(const uint8_t * passwd, size_t passwdlen, const uint8_t * salt, argument 148 HMAC_SHA256_Init(&PShctx, passwd, passwdlen); 166 HMAC_SHA256_Init(&hctx, passwd, passwdlen);
|
/haiku/src/libs/libtelnet/ |
H A D | krb4encpwd.c | 408 int passwdok(name, passwd) 409 char *name, *passwd; 413 struct passwd *pwd; 420 p = crypt(passwd, salt);
|