usr/src/lib/pkcs11/pkcs11_tpm/common/sess_mgr.c
1022
if (auth_key != 0) {
usr/src/lib/pkcs11/pkcs11_tpm/common/sess_mgr.c
1065
if (auth_key == 0) {
usr/src/lib/pkcs11/pkcs11_tpm/common/sess_mgr.c
1107
if (auth_key != 0) {
usr/src/lib/pkcs11/pkcs11_tpm/common/sess_mgr.c
1182
sess->sign_ctx.key = auth_key;
usr/src/lib/pkcs11/pkcs11_tpm/common/sess_mgr.c
1191
sess->verify_ctx.key = auth_key;
usr/src/lib/pkcs11/pkcs11_tpm/common/sess_mgr.c
990
CK_OBJECT_HANDLE auth_key,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
5037
remote_key = (char *)node_dhc->auth_key.remote_password;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
5041
remote_key = (char *)node_dhc->auth_key.remote_password;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
5063
node_dhc->auth_key.remote_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
5092
node_dhc->auth_key.remote_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
5149
node_dhc->auth_key.remote_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
5191
node_dhc->auth_key.remote_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
5261
mykey = (char *)node_dhc->auth_key.local_password;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
5264
mykey = (char *)node_dhc->auth_key.local_password;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
5278
node_dhc->auth_key.local_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
5309
node_dhc->auth_key.local_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
5366
node_dhc->auth_key.local_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
5390
node_dhc->auth_key.local_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6222
remote_key = (char *)node_dhc->auth_key.remote_password;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6229
remote_key = (char *)node_dhc->auth_key.remote_password;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6256
node_dhc->auth_key.remote_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6260
node_dhc->auth_key.remote_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6295
node_dhc->auth_key.remote_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6298
node_dhc->auth_key.remote_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6398
node_dhc->auth_key.remote_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6402
node_dhc->auth_key.remote_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6429
node_dhc->auth_key.remote_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6432
node_dhc->auth_key.remote_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6534
mykey = (char *)node_dhc->auth_key.local_password;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6538
mykey = (char *)node_dhc->auth_key.remote_password;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6552
node_dhc->auth_key.local_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6555
node_dhc->auth_key.remote_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6579
node_dhc->auth_key.local_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6582
node_dhc->auth_key.remote_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6656
node_dhc->auth_key.local_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6659
node_dhc->auth_key.remote_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6685
node_dhc->auth_key.local_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6688
node_dhc->auth_key.remote_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6810
emlxs_auth_key_t *auth_key;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6874
auth_key = emlxs_auth_key_find(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6879
auth_key = emlxs_auth_key_find(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6902
if (!auth_key) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6915
auth_key->node = NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6917
node_dhc->parent_auth_key = auth_key;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
6918
auth_key->node = ndlp;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
7003
bzero(&node_dhc->auth_key, sizeof (node_dhc->auth_key));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
7020
if (auth_key->remote_password_type == 3) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
7101
if (auth_key) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
7102
bcopy((uint8_t *)auth_key,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
7103
(uint8_t *)&node_dhc->auth_key,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
7105
node_dhc->auth_key.next = NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
7106
node_dhc->auth_key.prev = NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
7109
(uint8_t *)&node_dhc->auth_key.local_entity, 8);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
7111
(uint8_t *)&node_dhc->auth_key.remote_entity,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
7324
emlxs_auth_key_t *auth_key = NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
7361
auth_key = emlxs_auth_key_find(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
7363
if ((!auth_cfg) || (!auth_key)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
7386
emlxs_auth_key_t *auth_key;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
7432
auth_key = emlxs_auth_key_find(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
7437
auth_key = emlxs_auth_key_find(port,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
7441
if (auth_key && auth_cfg &&
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
77
emlxs_auth_key_t *auth_key, char *prop_str);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
83
emlxs_auth_key_t *auth_key);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8424
emlxs_auth_key_t *auth_key;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8428
auth_key = emlxs_auth_key_get(hba,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8431
if (auth_key) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8432
emlxs_auth_key_print(hba, auth_key);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8433
return (auth_key);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8436
auth_key = emlxs_auth_key_get(hba,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8439
if (auth_key) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8440
emlxs_auth_key_print(hba, auth_key);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8441
return (auth_key);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8445
auth_key = emlxs_auth_key_get(hba,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8448
if (auth_key) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8449
emlxs_auth_key_print(hba, auth_key);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8450
return (auth_key);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8460
emlxs_auth_key_t *auth_key;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8468
auth_key = &hba->auth_key;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8469
bzero(auth_key, sizeof (emlxs_auth_key_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8470
auth_key->next = auth_key;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8471
auth_key->prev = auth_key;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8474
auth_key->local_password_type = PASSWORD_TYPE_IGNORE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8475
auth_key->remote_password_type = PASSWORD_TYPE_IGNORE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8489
emlxs_auth_key_t *auth_key = hba->auth_key.next;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8494
while (auth_key && auth_key != &hba->auth_key) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8495
next = auth_key->next;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8496
emlxs_auth_key_destroy(hba, auth_key);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8497
auth_key = next;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
85
emlxs_auth_key_t *auth_key);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8508
emlxs_auth_key_print(emlxs_hba_t *hba, emlxs_auth_key_t *auth_key)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8518
(uint8_t *)&auth_key->local_entity),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8520
(uint8_t *)&auth_key->remote_entity),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8521
auth_key->local_password_type, auth_key->local_password_length,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8522
auth_key->remote_password_type, auth_key->remote_password_length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8533
emlxs_auth_key_t *auth_key;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8541
return (&hba->auth_key);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8543
for (auth_key = hba->auth_key.next; auth_key !=
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8544
&hba->auth_key; auth_key = auth_key->next) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8548
if (bcmp((void *)&auth_key->local_entity,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8555
if (bcmp((void *)&auth_key->remote_entity,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8559
return (auth_key);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8571
emlxs_auth_key_t *auth_key;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8574
auth_key = emlxs_auth_key_get(hba, lwwpn, rwwpn);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8576
if (auth_key) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8577
return (auth_key);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8580
auth_key = (emlxs_auth_key_t *)kmem_zalloc(sizeof (emlxs_auth_key_t),
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8583
if (!auth_key) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8588
bcopy((void *)lwwpn, (void *)&auth_key->local_entity, 8);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8591
bcopy((void *)rwwpn, (void *)&auth_key->remote_entity, 8);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8594
auth_key->local_password_type = PASSWORD_TYPE_IGNORE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8595
auth_key->remote_password_type = PASSWORD_TYPE_IGNORE;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8598
auth_key->next = &hba->auth_key;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8599
auth_key->prev = hba->auth_key.prev;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8600
hba->auth_key.prev->next = auth_key;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8601
hba->auth_key.prev = auth_key;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8604
return (auth_key);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8611
emlxs_auth_key_destroy(emlxs_hba_t *hba, emlxs_auth_key_t *auth_key)
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8614
if (!auth_key) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8617
if (auth_key == &hba->auth_key) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8621
auth_key->next->prev = auth_key->prev;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8622
auth_key->prev->next = auth_key->next;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8626
if (auth_key->node &&
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8627
auth_key->node->nlp_active &&
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8628
(auth_key->node->node_dhc.parent_auth_key == auth_key)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8629
auth_key->node->node_dhc.parent_auth_key = NULL;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8631
bzero(auth_key, sizeof (emlxs_auth_key_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8632
kmem_free(auth_key, sizeof (emlxs_auth_key_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8645
emlxs_auth_key_t auth_key;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8679
if (emlxs_auth_key_parse(hba, &auth_key, prop_str) == 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8686
(uint8_t *)&auth_key.local_entity,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8687
(uint8_t *)&auth_key.remote_entity);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8696
auth_key.next = auth_key2->next;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8697
auth_key.prev = auth_key2->prev;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8698
bcopy((uint8_t *)&auth_key,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8711
emlxs_auth_key_t *auth_key,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8723
bzero(auth_key, sizeof (emlxs_auth_key_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8726
np = (uint8_t *)&auth_key->local_entity;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8768
np = (uint8_t *)&auth_key->remote_entity;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8829
auth_key->local_password_type = (uint16_t)sum;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8838
np = (uint8_t *)&auth_key->local_password;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8840
switch (auth_key->local_password_type) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8895
auth_key->local_password_type);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8900
auth_key->local_password_length = (uint16_t)j;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8928
auth_key->remote_password_type = (uint16_t)sum;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8937
np = (uint8_t *)&auth_key->remote_password;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8939
switch (auth_key->remote_password_type) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8994
auth_key->remote_password_type);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
8999
auth_key->remote_password_length = (uint16_t)j;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9005
if (auth_key->local_password_type == 0 ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9006
auth_key->local_password_type > 3 ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9007
auth_key->local_password_length == 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9009
auth_key->local_password_type = 3;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9010
auth_key->local_password_length = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9011
bzero(auth_key->local_password,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9012
sizeof (auth_key->local_password));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9014
if (auth_key->remote_password_type == 0 ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9015
auth_key->remote_password_type > 3 ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9016
auth_key->remote_password_length == 0) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9018
auth_key->remote_password_type = 3;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9019
auth_key->remote_password_length = 0;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9020
bzero(auth_key->remote_password,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9021
sizeof (auth_key->remote_password));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9024
emlxs_auth_key_print(hba, auth_key);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9028
bzero(auth_key, sizeof (emlxs_auth_key_t));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9187
emlxs_auth_key_t *auth_key;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9201
auth_key = emlxs_auth_key_get(hba,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9204
if (auth_key &&
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9205
(auth_key->local_password_type == PASSWORD_TYPE_ASCII ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9206
auth_key->local_password_type == PASSWORD_TYPE_BINARY)) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9209
if ((auth_key->local_password_length != dfc_pwd->length) ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9210
(auth_key->local_password_type != dfc_pwd->type) ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9211
bcmp(dfc_pwd->password, auth_key->local_password,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9309
emlxs_auth_key_t *auth_key;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9322
auth_key = emlxs_auth_key_get(hba,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9326
if (auth_key &&
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9327
(auth_key->local_password_type == PASSWORD_TYPE_ASCII ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9328
auth_key->local_password_type ==
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9331
if ((auth_key->local_password_length != dfc_pwd->length) ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9332
(auth_key->local_password_type != dfc_pwd->type) ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9334
auth_key->local_password,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9366
emlxs_auth_key_destroy(hba, auth_key);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9383
emlxs_auth_key_t *auth_key;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9395
auth_key = emlxs_auth_key_get(hba,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9399
if (!auth_key) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9412
dfc_auth_pwd->lpw.length = auth_key->local_password_length;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9413
dfc_auth_pwd->lpw.type = auth_key->local_password_type;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9419
dfc_auth_pwd->rpw.length = auth_key->remote_password_length;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9420
dfc_auth_pwd->rpw.type = auth_key->remote_password_type;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9426
dfc_auth_pwd->lpw_new.length = auth_key->local_password_length;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9427
dfc_auth_pwd->lpw_new.type = auth_key->local_password_type;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9433
dfc_auth_pwd->rpw_new.length = auth_key->remote_password_length;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9434
dfc_auth_pwd->rpw_new.type = auth_key->remote_password_type;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9453
emlxs_auth_key_t *auth_key;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9484
auth_key = emlxs_auth_key_get(hba,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9489
if (!auth_key) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9490
auth_key = emlxs_auth_key_create(hba,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9494
if (!auth_key) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9509
if (auth_key->local_password_type == PASSWORD_TYPE_ASCII ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9510
auth_key->local_password_type == PASSWORD_TYPE_BINARY) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9512
if ((auth_key->local_password_length !=
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9514
(auth_key->local_password_type !=
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9517
auth_key->local_password,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9533
if (auth_key->remote_password_type == PASSWORD_TYPE_ASCII ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9534
auth_key->remote_password_type == PASSWORD_TYPE_BINARY) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9535
if ((auth_key->remote_password_length ==
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9538
auth_key->remote_password,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9550
auth_key->local_password_length = dfc_pwd->lpw_new.length;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9551
auth_key->local_password_type = dfc_pwd->lpw_new.type;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9552
bzero(auth_key->local_password,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9553
sizeof (auth_key->local_password));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9555
sizeof (auth_key->local_password));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9557
auth_key->local_password, length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9563
if (auth_key->remote_password_type == PASSWORD_TYPE_ASCII ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9564
auth_key->remote_password_type == PASSWORD_TYPE_BINARY) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9566
if ((auth_key->remote_password_length !=
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9568
(auth_key->remote_password_type !=
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9571
auth_key->remote_password,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9587
if (auth_key->local_password_type == PASSWORD_TYPE_ASCII ||
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9588
auth_key->local_password_type == PASSWORD_TYPE_BINARY) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9589
if ((auth_key->local_password_length ==
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9592
auth_key->local_password,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9604
auth_key->remote_password_length = dfc_pwd->rpw_new.length;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9605
auth_key->remote_password_type = dfc_pwd->rpw_new.type;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9606
bzero(auth_key->remote_password,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9607
sizeof (auth_key->remote_password));
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9610
auth_key->remote_password, length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9613
dfc_pwd->lpw.length = auth_key->local_password_length;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9614
dfc_pwd->lpw.type = auth_key->local_password_type;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9616
length = min(auth_key->local_password_length,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9618
bcopy(auth_key->local_password, dfc_pwd->lpw.password, length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9621
dfc_pwd->rpw.length = auth_key->remote_password_length;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9622
dfc_pwd->rpw.type = auth_key->remote_password_type;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9624
length = min(auth_key->remote_password_length,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9626
bcopy(auth_key->remote_password, dfc_pwd->rpw.password, length);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9628
emlxs_auth_key_print(hba, auth_key);
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9784
emlxs_auth_key_t *auth_key;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9794
for (auth_key = hba->auth_key.next;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9795
auth_key != &hba->auth_key;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9796
auth_key = auth_key->next) {
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9797
bcopy((uint8_t *)&auth_key->local_entity,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9799
bcopy((uint8_t *)&auth_key->remote_entity,
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9802
auth_pwd->lpw.length = auth_key->local_password_length;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9803
auth_pwd->lpw.type = auth_key->local_password_type;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9809
auth_pwd->rpw.length = auth_key->remote_password_length;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9810
auth_pwd->rpw.type = auth_key->remote_password_type;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9816
auth_pwd->lpw_new.length = auth_key->local_password_length;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9817
auth_pwd->lpw_new.type = auth_key->local_password_type;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9823
auth_pwd->rpw_new.length = auth_key->remote_password_length;
usr/src/uts/common/io/fibre-channel/fca/emlxs/emlxs_dhchap.c
9824
auth_pwd->rpw_new.type = auth_key->remote_password_type;
usr/src/uts/common/sys/fibre-channel/fca/emlxs/emlxs_dhchap.h
334
emlxs_auth_key_t auth_key;
usr/src/uts/common/sys/fibre-channel/fca/emlxs/emlxs_fc.h
2111
emlxs_auth_key_t auth_key; /* Default auth_key. */