Home
last modified time | relevance | path

Searched refs:chap_p (Results 1 – 2 of 2) sorted by relevance

/titanic_41/usr/src/cmd/iscsiadm/
H A Dsun_ima.c538 iscsi_chap_props_t chap_p; in SUN_IMA_SetTargetAuthParams() local
549 (void) memset(&chap_p, 0, sizeof (iscsi_chap_props_t)); in SUN_IMA_SetTargetAuthParams()
550 chap_p.c_vers = ISCSI_INTERFACE_VERSION; in SUN_IMA_SetTargetAuthParams()
551 chap_p.c_oid = (uint32_t)targetOid.objectSequenceNumber; in SUN_IMA_SetTargetAuthParams()
553 chap_p.c_user_len = in SUN_IMA_SetTargetAuthParams()
555 (void) memcpy(chap_p.c_user, in SUN_IMA_SetTargetAuthParams()
556 pParms->chapParms.name, chap_p.c_user_len); in SUN_IMA_SetTargetAuthParams()
558 chap_p.c_secret_len = in SUN_IMA_SetTargetAuthParams()
560 (void) memcpy(chap_p.c_secret, in SUN_IMA_SetTargetAuthParams()
562 chap_p.c_secret_len); in SUN_IMA_SetTargetAuthParams()
[all …]
/titanic_41/usr/src/lib/libsun_ima/common/
H A Dima.c2195 iscsi_chap_props_t chap_p; in IMA_GetInitiatorAuthParms() local
2203 (void) memset(&chap_p, 0, sizeof (iscsi_chap_props_t)); in IMA_GetInitiatorAuthParms()
2204 chap_p.c_vers = ISCSI_INTERFACE_VERSION; in IMA_GetInitiatorAuthParms()
2205 chap_p.c_oid = (uint32_t)lhbaOid.objectSequenceNumber; in IMA_GetInitiatorAuthParms()
2208 if (ioctl(fd, ISCSI_CHAP_GET, &chap_p) != 0) { in IMA_GetInitiatorAuthParms()
2218 (void) memcpy(pParms->chapParms.name, chap_p.c_user, in IMA_GetInitiatorAuthParms()
2219 chap_p.c_user_len); in IMA_GetInitiatorAuthParms()
2220 pParms->chapParms.nameLength = chap_p.c_user_len; in IMA_GetInitiatorAuthParms()
2221 (void) memcpy(pParms->chapParms.challengeSecret, chap_p.c_secret, in IMA_GetInitiatorAuthParms()
2222 chap_p.c_secret_len); in IMA_GetInitiatorAuthParms()
[all …]