Lines Matching refs:algname
112 static struct crypt_alg_s *getalgbyname(const char *algname, boolean_t *found);
115 static boolean_t alg_valid(const char *algname,
149 char *algname;
176 if ((algname = getalgfromsalt(salt)) == NULL) {
181 alg = getalgbyname(algname, &found);
196 if (algname != NULL)
197 free(algname);
223 char *algname = NULL;
238 algname = getalgfromsalt(oldsalt);
239 if (!alg_valid(algname, policy)) {
240 free(algname);
241 algname = strdup(policy->cp_default);
244 if (strcmp(algname, CRYPT_UNIX) == 0) {
249 alg = getalgbyname(algname, &found);
264 if (algname != NULL)
265 free(algname);
284 char algname[CRYPT_MAXCIPHERTEXTLEN];
292 * $<algname>[,var=val,[var=val ...][$puresalt]$<ciphertext>
305 algname[j] = salt[i];
312 algname[j] = '\0';
314 return (strdup(algname));
437 alg_valid(const char *algname, const struct crypt_policy_s *policy)
444 if ((algname == NULL) || (policy == NULL)) {
448 if (strcmp(algname, policy->cp_default) == 0) {
466 if (strcmp(entry, algname) == 0) {
475 * getalgbyname - read crypt.conf(4) looking for algname
480 * If crypt.conf(4) is okay but algname doesn't exist in it then
485 getalgbyname(const char *algname, boolean_t *found)
499 if ((algname == NULL) || (strcmp(algname, CRYPT_UNIX) == 0)) {
549 * <algname> <pathname> [<name[=val]>[<name[=val]>]]
569 if (strcmp(token, algname) == 0) {