Searched refs:password (Results 1 - 25 of 74) sorted by relevance

123

/haiku/src/libs/bsd/
H A Dgetpass.c20 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 Dcrypt.h13 bool set_passwd(BMessage *msg,const char *name,const char *password);
/haiku/src/bin/multiuser/
H A Dpasswd.cpp34 "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 Dlogin.cpp81 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 Dmultiuser_utils.h15 status_t read_password(const char* prompt, char* password, size_t bufferSize,
H A Dmultiuser_utils.cpp21 read_password(const char* prompt, char* password, size_t bufferSize, argument
66 if (fgets(password, bufferSize, in) == NULL) {
74 size_t len = strlen(password);
75 if (len > 0 && password[len - 1] == '\n')
76 password[len - 1] = '\0';
93 // check whether we need to check the shadow password
97 // Mmh, we're suppose to check the shadow password, but we don't
105 // If no password is required, we're done.
120 /*! Checks whether the user needs to authenticate with a password, and, if
129 // check whether a password i
[all...]
/haiku/src/add-ons/kernel/file_systems/netfs/authentication_server/
H A DAuthenticationServer.h23 HashString* user, HashString* password);
26 const char* user, const char* password,
30 const char* user, const char* password);
H A DAuthenticationServer.cpp26 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 Dcrypt.cpp30 _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 Dc_mail_api.cpp89 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 Duser_group.h107 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 Dkeystore.cpp21 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 DPasswordAlert.h24 void Go(BString& password);
/haiku/src/system/libnetwork/
H A Dr5_compatibility.cpp32 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 DSettings.cpp67 BString password; local
70 password = passwd;
72 return password;
/haiku/src/tests/kits/net/
H A Dwlan_test.cpp19 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/headers/os/app/
H A DKey.h96 BPasswordKey(const char* password,
104 status_t SetTo(const char* password,
109 status_t SetPassword(const char* password);
/haiku/src/kits/app/
H A DKey.cpp294 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 DLoginApp.h31 status_t ValidateLogin(const char *login, const char *password);
H A DLoginApp.cpp153 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/src/system/libroot/posix/
H A Duser_group_common.cpp175 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/os/net/
H A DHttpAuthentication.h44 const BString& password);
52 void SetPassword(const BString& password);
H A DNetworkDevice.h112 const char* password = NULL);
114 const char* password = NULL);
116 const char* password = NULL);
/haiku/src/add-ons/mail_daemon/outbound_protocols/smtp/
H A DSMTP.h37 status_t Login(const char *uid, const char *password);
/haiku/src/add-ons/kernel/network/ppp/pap/
H A DProtocol.cpp353 const char *username = Interface().Username(), *password = Interface().Password(); local
355 if (*userLength == strlen(username) && *passwordLength == strlen(password)
357 && !strncmp(peerPassword, password, *passwordLength)) {
459 const char *username = Interface().Username(), *password = Interface().Password(); local
460 uint16 packcketLenth = 6 + strlen(username) + strlen(password);
461 // 6 : lcp header 4 byte + username length 1 byte + password length 1 byte
469 data[1 + data[0]] = strlen(password);
470 memcpy(data + 2 + data[0], password, strlen(password));

Completed in 273 milliseconds

123