1/* 2 * IEEE Std 802.1X-2010 Controlled Port of PAE state machine - CP state machine 3 * Copyright (c) 2013, Qualcomm Atheros, Inc. 4 * 5 * This software may be distributed under the terms of the BSD license. 6 * See README for more details. 7 */ 8 9#ifndef IEEE802_1X_CP_H 10#define IEEE802_1X_CP_H 11 12#include "common/defs.h" 13#include "common/ieee802_1x_defs.h" 14 15struct ieee802_1x_cp_sm; 16struct ieee802_1x_kay; 17struct ieee802_1x_mka_ki; 18 19struct ieee802_1x_cp_sm * ieee802_1x_cp_sm_init(struct ieee802_1x_kay *kay); 20void ieee802_1x_cp_sm_deinit(struct ieee802_1x_cp_sm *sm); 21void ieee802_1x_cp_sm_step(void *cp_ctx); 22void ieee802_1x_cp_connect_pending(void *cp_ctx); 23void ieee802_1x_cp_connect_unauthenticated(void *cp_ctx); 24void ieee802_1x_cp_connect_authenticated(void *cp_ctx); 25void ieee802_1x_cp_connect_secure(void *cp_ctx); 26void ieee802_1x_cp_signal_chgdserver(void *cp_ctx); 27void ieee802_1x_cp_set_electedself(void *cp_ctx, Boolean status); 28void ieee802_1x_cp_set_authorizationdata(void *cp_ctx, u8 *pdata, int len); 29void ieee802_1x_cp_set_ciphersuite(void *cp_ctx, u64 cs); 30void ieee802_1x_cp_set_offset(void *cp_ctx, enum confidentiality_offset offset); 31void ieee802_1x_cp_signal_newsak(void *cp_ctx); 32void ieee802_1x_cp_set_distributedki(void *cp_ctx, 33 const struct ieee802_1x_mka_ki *dki); 34void ieee802_1x_cp_set_distributedan(void *cp_ctx, u8 an); 35void ieee802_1x_cp_set_usingreceivesas(void *cp_ctx, Boolean status); 36void ieee802_1x_cp_set_allreceiving(void *cp_ctx, Boolean status); 37void ieee802_1x_cp_set_servertransmitting(void *cp_ctx, Boolean status); 38void ieee802_1x_cp_set_usingtransmitas(void *cp_ctx, Boolean status); 39 40#endif /* IEEE802_1X_CP_H */ 41