DOKK / manpages / debian 11 / libopeniscsiusr-dev / iscsi_session_password_in_get.3.en
iscsi_session_password_in_get(3) iSCSI Userspace API - libopeniscsiusr Manual iscsi_session_password_in_get(3)

iscsi_session_password_in_get - Retrieve authentication password of specified session.

const char * iscsi_session_password_in_get (struct iscsi_session *se);

Pointer of 'struct iscsi_session'. If this pointer is NULL, your program will be terminated by assert.

Retrieve the inbound authentication password of specified iSCSI session. Currently open-iscsi only support CHAP authentication method. The inbound authentication here means the iSCSI initiator authenticates the iSCSI target using CHAP. It's controlled this setting in iscsid.conf:

const char *. Empty string if not using inbound CHAP authentication or failed to read authentication information. No need to free this memory, the resources will get freed by iscsi_session_free or iscsi_sessions_free.

iscsi_session_password_in_get May 2021