Searched refs:key_data_length (Results 1 - 20 of 20) sorted by relevance

/illumos-gate/usr/src/lib/krb5/kadm5/srv/
H A Dadb_xdr.c58 if (!xdr_krb5_ui_2(xdrs, (krb5_ui_2 *)&objp->key_data_length[0]))
60 if (!xdr_krb5_ui_2(xdrs, (krb5_ui_2 *)&objp->key_data_length[1]))
63 tmp = (unsigned int) objp->key_data_length[0];
68 tmp = (unsigned int) objp->key_data_length[1];
73 /* don't need to copy tmp out, since key_data_length will be set
H A Dsvr_principal.c147 if ( from->key_data_length[i] ) {
148 to->key_data_contents[i] = malloc(from->key_data_length[i]);
153 to->key_data_length[i]);
160 from->key_data_length[i]);
195 if (data[i].key_data_length[j])
1764 kdb.key_data->key_data_length[k] = tmp_key_data.key_data_length[k];
1766 kdb.key_data->key_data_contents[k] = krb5_db_alloc(handle->context, NULL, tmp_key_data.key_data_length[k]);
1774 memcpy (kdb.key_data->key_data_contents[k], tmp_key_data.key_data_contents[k], tmp_key_data.key_data_length[k]);
1776 memset (tmp_key_data.key_data_contents[k], 0, tmp_key_data.key_data_length[
[all...]
/illumos-gate/usr/src/lib/krb5/kdb/
H A Ddecrypt_key.c91 cipher.ciphertext.length = key_data->key_data_length[0]-2;
93 plain.length = key_data->key_data_length[0]-2;
127 if ((keysalt->data.length = key_data->key_data_length[1])) {
H A Dencrypt_key.c107 key_data->key_data_length[0] = 2 + len;
130 if ((key_data->key_data_length[1] = keysalt->data.length) != 0) {
H A Dkdb_cpw.c93 if (data[i].key_data_length[j]) {
209 tptr->key_data_length[k] = tmp_key_data.key_data_length[k];
212 tptr->key_data_contents[k] = krb5_db_alloc(context, NULL, tmp_key_data.key_data_length[k]);
221 memcpy( tptr->key_data_contents[k], tmp_key_data.key_data_contents[k], tmp_key_data.key_data_length[k]);
223 memset( tmp_key_data.key_data_contents[k], 0, tmp_key_data.key_data_length[k]);
238 memset( tmp_key_data.key_data_contents[i], 0, tmp_key_data.key_data_length[i]);
507 tptr->key_data_length[k] = tmp_key_data.key_data_length[k];
510 tptr->key_data_contents[k] = krb5_db_alloc(context, NULL, tmp_key_data.key_data_length[
[all...]
H A Dkdb_convert.c484 ULOG_ENTRY_KEYVAL(upd, final, j).k_contents.k_contents_val[cnt].utf8str_t_len = ent->key_data[j].key_data_length[cnt];
485 ULOG_ENTRY_KEYVAL(upd, final, j).k_contents.k_contents_val[cnt].utf8str_t_val = malloc(ent->key_data[j].key_data_length[cnt] * sizeof (char));
490 (void) memcpy(ULOG_ENTRY_KEYVAL(upd, final, j).k_contents.k_contents_val[cnt].utf8str_t_val, ent->key_data[j].key_data_contents[cnt], ent->key_data[j].key_data_length[cnt]);
745 kp->key_data_length[cnt] = (krb5_int16)kv->k_contents.k_contents_val[cnt].utf8str_t_len;
747 kp->key_data_length[cnt]);
753 kp->key_data_length[cnt]);
756 kp->key_data_length[cnt]);
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/
H A Dkdb_xdr.c91 * then (4 + (4 + key_data_length) per key_data_contents) bytes per key_data
119 content->length += entry->key_data[i].key_data_length[j];
220 krb5_ui_2 length = entry->key_data[i].key_data_length[j];
426 krb5_kdb_decode_int16(nextloc, key_data->key_data_length[j]);
429 if ((sizeleft -= key_data->key_data_length[j]) < 0) {
433 if (key_data->key_data_length[j]) {
435 malloc(key_data->key_data_length[j])) == NULL) {
440 key_data->key_data_length[j]);
441 nextloc += key_data->key_data_length[j];
478 if (entry->key_data[i].key_data_length[
[all...]
H A Dkdb_db2.c1264 if (entry.key_data[i].key_data_length[0]) {
1266 (unsigned) entry.key_data[i].key_data_length[0]);
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/
H A Dprinc_xdr.c118 if (!ldap_xdr_krb5_ui_2(xdrs, (krb5_ui_2 *)&objp->key_data_length[0]))
120 if (!ldap_xdr_krb5_ui_2(xdrs, (krb5_ui_2 *)&objp->key_data_length[1]))
123 tmp = (unsigned int) objp->key_data_length[0];
128 tmp = (unsigned int) objp->key_data_length[1];
133 /* don't need to copy tmp out, since key_data_length will be set
H A Dldap_principal.c108 if (entry->key_data[i].key_data_length[j]) {
112 (unsigned) entry->key_data[i].key_data_length[j]);
117 entry->key_data[i].key_data_length[j] = 0;
/illumos-gate/usr/src/cmd/krb5/kadmin/dbutil/
H A Ddump.c383 if (key_data->key_data_length == 0)
401 if (key_data->key_data_length[j]) {
724 (krb5_int32) pkey->key_data_length[0],
725 (krb5_int32) akey->key_data_length[0],
726 (krb5_int32) pkey->key_data_length[1],
727 (krb5_int32) akey->key_data_length[1],
730 for (i=0; i<pkey->key_data_length[0]; i++) {
747 for (i=0; i<pkey->key_data_length[1]; i++) {
752 for (i=0; i<akey->key_data_length[0]; i++) {
757 for (i=0; i<akey->key_data_length[
[all...]
H A Dovload.c73 key_data->key_data_length[0] = atoi(cp);
81 (krb5_octet *) malloc(key_data->key_data_length[0]+1))) {
85 for(j = 0; j < key_data->key_data_length[0]; j++) {
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/krb5/asn.1/
H A Dldap_key_seq.c74 key_data.key_data_length[0],
98 if (key_data.key_data_length[1] > 0) {
100 key_data.key_data_length[1],
348 key->key_data_length[1] = keylen; /* XXX range check?? */
374 key->key_data_length[0] = ival; /* XXX range check? */
/illumos-gate/usr/src/lib/krb5/kadm5/
H A Dmisc_free.c69 memset(key->key_data_contents[i], 0, key->key_data_length[i]);
H A Dkadm_rpc_xdr.c282 tmp = (unsigned int) objp->key_data_length[0];
287 tmp = (unsigned int) objp->key_data_length[1];
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/
H A Dwpa_impl.h77 uint16_t key_data_length; member in struct:wpa_eapol_key
78 /* followed by key_data_length bytes of key_data */
H A Dwpa.c855 reply->key_data_length = BE_16(0);
898 uint8_t *end = pos + BE_16(key->key_data_length);
901 pos, BE_16(key->key_data_length));
958 reply->key_data_length = BE_16(wpa_ie_len);
1124 uint8_t *end = pos + BE_16(key->key_data_length);
1154 ie_len = BE_16(key->key_data_length);
1229 reply->key_data_length = BE_16(0);
1316 keydatalen = BE_16(key->key_data_length);
1359 " key_data_length=%d > extra_len=%d",
1510 reply->key_data_length
[all...]
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/include/krb5/
H A Dkdb.h120 krb5_ui_2 key_data_length[2]; Array of lengths
122 krb5_int16 key_data_length[2]; /* Array of lengths */ member in struct:_krb5_key_data
/illumos-gate/usr/src/cmd/krb5/krb5kdc/
H A Dkdc_preauth.c1687 if ((padata->contents = malloc(client_key->key_data_length[1]))
1693 client_key->key_data_length[1]);
1694 padata->length = client_key->key_data_length[1];
H A Dkdc_util.c1489 salt->length = client_key->key_data_length[1];

Completed in 331 milliseconds