Home | History | Annotate | Download | only in kdc

Lines Matching refs:Salt

63 set_salt_padata(METHOD_DATA *md, Salt *salt)
65 if (salt) {
67 md->val[md->len - 1].padata_type = salt->type;
68 der_copy_octet_string(&salt->salt,
112 if (key->salt == NULL)
114 if (default_salt->salttype != key->salt->type)
116 if (krb5_data_cmp(&default_salt->saltvalue, &key->salt->salt))
123 * (for des-cbc-crc) or any salt otherwise.
126 * that salt is strange, and a buggy client will try to use the
127 * principal as the salt and not the returned value.
158 * one, but preferring one that has default salt.
594 set_salt_padata(&r->outpadata, k->salt);
749 set_salt_padata(&r->outpadata, pa_key->salt);
1066 if(key->salt){
1070 if(key->salt->type == hdb_pw_salt)
1072 else if(key->salt->type == hdb_afs3_salt)
1075 kdc_log(context, config, 0, "unknown salt-type: %d",
1076 key->salt->type);
1079 /* according to `the specs', we can't send a salt if
1086 *ent->salttype = key->salt->type;
1091 * salting problem is solved by using KRB5-PADATA-AFS3-SALT
1096 krb5_copy_data(context, &key->salt->salt,
1097 &ent->salt);
1099 /* we return no salt type at all, as that should indicate
1100 * the default salt type and make everybody happy. some
1101 * systems (like w2k) dislike being told the salt type
1105 ent->salt = NULL;
1179 if(key->salt) {
1180 ALLOC(ent->salt);
1181 if (ent->salt == NULL)
1183 *ent->salt = malloc(key->salt->salt.length + 1);
1184 if (*ent->salt == NULL) {
1185 free(ent->salt);
1186 ent->salt = NULL;
1189 memcpy(*ent->salt, key->salt->salt.data, key->salt->salt.length);
1190 (*ent->salt)[key->salt->salt.length] = '\0';
1192 ent->salt = NULL;
1211 if(key->salt && key->salt->type == hdb_afs3_salt)