Sponsor:

Your company here, and a link to your site. Click to find out more.

iscsi_session_password_get - Man Page

Retrieve authentication password of specified session.

Synopsis

const char * iscsi_session_password_get (struct iscsi_session *se);

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:

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.

Info

January 2024 API Manual