logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

iscsi_session_password_get - Retrieve authentication password of specified session.

Arguments

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

Description

Retrieve the authentication password of specified iSCSI session. Currently open-iscsi only support CHAP authentication method. It's controlled this setting in iscsid.conf:

Name

iscsi_session_password_get - Retrieve authentication password of specified session.

Return

const char *. Empty string if not using 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. July 2025 iscsi_session_password_get iscsi_session_password_get(3)

Synopsis

constchar*iscsi_session_password_get(structiscsi_session*se);

See Also