struct iscsi_tgt_chap_data

Overview

Security related data. More…

#include <iscsi_initiator.h>

struct iscsi_tgt_chap_data {
    // fields

    char chap[ISCSI_AUTH_METHOD_LENGTH];
    enc_fmt_e enc_fmt;
    int challenge_length;
    char peer_name[ISCSI_SECURITY_VALUE_LENGTH];
    char peer_secret[ISCSI_SECURITY_VALUE_LENGTH];
    char local_name[ISCSI_SECURITY_VALUE_LENGTH];
    char local_secret[ISCSI_SECURITY_VALUE_LENGTH];
    te_bool need_target_auth;
};

Detailed Documentation

Security related data. This structure is per target structure. The current supported security protocol is CHAP.

Fields

char chap[ISCSI_AUTH_METHOD_LENGTH]

AuthMethod: (None|CHAP|CHAP,None)

enc_fmt_e enc_fmt

Encoding of challenge and response

int challenge_length

Length of the challenge

char peer_name[ISCSI_SECURITY_VALUE_LENGTH]

Peer Name (pn in UNH notation)

char peer_secret[ISCSI_SECURITY_VALUE_LENGTH]

Peer Secret (px in UNH notation)

char local_name[ISCSI_SECURITY_VALUE_LENGTH]

Local Name (ln in UNH notation)

char local_secret[ISCSI_SECURITY_VALUE_LENGTH]

Local Secret (lx in UNH Notation

te_bool need_target_auth

If TRUE, then Target authentication is required during the Security Phase