#ifndef cp_sta_data_inc_sta_own_data_h #define cp_sta_data_inc_sta_own_data_h /* Cesar project {{{ * * Copyright (C) 2008 Spidcom * * <<>> * * }}} */ /** * \file cp/sta/data/inc/sta_own_data.h * \brief Station own data. * \ingroup cp_sta_data * */ #include "cp/defs.h" #include "cp/sta/mgr/sta_own_data.h" /** * Station own data. */ struct cp_sta_own_data_private_t { /** Public data. */ cp_sta_own_data_t public; /** * station's TEI. */ cp_tei_t tei; /** * Station's Mac address. */ mac_t mac_addr; /** * Network Password, use by the station to crypt MMEs. */ char npw [CP_NPW_MAX_SIZE + 1]; /** * AVLN's NMK. */ cp_key_t nmk; /** * Device password. */ char dpw [CP_DPW_MAX_SIZE + 1]; /** * Indicate if the station was CCo during the last use. */ bool was_cco; /** * Indicate if the station is CCo. */ bool is_cco; /** * Security level. It can be changed by a specific message or by the * HLE. See section 7.10.3.1.3 and section 13.3 */ cp_security_level_t security_level; /** * The PCO Glid. */ u8 pco_glid; /** * Indicate if the station is authenticated or not. */ bool authenticated; /** * The Station NID. */ cp_nid_t nid; /** * The station SNID. */ cp_snid_t snid; /** * The current TEK. */ cp_key_t tek; /** * The station's DAK. */ cp_key_t dak; /** * Simple connect procedure status. */ bool sc; }; #endif /* cp_sta_data_inc_sta_own_data_h */