new salt format
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@3319 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -94,9 +94,12 @@ hdb_entry2string(hdb_entry *ent, char **str)
|
||||
free(p);
|
||||
append_hex(buf, &ent->keys.val[i].key.keyvalue);
|
||||
strcat(buf, ":");
|
||||
if(ent->keys.val[i].salt)
|
||||
append_hex(buf, ent->keys.val[i].salt);
|
||||
else
|
||||
if(ent->keys.val[i].salt){
|
||||
asprintf(&p, "%u/", ent->keys.val[i].salt->type);
|
||||
strcat(buf, p);
|
||||
free(p);
|
||||
append_hex(buf, &ent->keys.val[i].salt->salt);
|
||||
}else
|
||||
strcat(buf, "-");
|
||||
}
|
||||
strcat(buf, " ");
|
||||
|
Reference in New Issue
Block a user