Home | History | Annotate | Download | only in kadmin

Lines Matching refs:keys

50     krb5_keytab_entry *keys = NULL;
71 krb5_warnx(context, "principal has no keys, or user lacks "
72 "get-keys privilege for %s", unparsed);
77 * can have corrupted a principal's keys in the HDB. If some
80 * If all keys are bogus then the server may be a pre-1.6,
81 * post-1.5 server and the client lacks get-keys privilege, or
82 * the keys are corrupted. We can't tell here.
85 krb5_warnx(context, "user lacks get-keys privilege for %s",
90 krb5_warnx(context, "some keys for %s are corrupted in the HDB",
93 keys = calloc(sizeof(*keys), princ.n_key_data);
94 if (keys == NULL) {
101 /* Don't extract bogus keys */
105 keys[i].principal = princ.principal;
106 keys[i].vno = kd->key_data_kvno;
107 keys[i].keyblock.keytype = kd->key_data_type[0];
108 keys[i].keyblock.keyvalue.length = kd->key_data_length[0];
109 keys[i].keyblock.keyvalue.data = kd->key_data_contents[0];
110 keys[i].timestamp = time(NULL);
118 keys = calloc(sizeof(*keys), n_k);
119 if (keys == NULL) {
124 keys[i].principal = principal;
125 keys[i].vno = princ.kvno + 1; /* XXX get entry again */
126 keys[i].keyblock = k[i];
127 keys[i].timestamp = time(NULL);
132 krb5_warn(context, ret, "no keys written to keytab for %s", unparsed);
135 ret = krb5_kt_add_entry(context, e->keytab, &keys[i]);
148 free(keys);