Home
last modified time | relevance | path

Searched refs:passwd (Results 1 - 25 of 501) sorted by relevance

12345678910>>...21

/third_party/pulseaudio/src/pulsecore/
H A Dusergroup.c65 plus the size of a struct passwd.
79 full_size = (size_t) n + sizeof(struct passwd); in starting_getpw_buflen()
247 finished with the returned passwd data.
252 struct passwd *pa_getpwnam_malloc(const char *name) { in pa_getpwnam_malloc()
257 struct passwd *result = NULL; in pa_getpwnam_malloc()
262 getpw_buflen = buflen - sizeof(struct passwd); in pa_getpwnam_malloc()
263 getpw_buf = (char *)buf + sizeof(struct passwd); in pa_getpwnam_malloc()
265 while ((err = getpwnam_r(name, (struct passwd *)buf, getpw_buf, getpw_buflen, &result)) == ERANGE) { in pa_getpwnam_malloc()
269 getpw_buflen = buflen - sizeof(struct passwd); in pa_getpwnam_malloc()
270 getpw_buf = (char *)buf + sizeof(struct passwd); in pa_getpwnam_malloc()
286 pa_getpwnam_free(struct passwd *passwd) pa_getpwnam_free() argument
296 pa_getpwnam_free(struct passwd *passwd) pa_getpwnam_free() argument
345 pa_getpwuid_free(struct passwd *passwd) pa_getpwuid_free() argument
355 pa_getpwuid_free(struct passwd *passwd) pa_getpwuid_free() argument
[all...]
H A Dusergroup.h41 struct passwd *pa_getpwuid_malloc(uid_t uid);
42 void pa_getpwuid_free(struct passwd *passwd);
44 struct passwd *pa_getpwnam_malloc(const char *name);
45 void pa_getpwnam_free(struct passwd *passwd);
/third_party/musl/porting/liteos_m_iccarm/kernel/include/
H A Dpwd.h20 struct passwd { struct
33 struct passwd *getpwent (void);
36 struct passwd *getpwuid (uid_t);
37 struct passwd *getpwnam (const char *);
38 int getpwuid_r (uid_t, struct passwd *, char *, size_t, struct passwd **);
39 int getpwnam_r (const char *, struct passwd *, char *, size_t, struct passwd **);
42 struct passwd *fgetpwent(FILE *);
43 int putpwent(const struct passwd *, FIL
[all...]
/third_party/musl/porting/liteos_m/kernel/include/
H A Dpwd.h20 struct passwd { struct
33 struct passwd *getpwent (void);
36 struct passwd *getpwuid (uid_t);
37 struct passwd *getpwnam (const char *);
38 int getpwuid_r (uid_t, struct passwd *, char *, size_t, struct passwd **);
39 int getpwnam_r (const char *, struct passwd *, char *, size_t, struct passwd **);
42 struct passwd *fgetpwent(FILE *);
43 int putpwent(const struct passwd *, FIL
[all...]
/third_party/musl/porting/uniproton/kernel/include/
H A Dpwd.h20 struct passwd { struct
33 struct passwd *getpwent (void);
36 struct passwd *getpwuid (uid_t);
37 struct passwd *getpwnam (const char *);
38 int getpwuid_r (uid_t, struct passwd *, char *, size_t, struct passwd **);
39 int getpwnam_r (const char *, struct passwd *, char *, size_t, struct passwd **);
42 struct passwd *fgetpwent(FILE *);
43 int putpwent(const struct passwd *, FIL
[all...]
/third_party/musl/include/
H A Dpwd.h20 struct passwd { struct
33 struct passwd *getpwent (void);
36 struct passwd *getpwuid (uid_t);
37 struct passwd *getpwnam (const char *);
38 int getpwuid_r (uid_t, struct passwd *, char *, size_t, struct passwd **);
39 int getpwnam_r (const char *, struct passwd *, char *, size_t, struct passwd **);
42 struct passwd *fgetpwent(FILE *);
43 int putpwent(const struct passwd *, FIL
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/storage/src/operation/
H A Dmulti_ver_database_oper.cpp36 int MultiVerDatabaseOper::Rekey(const CipherPassword &passwd) in Rekey() argument
43 return ExecuteRekey(passwd, multiVerNaturalStore_->GetDbProperties()); in Rekey()
46 int MultiVerDatabaseOper::Import(const std::string &filePath, const CipherPassword &passwd) in Import() argument
53 return ExecuteImport(filePath, passwd, multiVerNaturalStore_->GetDbProperties()); in Import()
56 int MultiVerDatabaseOper::Export(const std::string &filePath, const CipherPassword &passwd) const in Export()
62 return ExecuteExport(filePath, passwd, multiVerNaturalStore_->GetDbProperties()); in Export()
65 bool MultiVerDatabaseOper::RekeyPreHandle(const CipherPassword &passwd, int &errCode) in RekeyPreHandle() argument
71 if (cachePasswd.GetSize() == 0 && passwd.GetSize() == 0) { in RekeyPreHandle()
79 int MultiVerDatabaseOper::BackupDb(const CipherPassword &passwd) const in BackupDb()
92 return ExportAllDatabases(currentDir, passwd, backupDi in BackupDb()
115 RekeyPostHandle(const CipherPassword &passwd) RekeyPostHandle() argument
129 ExportAllDatabases(const std::string &currentDir, const CipherPassword &passwd, const std::string &dbDir) const ExportAllDatabases() argument
183 CipherPassword passwd; BackupCurrentDatabase() local
[all...]
H A Dlocal_database_oper.cpp31 int LocalDatabaseOper::Rekey(const CipherPassword &passwd) in Rekey() argument
37 return ExecuteRekey(passwd, localKvDb_->GetDbProperties()); in Rekey()
40 int LocalDatabaseOper::Import(const std::string &filePath, const CipherPassword &passwd) in Import() argument
46 return ExecuteImport(filePath, passwd, localKvDb_->GetDbProperties()); in Import()
49 int LocalDatabaseOper::Export(const std::string &filePath, const CipherPassword &passwd) const in Export()
51 return ExecuteExport(filePath, passwd, localKvDb_->GetDbProperties()); in Export()
54 bool LocalDatabaseOper::RekeyPreHandle(const CipherPassword &passwd, int &errCode) in RekeyPreHandle() argument
60 if (cachePasswd.GetSize() == 0 && passwd.GetSize() == 0) { in RekeyPreHandle()
66 if (cachePasswd.GetSize() > 0 && passwd.GetSize() > 0) { in RekeyPreHandle()
67 errCode = localKvDb_->RunRekeyLogic(cipherType, passwd); in RekeyPreHandle()
113 RekeyPostHandle(const CipherPassword &passwd) RekeyPostHandle() argument
122 ExportAllDatabases(const std::string &currentDir, const CipherPassword &passwd, const std::string &dbDir) const ExportAllDatabases() argument
184 CipherPassword passwd; ImportUnpackedDatabase() local
[all...]
H A Dsingle_ver_database_oper.h28 int Rekey(const CipherPassword &passwd) override;
30 int Import(const std::string &filePath, const CipherPassword &passwd) override;
32 int Export(const std::string &filePath, const CipherPassword &passwd) const override;
35 bool RekeyPreHandle(const CipherPassword &passwd, int &errCode) override;
37 int BackupDb(const CipherPassword &passwd) const override;
41 int RekeyPostHandle(const CipherPassword &passwd) override;
43 int ExportAllDatabases(const std::string &currentDir, const CipherPassword &passwd,
57 int RunExportLogic(const CipherPassword &passwd, const std::string &filePrefix) const;
59 int RunRekeyLogic(CipherType type, const CipherPassword &passwd);
61 int ExportMainDB(const std::string &currentDir, const CipherPassword &passwd, cons
[all...]
H A Dmulti_ver_database_oper.h30 int Rekey(const CipherPassword &passwd) override;
32 int Import(const std::string &filePath, const CipherPassword &passwd) override;
34 int Export(const std::string &filePath, const CipherPassword &passwd) const override;
37 bool RekeyPreHandle(const CipherPassword &passwd, int &errCode) override;
39 int BackupDb(const CipherPassword &passwd) const override;
43 int RekeyPostHandle(const CipherPassword &passwd) override;
45 int ExportAllDatabases(const std::string &currentDir, const CipherPassword &passwd,
55 int ImportDatabase(const std::string &dir, const CipherPassword &passwd) const;
H A Dsingle_ver_database_oper.cpp56 int SingleVerDatabaseOper::Rekey(const CipherPassword &passwd) in Rekey() argument
62 return ExecuteRekey(passwd, singleVerNaturalStore_->GetDbProperties()); in Rekey()
65 int SingleVerDatabaseOper::Import(const std::string &filePath, const CipherPassword &passwd) in Import() argument
71 return ExecuteImport(filePath, passwd, singleVerNaturalStore_->GetDbProperties()); in Import()
74 int SingleVerDatabaseOper::Export(const std::string &filePath, const CipherPassword &passwd) const in Export()
80 return ExecuteExport(filePath, passwd, singleVerNaturalStore_->GetDbProperties()); in Export()
83 bool SingleVerDatabaseOper::RekeyPreHandle(const CipherPassword &passwd, int &errCode) in RekeyPreHandle() argument
94 if (cachePasswd.GetSize() == 0 && passwd.GetSize() == 0) { in RekeyPreHandle()
100 if (cachePasswd.GetSize() > 0 && passwd.GetSize() > 0) { in RekeyPreHandle()
101 errCode = RunRekeyLogic(cipherType, passwd); in RekeyPreHandle()
161 RekeyPostHandle(const CipherPassword &passwd) RekeyPostHandle() argument
173 ExportMainDB(const std::string &currentDir, const CipherPassword &passwd, const std::string &dbDir) const ExportMainDB() argument
193 ExportMetaDB(const std::string &currentDir, const CipherPassword &passwd, const std::string &dbDir) const ExportMetaDB() argument
216 ExportAllDatabases(const std::string &currentDir, const CipherPassword &passwd, const std::string &dbDir) const ExportAllDatabases() argument
335 CipherPassword passwd; ImportUnpackedMainDatabase() local
430 RunExportLogic(const CipherPassword &passwd, const std::string &filePrefix) const RunExportLogic() argument
502 CipherPassword passwd; InitDataBaseOption() local
517 RunRekeyLogic(CipherType type, const CipherPassword &passwd) RunRekeyLogic() argument
[all...]
H A Dlocal_database_oper.h29 int Rekey(const CipherPassword &passwd) override;
31 int Import(const std::string &filePath, const CipherPassword &passwd) override;
33 int Export(const std::string &filePath, const CipherPassword &passwd) const override;
36 bool RekeyPreHandle(const CipherPassword &passwd, int &errCode) override;
38 int BackupDb(const CipherPassword &passwd) const override;
42 int RekeyPostHandle(const CipherPassword &passwd) override;
44 int ExportAllDatabases(const std::string &currentDir, const CipherPassword &passwd,
H A Ddatabase_oper.h29 virtual int Rekey(const CipherPassword &passwd) = 0;
31 virtual int Import(const std::string &filePath, const CipherPassword &passwd) = 0;
33 virtual int Export(const std::string &filePath, const CipherPassword &passwd) const = 0;
44 int ExecuteRekey(const CipherPassword &passwd, const KvDBProperties &property);
46 virtual bool RekeyPreHandle(const CipherPassword &passwd, int &errCode) = 0;
48 virtual int BackupDb(const CipherPassword &passwd) const = 0;
52 virtual int RekeyPostHandle(const CipherPassword &passwd) = 0;
56 virtual int ExportAllDatabases(const std::string &currentDir, const CipherPassword &passwd,
62 int ExecuteImport(const std::string &filePath, const CipherPassword &passwd, const KvDBProperties &property) const;
71 int ExecuteExport(const std::string &filePath, const CipherPassword &passwd, cons
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/unittest/common/interfaces/
H A Ddistributeddb_interfaces_import_and_export_rd_test.cpp168 CipherPassword passwd; in HWTEST_F() local
169 EXPECT_EQ(g_kvNbDelegatePtr->Export(singleExportFileName, passwd), OK); in HWTEST_F()
181 EXPECT_EQ(g_kvDelegatePtr->Export(mulitExportFileName, passwd), OK); in HWTEST_F()
217 CipherPassword passwd; in HWTEST_F() local
218 EXPECT_EQ(g_kvNbDelegatePtr->Export(singleExportFileName, passwd), OK); in HWTEST_F()
222 EXPECT_EQ(g_kvNbDelegatePtr->Import(filePath, passwd), INVALID_FILE); in HWTEST_F()
228 EXPECT_EQ(g_kvNbDelegatePtr->Import(filePath, passwd), INVALID_FILE); in HWTEST_F()
271 CipherPassword passwd; in HWTEST_F() local
272 EXPECT_EQ(g_kvNbDelegatePtr->Export(singleExportFileName, passwd), OK); in HWTEST_F()
279 EXPECT_EQ(g_kvNbDelegatePtr->Import(singleExportFileName, passwd), INVALID_FIL in HWTEST_F()
315 CipherPassword passwd; HWTEST_F() local
348 CipherPassword passwd; HWTEST_F() local
419 CipherPassword passwd; HWTEST_F() local
489 CipherPassword passwd; HWTEST_F() local
538 CipherPassword passwd; HWTEST_F() local
591 CipherPassword passwd; HWTEST_F() local
628 CipherPassword passwd; HWTEST_F() local
685 CipherPassword passwd; HWTEST_F() local
753 CipherPassword passwd; HWTEST_F() local
804 CipherPassword passwd; HWTEST_F() local
837 CipherPassword passwd; HWTEST_F() local
1063 CipherPassword passwd; HWTEST_F() local
1133 CipherPassword passwd; HWTEST_F() local
1202 CipherPassword passwd; HWTEST_F() local
1253 CipherPassword passwd; HWTEST_F() local
[all...]
H A Ddistributeddb_interfaces_encrypt_database_test.cpp100 CipherPassword passwd; // random password in CheckRekeyWithMultiKvStore() local
102 int errCode = passwd.SetValue(passwdBuffer.data(), passwdBuffer.size()); in CheckRekeyWithMultiKvStore()
104 EXPECT_EQ(kvStore1->Rekey(passwd), BUSY); in CheckRekeyWithMultiKvStore()
113 EXPECT_EQ(kvStore1->Rekey(passwd), OK); in CheckRekeyWithMultiKvStore()
143 CipherPassword passwd; // random password in CheckRekeyWithExistedSnapshot() local
145 int errCode = passwd.SetValue(passwdBuffer.data(), passwdBuffer.size()); in CheckRekeyWithExistedSnapshot()
147 EXPECT_EQ(kvStore->Rekey(passwd), BUSY); in CheckRekeyWithExistedSnapshot()
156 EXPECT_EQ(kvStore->Rekey(passwd), OK); in CheckRekeyWithExistedSnapshot()
183 CipherPassword passwd; // random password in CheckRekeyWithExistedObserver() local
185 int errCode = passwd in CheckRekeyWithExistedObserver()
366 CipherPassword passwd; HWTEST_F() local
409 CipherPassword passwd; HWTEST_F() local
459 CipherPassword passwd; HWTEST_F() local
506 CipherPassword passwd; HWTEST_F() local
561 CipherPassword passwd; HWTEST_F() local
[all...]
H A Ddistributeddb_interfaces_import_and_export_test.cpp165 CipherPassword passwd; in HWTEST_F() local
166 EXPECT_EQ(g_kvNbDelegatePtr->Export(singleExportFileName, passwd), OK); in HWTEST_F()
178 EXPECT_EQ(g_kvDelegatePtr->Export(mulitExportFileName, passwd), OK); in HWTEST_F()
216 CipherPassword passwd; in HWTEST_F() local
217 EXPECT_EQ(g_kvNbDelegatePtr->Export(singleExportFileName, passwd), OK); in HWTEST_F()
229 EXPECT_EQ(g_kvNbDelegatePtr->Import(singleExportFileName, passwd), OK); in HWTEST_F()
288 CipherPassword passwd; in HWTEST_F() local
289 EXPECT_EQ(g_kvDelegatePtr->Export(mulitExportFileName, passwd), OK); in HWTEST_F()
301 EXPECT_EQ(g_kvDelegatePtr->Import(mulitExportFileName, passwd), OK); in HWTEST_F()
357 CipherPassword passwd; in HWTEST_F() local
425 CipherPassword passwd; HWTEST_F() local
496 CipherPassword passwd; HWTEST_F() local
554 CipherPassword passwd; HWTEST_F() local
621 CipherPassword passwd; HWTEST_F() local
673 CipherPassword passwd; HWTEST_F() local
705 CipherPassword passwd; HWTEST_F() local
779 CipherPassword passwd; HWTEST_F() local
1085 CipherPassword passwd; HWTEST_F() local
1167 CipherPassword passwd; HWTEST_F() local
1233 CipherPassword passwd; HWTEST_F() local
1291 CipherPassword passwd; HWTEST_F() local
1340 CipherPassword passwd; HWTEST_F() local
[all...]
/third_party/ltp/
H A DIDcheck.sh41 passwd="$DESTDIR/etc/passwd"
72 for i in "$passwd" "$group"; do
79 fe root "$passwd"; NO_ROOT_ID=$?
80 fe bin "$passwd"; NO_BIN_ID=$?
81 fe daemon "$passwd"; NO_DAEMON_ID=$?
82 fe nobody "$passwd"; NO_NOBODY_ID=$?
97 echo "Password file: $passwd"
115 if ! touch "$group" "$passwd" 2>/dev/null; then
116 echo "Failed to touch $group or $passwd"
[all...]
/third_party/musl/libc-test/src/api/
H A Dpwd.c10 struct passwd x; in f()
17 {struct passwd*(*p)(const char*) = getpwnam;} in f()
18 {int(*p)(const char*,struct passwd*,char*,size_t,struct passwd**) = getpwnam_r;} in f()
19 {struct passwd*(*p)(uid_t) = getpwuid;} in f()
20 {int(*p)(uid_t,struct passwd*,char*,size_t,struct passwd**) = getpwuid_r;} in f()
23 {struct passwd*(*p)(void) = getpwent;} in f()
/third_party/musl/src/passwd/
H A Dgetpwent.c5 static struct passwd pw;
16 struct passwd *getpwent() in getpwent()
18 struct passwd *res; in getpwent()
19 if (!f) f = fopen("/etc/passwd", "rbe"); in getpwent()
25 struct passwd *getpwuid(uid_t uid) in getpwuid()
27 struct passwd *res; in getpwuid()
32 struct passwd *getpwnam(const char *name) in getpwnam()
34 struct passwd *res; in getpwnam()
H A Dgetpw_r.c6 static int getpw_r(const char *name, uid_t uid, struct passwd *pw, char *buf, size_t size, struct passwd **res) in getpw_r()
23 FIX(passwd); in getpw_r()
34 int getpwnam_r(const char *name, struct passwd *pw, char *buf, size_t size, struct passwd **res) in getpwnam_r()
39 int getpwuid_r(uid_t uid, struct passwd *pw, char *buf, size_t size, struct passwd **res) in getpwuid_r()
/third_party/node/deps/openssl/openssl/apps/
H A Dpasswd.c49 char *passwd, BIO *out, int quiet, int table,
96 char *infile = NULL, *salt = NULL, *passwd = NULL, **passwds = NULL; in passwd_main() local
226 passwd = passwd_malloc = in passwd_main()
261 passwd = *passwds++; in passwd_main()
262 if (!do_passwd(passed_salt, &salt, &salt_malloc, passwd, bio_out, in passwd_main()
270 assert(passwd != NULL); in passwd_main()
272 int r = BIO_gets(in, passwd, pw_maxlen + 1); in passwd_main()
274 char *c = (strchr(passwd, '\n')); in passwd_main()
286 (passed_salt, &salt, &salt_malloc, passwd, bio_out, quiet, in passwd_main()
314 static char *md5crypt(const char *passwd, cons argument
496 shacrypt(const char *passwd, const char *magic, const char *salt) shacrypt() argument
777 do_passwd(int passed_salt, char **salt_p, char **salt_malloc_p, char *passwd, BIO *out, int quiet, int table, int reverse, size_t pw_maxlen, passwd_modes mode) do_passwd() argument
[all...]
/third_party/openssl/apps/
H A Dpasswd.c49 char *passwd, BIO *out, int quiet, int table,
96 char *infile = NULL, *salt = NULL, *passwd = NULL, **passwds = NULL; in passwd_main() local
226 passwd = passwd_malloc = in passwd_main()
261 passwd = *passwds++; in passwd_main()
262 if (!do_passwd(passed_salt, &salt, &salt_malloc, passwd, bio_out, in passwd_main()
270 assert(passwd != NULL); in passwd_main()
272 int r = BIO_gets(in, passwd, pw_maxlen + 1); in passwd_main()
274 char *c = (strchr(passwd, '\n')); in passwd_main()
286 (passed_salt, &salt, &salt_malloc, passwd, bio_out, quiet, in passwd_main()
314 static char *md5crypt(const char *passwd, cons argument
496 shacrypt(const char *passwd, const char *magic, const char *salt) shacrypt() argument
777 do_passwd(int passed_salt, char **salt_p, char **salt_malloc_p, char *passwd, BIO *out, int quiet, int table, int reverse, size_t pw_maxlen, passwd_modes mode) do_passwd() argument
[all...]
/foundation/distributeddatamgr/kv_store/frameworks/libs/distributeddb/test/fuzztest/fileoper_fuzzer/
H A Dfileoper_fuzzer.cpp58 CipherPassword passwd; in SingerVerExportAndImport() local
59 passwd.SetValue(data, size); in SingerVerExportAndImport()
60 kvNbDelegatePtr->Export(singleExportFileName, passwd); in SingerVerExportAndImport()
61 kvNbDelegatePtr->Import(singleExportFileName, passwd); in SingerVerExportAndImport()
69 CipherPassword passwd; in MultiVerExportAndImport() local
70 passwd.SetValue(data, size); in MultiVerExportAndImport()
71 KvStoreDelegate::Option option = {true, false, true, CipherType::DEFAULT, passwd}; in MultiVerExportAndImport()
85 kvDelegatePtr->Export(multiExportFileName, passwd); in MultiVerExportAndImport()
86 kvDelegatePtr->Import(multiExportFileName, passwd); in MultiVerExportAndImport()
/third_party/node/deps/v8/third_party/zlib/contrib/minizip/
H A Dcrypt.h65 static void init_keys(const char* passwd,unsigned long* pkeys,const z_crc_t* pcrc_32_tab) in init_keys() argument
70 while (*passwd != '\0') { in init_keys()
71 update_keys(pkeys,pcrc_32_tab,(int)*passwd); in init_keys()
72 passwd++; in init_keys()
90 static int crypthead(const char* passwd, /* password string */ in crypthead() argument
114 init_keys(passwd, pkeys, pcrc_32_tab); in crypthead()
121 init_keys(passwd, pkeys, pcrc_32_tab); in crypthead()
/third_party/skia/third_party/externals/zlib/contrib/minizip/
H A Dcrypt.h65 static void init_keys(const char* passwd,unsigned long* pkeys,const z_crc_t* pcrc_32_tab) in init_keys() argument
70 while (*passwd != '\0') { in init_keys()
71 update_keys(pkeys,pcrc_32_tab,(int)*passwd); in init_keys()
72 passwd++; in init_keys()
90 static int crypthead(const char* passwd, /* password string */ in crypthead() argument
114 init_keys(passwd, pkeys, pcrc_32_tab); in crypthead()
121 init_keys(passwd, pkeys, pcrc_32_tab); in crypthead()

Completed in 10 milliseconds

12345678910>>...21