• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10.1/Heimdal-398.1.2/lib/kadm5/

Lines Matching refs:keys

39  * Set the keys of `ent' to the string-to-key of `password'
48 Key *keys;
55 &keys, &num_keys);
60 _kadm5_free_keys (context->context, ent->keys.len, ent->keys.val);
61 ent->keys.val = keys;
62 ent->keys.len = (int)num_keys;
100 * Set the keys of `ent' to (`n_key_data', `key_data')
116 Keys keys;
125 /* Clear all keys! */
130 free_Keys(&ent->keys);
134 memset(&keys, 0, sizeof (keys));
182 ret = add_Keys(&keys, &key);
187 * This kvno is historical. Build an hdb_keyset for keys of
196 /* We've added all keys of this kvno already (see below) */
202 /* Find all keys of this kvno and add them to the new keyset */
207 ret = add_Keys(&hkset.keys, &key);
225 * keys. kadm5 loses this info, so this heuristic is the best we
242 /* If hist keys not given in key_data then don't blow away hist_keys */
251 * copy_Keys(&keys, &ent->keys);
252 * free_Keys(&keys);
256 free_Keys(&ent->keys);
257 ent->keys = keys;
264 free_Keys(&keys);
271 * Set the keys of `ent' to `n_keys, keys'
283 Key *keys;
286 keys = malloc (len * sizeof(*keys));
287 if (keys == NULL && len != 0)
290 _kadm5_init_keys (keys, len);
293 keys[i].mkvno = NULL;
296 &keys[i].key);
299 keys[i].salt = NULL;
301 _kadm5_free_keys (context->context, ent->keys.len, ent->keys.val);
302 ent->keys.len = len;
303 ent->keys.val = keys;
310 _kadm5_free_keys (context->context, len, keys);
328 * Set the keys of `ent' to random keys and return them in `n_keys'
344 Key *keys;
348 &keys, &num_keys, 1);
355 _kadm5_free_keys (context->context, (int)num_keys, keys);
364 * To make sure all des keys are the the same we generate only
365 * the first one and then copy key to all other des keys.
368 if (des_keyblock != -1 && is_des_key_p(keys[i].key.keytype)) {
374 kblock[i].keytype = keys[i].key.keytype;
377 keys[i].key.keytype,
382 if (is_des_key_p(keys[i].key.keytype))
388 &keys[i].key);
398 _kadm5_free_keys (context->context, (int)num_keys, keys);
402 _kadm5_free_keys (context->context, ent->keys.len, ent->keys.val);
403 ent->keys.val = keys;
404 ent->keys.len = (int)num_keys;