/haiku/src/libs/bsd/ |
H A D | getpass.c | 20 static char password[128]; local 37 // Read password 38 if (fgets(password, sizeof(password), stdin) != NULL) { 39 size_t length = strlen(password); 41 if (length > 0 && (password[length - 1] == '\n')) 42 password[length - 1] = '\0'; 54 return password;
|
/haiku/headers/private/mail/ |
H A D | crypt.h | 13 bool set_passwd(BMessage *msg,const char *name,const char *password);
|
/haiku/src/bin/multiuser/ |
H A D | passwd.cpp | 34 "Change the password of the specified user.\n" 38 " Delete the password for the specified user.\n" 135 if (authenticate_user("old password: ", passwd, getspnam(user), 1, 141 char password[LINE_MAX]; 145 password[0] = '\0'; 146 encryptedPassword = password; 148 // read new password 149 if (read_password("new password: ", password, sizeof(password), fals [all...] |
H A D | login.cpp | 81 char password[64]; local 82 status_t status = read_password("password: ", password, sizeof(password), 93 bool ok = verify_password(passwd, spwd, password); 94 explicit_bzero(password, sizeof(password));
|
H A D | multiuser_utils.h | 15 status_t read_password(const char* prompt, char* password, size_t bufferSize,
|
H A D | multiuser_utils.cpp | 21 read_password(const char* prompt, char* password, size_t bufferSize, argument 66 if (fgets(password, bufferSize, in) == NULL) { 75 size_t len = strlen(password); 76 if (len > 0 && password[len - 1] == '\n') 77 password[len - 1] = '\0'; 94 // check whether we need to check the shadow password 98 // Mmh, we're suppose to check the shadow password, but we don't 106 // If no password is required, we're done. 121 /*! Checks whether the user needs to authenticate with a password, and, if 130 // check whether a password i [all...] |
/haiku/src/add-ons/kernel/file_systems/netfs/authentication_server/ |
H A D | AuthenticationServer.h | 23 HashString* user, HashString* password); 26 const char* user, const char* password, 30 const char* user, const char* password);
|
H A D | AuthenticationServer.cpp | 26 Authentication(const char* user, const char* password) argument 28 fPassword(password) 32 status_t SetTo(const char* user, const char* password) argument 34 if (fUser.SetTo(user) && fPassword.SetTo(password)) 135 status_t SetDefaultAuthentication(const char* user, const char* password) argument 137 return fDefaultAuthentication.SetTo(user, password); 146 const char* password) 152 return authentication->SetTo(user, password); 157 status_t error = authentication->SetTo(user, password); 206 char password[B_OS_NAME_LENGT local 145 SetAuthentication(const char* share, const char* user, const char* password) argument 373 _GetAuthentication(const char* context, const char* server, const char* share, HashString* user, HashString* password) argument 401 _AddAuthentication(const char* context, const char* server, const char* share, const char* user, const char* password, bool makeDefault) argument 433 _SendRequestReply(port_id port, int32 token, status_t error, bool cancelled, const char* user, const char* password) argument [all...] |
/haiku/src/kits/mail/ |
H A D | crypt.cpp | 30 _EXPORT bool set_passwd(BMessage *msg,const char *name,const char *password) argument 32 if (!password) 35 ssize_t length = strlen(password) + 1; 37 passwd_crypt((char *)password,buffer,length);
|
H A D | c_mail_api.cpp | 89 const char* password = encryptedPassword; local 90 if (password == NULL) 91 password = settings.FindString("password"); 92 strcpy(account->pop_password, password);
|
/haiku/headers/private/libroot/ |
H A D | user_group.h | 107 status_t copy_passwd_to_buffer(const char* name, const char* password, uid_t uid, 113 status_t parse_passwd_line(char* line, char*& name, char*& password, uid_t& uid, 119 status_t copy_group_to_buffer(const char* name, const char* password, gid_t gid, 125 status_t parse_group_line(char* line, char*& name, char*& password, gid_t& gid, 129 // shadow password 131 status_t copy_shadow_pwd_to_buffer(const char* name, const char* password, 137 status_t parse_shadow_pwd_line(char* line, char*& name, char*& password,
|
/haiku/src/bin/keystore/ |
H A D | keystore.cpp | 21 BPasswordKey password(passwordString, B_KEY_PURPOSE_GENERIC, identifier, 24 status_t result = keyStore.AddKey(keyring, password); 26 printf("failed to add password: %s\n", strerror(result)); 39 BPasswordKey password; local 42 secondaryIdentifier, false, password); 44 printf("failed to get password \"%s\": %s\n", identifier, 49 result = keyStore.RemoveKey(keyring, password); 51 printf("failed to remove password: %s\n", strerror(result)); 96 BPasswordKey password; local 98 B_KEY_PURPOSE_ANY, cookie, password); 356 const char* password = NULL; local [all...] |
/haiku/src/apps/expander/ |
H A D | PasswordAlert.h | 24 void Go(BString& password);
|
/haiku/src/system/libnetwork/ |
H A D | r5_compatibility.cpp | 32 int getpassword(char *password, size_t bufferLength); 84 strlcpy(value, "password", numBytes); 115 getpassword(char *password, size_t length) argument 117 if (find_net_setting(NULL, "GLOBAL", "PASSWORD", password, length) == NULL) 120 return strlen(password);
|
/haiku/src/add-ons/mail_daemon/inbound_protocols/imap/ |
H A D | Settings.cpp | 67 BString password; local 70 password = passwd; 72 return password;
|
/haiku/headers/os/app/ |
H A D | Key.h | 96 BPasswordKey(const char* password, 104 status_t SetTo(const char* password, 109 status_t SetPassword(const char* password);
|
/haiku/src/tests/kits/net/ |
H A D | wlan_test.cpp | 19 fprintf(stderr, "%s: <device> join|leave|list [<network> [<password>]]\n", 73 const char* password = NULL; local 75 password = argv[4]; 77 status_t status = device.JoinNetwork(argv[3], password);
|
/haiku/src/kits/app/ |
H A D | Key.cpp | 294 BPasswordKey::BPasswordKey(const char* password, BKeyPurpose purpose, argument 297 BKey(purpose, identifier, secondaryIdentifier, (const uint8*)password, 298 strlen(password) + 1) 314 BPasswordKey::SetTo(const char* password, BKeyPurpose purpose, argument 318 (const uint8*)password, strlen(password) + 1); 323 BPasswordKey::SetPassword(const char* password) argument 325 return SetData((const uint8*)password, strlen(password) + 1); 339 printf("password ke [all...] |
/haiku/src/apps/login/ |
H A D | LoginApp.h | 31 status_t ValidateLogin(const char *login, const char *password);
|
H A D | LoginApp.cpp | 153 const char* password = message->GetString("password"); local 155 status = ValidateLogin(login, password); 176 LoginApp::ValidateLogin(const char *login, const char *password) argument 186 if (verify_password(pwd, getspnam(login), password))
|
/haiku/headers/private/kernel/platform/efi/protocol/ |
H A D | console-control.h | 32 uint16_t* password);
|
/haiku/src/system/libroot/posix/ |
H A D | user_group_common.cpp | 175 BPrivate::copy_passwd_to_buffer(const char* name, const char* password, argument 183 entry->pw_passwd = buffer_dup_string(password, buffer, bufferSize); 208 BPrivate::parse_passwd_line(char* line, char*& name, char*& password, argument 214 password = tokenizer.NextTrimmedToken(':'); 226 || strlen(password) >= MAX_PASSWD_PASSWORD_LEN 244 BPrivate::copy_group_to_buffer(const char* name, const char* password, argument 256 // copy name and password 258 entry->gr_passwd = buffer_dup_string(password, buffer, bufferSize); 288 BPrivate::parse_group_line(char* line, char*& name, char*& password, gid_t& gid, argument 294 password 329 copy_shadow_pwd_to_buffer(const char* name, const char* password, int lastChanged, int min, int max, int warn, int inactive, int expiration, int flags, spwd* entry, char* buffer, size_t bufferSize) argument 363 parse_shadow_pwd_line(char* line, char*& name, char*& password, int& lastChanged, int& min, int& max, int& warn, int& inactive, int& expiration, int& flags) argument [all...] |
/haiku/headers/private/netservices/ |
H A D | HttpAuthentication.h | 52 const BString& password); 60 void SetPassword(const BString& password);
|
/haiku/headers/os/net/ |
H A D | NetworkDevice.h | 123 const char* password = NULL); 125 const char* password = NULL); 127 const char* password = NULL);
|
/haiku/src/add-ons/mail_daemon/outbound_protocols/smtp/ |
H A D | SMTP.h | 37 status_t Login(const char *uid, const char *password);
|