/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/ |
H A D | kdb_xdr.c | 117 content->length += entry->key_data[i].key_data_length[j]; 218 krb5_ui_2 length = entry->key_data[i].key_data_length[j]; 424 krb5_kdb_decode_int16(nextloc, key_data->key_data_length[j]); 427 if ((sizeleft -= key_data->key_data_length[j]) < 0) { 431 if (key_data->key_data_length[j]) { 433 malloc(key_data->key_data_length[j])) == NULL) { 438 key_data->key_data_length[j]); 439 nextloc += key_data->key_data_length[j]; 476 if (entry->key_data[i].key_data_length[j]) { 480 (unsigned) entry->key_data[i].key_data_length[j]); [all …]
|
H A D | kdb_db2.c | 1265 if (entry.key_data[i].key_data_length[0]) { in krb5_db2_db_delete_principal() 1267 (unsigned) entry.key_data[i].key_data_length[0]); in krb5_db2_db_delete_principal()
|
/illumos-gate/usr/src/lib/krb5/kdb/ |
H A D | kdb_cpw.c | 93 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 …y( 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[k]); 519 …y( tptr->key_data_contents[k], tmp_key_data.key_data_contents[k], tmp_key_data.key_data_length[k]); 521 memset( tmp_key_data.key_data_contents[k], 0, tmp_key_data.key_data_length[k]); [all …]
|
H A D | decrypt_key.c | 91 cipher.ciphertext.length = key_data->key_data_length[0]-2; in krb5_dbekd_decrypt_key_data() 93 plain.length = key_data->key_data_length[0]-2; in krb5_dbekd_decrypt_key_data() 127 if ((keysalt->data.length = key_data->key_data_length[1])) { in krb5_dbekd_decrypt_key_data()
|
H A D | encrypt_key.c | 107 key_data->key_data_length[0] = 2 + len; in krb5_dbekd_encrypt_key_data() 130 if ((key_data->key_data_length[1] = keysalt->data.length) != 0) { in krb5_dbekd_encrypt_key_data()
|
H A D | kdb_convert.c | 482 ULOG_ENTRY_KEYVAL(upd, final, j).k_contents.k_contents_val[cnt].utf8str_t_len = ent->key_data[j].key_data_length[cnt]; in ulog_conv_2logentry() 483 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)); in ulog_conv_2logentry() 488 (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]); in ulog_conv_2logentry() 743 kp->key_data_length[cnt] = (krb5_int16)kv->k_contents.k_contents_val[cnt].utf8str_t_len; in ulog_conv_2dbentry() 745 kp->key_data_length[cnt]); in ulog_conv_2dbentry() 751 kp->key_data_length[cnt]); in ulog_conv_2dbentry() 754 kp->key_data_length[cnt]); in ulog_conv_2dbentry()
|
/illumos-gate/usr/src/lib/krb5/kadm5/srv/ |
H A D | adb_xdr.c | 58 if (!xdr_krb5_ui_2(xdrs, (krb5_ui_2 *)&objp->key_data_length[0])) in xdr_krb5_key_data() 60 if (!xdr_krb5_ui_2(xdrs, (krb5_ui_2 *)&objp->key_data_length[1])) in xdr_krb5_key_data() 63 tmp = (unsigned int) objp->key_data_length[0]; in xdr_krb5_key_data() 68 tmp = (unsigned int) objp->key_data_length[1]; in xdr_krb5_key_data()
|
H A D | svr_principal.c | 141 if ( from->key_data_length[i] ) { 142 to->key_data_contents[i] = malloc(from->key_data_length[i]); 147 to->key_data_length[i]); 154 from->key_data_length[i]); 189 if (data[i].key_data_length[j]) 1757 kdb.key_data->key_data_length[k] = tmp_key_data.key_data_length[k]; 1759 …data->key_data_contents[k] = krb5_db_alloc(handle->context, NULL, tmp_key_data.key_data_length[k]); 1767 …ey_data->key_data_contents[k], tmp_key_data.key_data_contents[k], tmp_key_data.key_data_length[k]); 1769 memset (tmp_key_data.key_data_contents[k], 0, tmp_key_data.key_data_length[k]); 1842 memset (tmp_key_data.key_data_contents[i], 0, tmp_key_data.key_data_length[i]); [all …]
|
/illumos-gate/usr/src/cmd/krb5/kadmin/dbutil/ |
H A D | dump.c | 399 if (key_data->key_data_length[j]) { 722 (krb5_int32) pkey->key_data_length[0], 723 (krb5_int32) akey->key_data_length[0], 724 (krb5_int32) pkey->key_data_length[1], 725 (krb5_int32) akey->key_data_length[1], 728 for (i=0; i<pkey->key_data_length[0]; i++) { 745 for (i=0; i<pkey->key_data_length[1]; i++) { 750 for (i=0; i<akey->key_data_length[0]; i++) { 755 for (i=0; i<akey->key_data_length[1]; i++) { 912 kdata->key_data_length[i]); [all …]
|
H A D | ovload.c | 71 key_data->key_data_length[0] = atoi(cp); 79 (krb5_octet *) malloc(key_data->key_data_length[0]+1))) { 83 for(j = 0; j < key_data->key_data_length[0]; j++) {
|
/illumos-gate/usr/src/lib/krb5/plugins/kdb/ldap/libkdb_ldap/ |
H A D | princ_xdr.c | 116 if (!ldap_xdr_krb5_ui_2(xdrs, (krb5_ui_2 *)&objp->key_data_length[0])) in ldap_xdr_krb5_key_data() 118 if (!ldap_xdr_krb5_ui_2(xdrs, (krb5_ui_2 *)&objp->key_data_length[1])) in ldap_xdr_krb5_key_data() 121 tmp = (unsigned int) objp->key_data_length[0]; in ldap_xdr_krb5_key_data() 126 tmp = (unsigned int) objp->key_data_length[1]; in ldap_xdr_krb5_key_data()
|
H A D | ldap_principal.c | 108 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/lib/gss_mechs/mech_krb5/krb5/asn.1/ |
H A D | ldap_key_seq.c | 72 key_data.key_data_length[0], in asn1_encode_key() 96 if (key_data.key_data_length[1] > 0) { in asn1_encode_key() 98 key_data.key_data_length[1], in asn1_encode_key() 346 key->key_data_length[1] = keylen; /* XXX range check?? */ in asn1_decode_key() 372 key->key_data_length[0] = ival; /* XXX range check? */ in asn1_decode_key()
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/wpad/ |
H A D | wpa.c | 855 reply->key_data_length = BE_16(0); in wpa_supplicant_key_request() 898 uint8_t *end = pos + BE_16(key->key_data_length); in wpa_supplicant_process_1_of_4() 901 pos, BE_16(key->key_data_length)); in wpa_supplicant_process_1_of_4() 958 reply->key_data_length = BE_16(wpa_ie_len); in wpa_supplicant_process_1_of_4() 1124 uint8_t *end = pos + BE_16(key->key_data_length); in wpa_supplicant_process_3_of_4() 1154 ie_len = BE_16(key->key_data_length); in wpa_supplicant_process_3_of_4() 1229 reply->key_data_length = BE_16(0); in wpa_supplicant_process_3_of_4() 1316 keydatalen = BE_16(key->key_data_length); in wpa_supplicant_process_1_of_2() 1510 reply->key_data_length = BE_16(0); in wpa_supplicant_process_1_of_2() 1582 int keydatalen = BE_16(key->key_data_length); in wpa_supplicant_decrypt_key_data() [all …]
|
H A D | wpa_impl.h | 77 uint16_t key_data_length; member
|
/illumos-gate/usr/src/lib/krb5/kadm5/ |
H A D | misc_free.c | 69 memset(key->key_data_contents[i], 0, key->key_data_length[i]);
|
H A D | kadm_rpc_xdr.c | 282 tmp = (unsigned int) objp->key_data_length[0]; in xdr_krb5_key_data_nocontents() 287 tmp = (unsigned int) objp->key_data_length[1]; in xdr_krb5_key_data_nocontents()
|
/illumos-gate/usr/src/lib/gss_mechs/mech_krb5/include/krb5/ |
H A D | kdb.h | 120 krb5_ui_2 key_data_length[2]; Array of lengths 122 krb5_int16 key_data_length[2]; /* Array of lengths */ member
|
/illumos-gate/usr/src/cmd/krb5/krb5kdc/ |
H A D | kdc_preauth.c | 1687 if ((padata->contents = malloc(client_key->key_data_length[1])) in return_pw_salt() 1693 client_key->key_data_length[1]); in return_pw_salt() 1694 padata->length = client_key->key_data_length[1]; in return_pw_salt()
|
H A D | kdc_util.c | 1489 salt->length = client_key->key_data_length[1]; in get_salt_from_key()
|