Searched refs:sm (Results 1 - 25 of 435) sorted by relevance

1234567891011>>

/freebsd-11-stable/contrib/wpa/src/pae/
H A Dieee802_1x_cp.c95 static int changed_cipher(struct ieee802_1x_cp_sm *sm) argument
97 return sm->confidentiality_offset != sm->cipher_offset ||
98 sm->current_cipher_suite != sm->cipher_suite;
102 static int changed_connect(struct ieee802_1x_cp_sm *sm) argument
104 return sm->connect != SECURE || sm->chgd_server || changed_cipher(sm);
112 sm
437 struct ieee802_1x_cp_sm *sm; local
490 ieee802_1x_cp_step_run(struct ieee802_1x_cp_sm *sm) argument
506 struct ieee802_1x_cp_sm *sm = eloop_ctx; local
514 ieee802_1x_cp_sm_deinit(struct ieee802_1x_cp_sm *sm) argument
534 struct ieee802_1x_cp_sm *sm = cp_ctx; local
545 struct ieee802_1x_cp_sm *sm = (struct ieee802_1x_cp_sm *)cp_ctx; local
556 struct ieee802_1x_cp_sm *sm = cp_ctx; local
567 struct ieee802_1x_cp_sm *sm = cp_ctx; local
578 struct ieee802_1x_cp_sm *sm = cp_ctx; local
589 struct ieee802_1x_cp_sm *sm = cp_ctx; local
599 struct ieee802_1x_cp_sm *sm = cp_ctx; local
609 struct ieee802_1x_cp_sm *sm = cp_ctx; local
619 struct ieee802_1x_cp_sm *sm = cp_ctx; local
630 struct ieee802_1x_cp_sm *sm = cp_ctx; local
640 struct ieee802_1x_cp_sm *sm = cp_ctx; local
650 struct ieee802_1x_cp_sm *sm = cp_ctx; local
660 struct ieee802_1x_cp_sm *sm = cp_ctx; local
670 struct ieee802_1x_cp_sm *sm = cp_ctx; local
680 struct ieee802_1x_cp_sm *sm = cp_ctx; local
699 struct ieee802_1x_cp_sm *sm = cp_ctx; local
708 struct ieee802_1x_cp_sm *sm = eloop_ctx; local
717 struct ieee802_1x_cp_sm *sm = eloop_ctx; local
[all...]
/freebsd-11-stable/contrib/sendmail/src/
H A Dversion.c14 #include <sm/gen.h>
/freebsd-11-stable/contrib/wpa/src/eap_server/
H A Deap_server.c30 static int eap_sm_calculateTimeout(struct eap_sm *sm, int retransCount,
33 static void eap_sm_parseEapResp(struct eap_sm *sm, const struct wpabuf *resp);
35 static struct wpabuf * eap_sm_buildSuccess(struct eap_sm *sm, u8 id);
36 static struct wpabuf * eap_sm_buildFailure(struct eap_sm *sm, u8 id);
37 static int eap_sm_nextId(struct eap_sm *sm, int id);
38 static void eap_sm_Policy_update(struct eap_sm *sm, const u8 *nak_list,
40 static EapType eap_sm_Policy_getNextMethod(struct eap_sm *sm, int *vendor);
41 static int eap_sm_Policy_getDecision(struct eap_sm *sm);
42 static Boolean eap_sm_Policy_doPickUp(struct eap_sm *sm, EapType method);
45 static int eap_get_erp_send_reauth_start(struct eap_sm *sm) argument
53 eap_get_erp_domain(struct eap_sm *sm) argument
63 eap_erp_get_key(struct eap_sm *sm, const char *keyname) argument
72 eap_erp_add_key(struct eap_sm *sm, struct eap_server_erp_key *erp) argument
82 eap_sm_buildInitiateReauthStart(struct eap_sm *sm, u8 id) argument
159 eap_user_get(struct eap_sm *sm, const u8 *identity, size_t identity_len, int phase2) argument
188 eap_log_msg(struct eap_sm *sm, const char *fmt, ...) argument
412 eap_server_erp_init(struct eap_sm *sm) argument
696 erp_send_finish_reauth(struct eap_sm *sm, struct eap_server_erp_key *erp, u8 id, u8 flags, u16 seq, const char *nai) argument
1412 eap_sm_calculateTimeout(struct eap_sm *sm, int retransCount, int eapSRTT, int eapRTTVAR, int methodTimeout) argument
1470 eap_sm_parseEapResp(struct eap_sm *sm, const struct wpabuf *resp) argument
1543 eap_sm_buildSuccess(struct eap_sm *sm, u8 id) argument
1561 eap_sm_buildFailure(struct eap_sm *sm, u8 id) argument
1579 eap_sm_nextId(struct eap_sm *sm, int id) argument
1601 eap_sm_process_nak(struct eap_sm *sm, const u8 *nak_list, size_t len) argument
1655 eap_sm_Policy_update(struct eap_sm *sm, const u8 *nak_list, size_t len) argument
1672 eap_sm_Policy_getNextMethod(struct eap_sm *sm, int *vendor) argument
1704 eap_sm_Policy_getDecision(struct eap_sm *sm) argument
1786 eap_sm_Policy_doPickUp(struct eap_sm *sm, EapType method) argument
1801 eap_server_sm_step(struct eap_sm *sm) argument
1839 struct eap_sm *sm; local
1910 eap_server_sm_deinit(struct eap_sm *sm) argument
1944 eap_sm_notify_cached(struct eap_sm *sm) argument
1959 eap_sm_pending_cb(struct eap_sm *sm) argument
1974 eap_sm_method_pending(struct eap_sm *sm) argument
1988 eap_get_identity(struct eap_sm *sm, size_t *len) argument
2000 eap_get_serial_num(struct eap_sm *sm) argument
2011 eap_get_method(struct eap_sm *sm) argument
2024 eap_get_imsi(struct eap_sm *sm) argument
2032 eap_erp_update_identity(struct eap_sm *sm, const u8 *eap, size_t len) argument
2075 eap_get_interface(struct eap_sm *sm) argument
2089 eap_server_clear_identity(struct eap_sm *sm) argument
2097 eap_server_mschap_rx_callback(struct eap_sm *sm, const char *source, const u8 *username, size_t username_len, const u8 *challenge, const u8 *response) argument
[all...]
/freebsd-11-stable/crypto/openssl/crypto/store/
H A Dstr_meth.c90 int STORE_method_set_initialise_function(STORE_METHOD *sm, argument
93 sm->init = init_f;
97 int STORE_method_set_cleanup_function(STORE_METHOD *sm, argument
100 sm->clean = clean_f;
104 int STORE_method_set_generate_function(STORE_METHOD *sm, argument
108 sm->generate_object = generate_f;
112 int STORE_method_set_get_function(STORE_METHOD *sm, argument
115 sm->get_object = get_f;
119 int STORE_method_set_store_function(STORE_METHOD *sm, argument
122 sm
126 STORE_method_set_modify_function(STORE_METHOD *sm, STORE_MODIFY_OBJECT_FUNC_PTR modify_f) argument
133 STORE_method_set_revoke_function(STORE_METHOD *sm, STORE_HANDLE_OBJECT_FUNC_PTR revoke_f) argument
140 STORE_method_set_delete_function(STORE_METHOD *sm, STORE_HANDLE_OBJECT_FUNC_PTR delete_f) argument
147 STORE_method_set_list_start_function(STORE_METHOD *sm, STORE_START_OBJECT_FUNC_PTR list_start_f) argument
155 STORE_method_set_list_next_function(STORE_METHOD *sm, STORE_NEXT_OBJECT_FUNC_PTR list_next_f) argument
163 STORE_method_set_list_end_function(STORE_METHOD *sm, STORE_END_OBJECT_FUNC_PTR list_end_f) argument
170 STORE_method_set_update_store_function(STORE_METHOD *sm, STORE_GENERIC_FUNC_PTR update_f) argument
177 STORE_method_set_lock_store_function(STORE_METHOD *sm, STORE_GENERIC_FUNC_PTR lock_f) argument
184 STORE_method_set_unlock_store_function(STORE_METHOD *sm, STORE_GENERIC_FUNC_PTR unlock_f) argument
191 STORE_method_set_ctrl_function(STORE_METHOD *sm, STORE_CTRL_FUNC_PTR ctrl_f) argument
198 STORE_method_get_initialise_function(STORE_METHOD *sm) argument
204 STORE_method_get_cleanup_function(STORE_METHOD *sm) argument
209 STORE_method_get_generate_function(STORE_METHOD *sm) argument
215 STORE_method_get_get_function(STORE_METHOD *sm) argument
220 STORE_method_get_store_function(STORE_METHOD *sm) argument
225 STORE_method_get_modify_function(STORE_METHOD *sm) argument
231 STORE_method_get_revoke_function(STORE_METHOD *sm) argument
237 STORE_method_get_delete_function(STORE_METHOD *sm) argument
243 STORE_method_get_list_start_function(STORE_METHOD *sm) argument
249 STORE_method_get_list_next_function(STORE_METHOD *sm) argument
255 STORE_method_get_list_end_function(STORE_METHOD *sm) argument
260 STORE_method_get_update_store_function(STORE_METHOD *sm) argument
266 STORE_method_get_lock_store_function(STORE_METHOD *sm) argument
271 STORE_method_get_unlock_store_function(STORE_METHOD *sm) argument
277 STORE_method_get_ctrl_function(STORE_METHOD *sm) argument
[all...]
/freebsd-11-stable/contrib/wpa/src/eapol_supp/
H A Deapol_supp_sm.c152 static void eapol_sm_txLogoff(struct eapol_sm *sm);
153 static void eapol_sm_txStart(struct eapol_sm *sm);
154 static void eapol_sm_processKey(struct eapol_sm *sm);
155 static void eapol_sm_getSuppRsp(struct eapol_sm *sm);
156 static void eapol_sm_txSuppRsp(struct eapol_sm *sm);
157 static void eapol_sm_abortSupp(struct eapol_sm *sm);
158 static void eapol_sm_abort_cached(struct eapol_sm *sm);
160 static void eapol_sm_set_port_authorized(struct eapol_sm *sm);
161 static void eapol_sm_set_port_unauthorized(struct eapol_sm *sm);
168 struct eapol_sm *sm local
203 eapol_enable_timer_tick(struct eapol_sm *sm) argument
650 eapol_sm_txLogoff(struct eapol_sm *sm) argument
660 eapol_sm_txStart(struct eapol_sm *sm) argument
679 eapol_sm_processKey(struct eapol_sm *sm) argument
858 eapol_sm_getSuppRsp(struct eapol_sm *sm) argument
868 eapol_sm_txSuppRsp(struct eapol_sm *sm) argument
910 eapol_sm_abortSupp(struct eapol_sm *sm) argument
931 eapol_sm_set_port_authorized(struct eapol_sm *sm) argument
943 eapol_sm_set_port_unauthorized(struct eapol_sm *sm) argument
963 eapol_sm_step(struct eapol_sm *sm) argument
1097 eapol_sm_configure(struct eapol_sm *sm, int heldPeriod, int authPeriod, int startPeriod, int maxStart) argument
1118 eapol_sm_get_method_name(struct eapol_sm *sm) argument
1142 eapol_sm_get_status(struct eapol_sm *sm, char *buf, size_t buflen, int verbose) argument
1201 eapol_sm_get_mib(struct eapol_sm *sm, char *buf, size_t buflen) argument
1271 eapol_sm_rx_eapol(struct eapol_sm *sm, const u8 *src, const u8 *buf, size_t len) argument
1427 eapol_sm_notify_tx_eapol_key(struct eapol_sm *sm) argument
1441 eapol_sm_notify_portEnabled(struct eapol_sm *sm, Boolean enabled) argument
1461 eapol_sm_notify_portValid(struct eapol_sm *sm, Boolean valid) argument
1483 eapol_sm_notify_eap_success(struct eapol_sm *sm, Boolean success) argument
1505 eapol_sm_notify_eap_fail(struct eapol_sm *sm, Boolean fail) argument
1529 eapol_sm_notify_config(struct eapol_sm *sm, struct eap_peer_config *config, const struct eapol_config *conf) argument
1575 eapol_sm_get_key(struct eapol_sm *sm, u8 *key, size_t len) argument
1629 eapol_sm_get_session_id(struct eapol_sm *sm, size_t *len) argument
1646 eapol_sm_notify_logoff(struct eapol_sm *sm, Boolean logoff) argument
1666 eapol_sm_notify_cached(struct eapol_sm *sm) argument
1683 eapol_sm_notify_pmkid_attempt(struct eapol_sm *sm) argument
1692 eapol_sm_abort_cached(struct eapol_sm *sm) argument
1720 eapol_sm_register_scard_ctx(struct eapol_sm *sm, void *ctx) argument
1736 eapol_sm_notify_portControl(struct eapol_sm *sm, PortControl portControl) argument
1754 eapol_sm_notify_ctrl_attached(struct eapol_sm *sm) argument
1769 eapol_sm_notify_ctrl_response(struct eapol_sm *sm) argument
1791 eapol_sm_request_reauth(struct eapol_sm *sm) argument
1809 eapol_sm_notify_lower_layer_success(struct eapol_sm *sm, int in_eapol_sm) argument
1823 eapol_sm_invalidate_cached_session(struct eapol_sm *sm) argument
1832 struct eapol_sm *sm = ctx; local
1839 struct eapol_sm *sm = ctx; local
1849 struct eapol_sm *sm = ctx; local
1881 struct eapol_sm *sm = ctx; local
1921 struct eapol_sm *sm = ctx; local
1935 struct eapol_sm *sm = ctx; local
1951 struct eapol_sm *sm = ctx; local
1962 struct eapol_sm *sm = ctx; local
1975 struct eapol_sm *sm = ctx; local
1992 struct eapol_sm *sm = ctx; local
2004 struct eapol_sm *sm = ctx; local
2013 struct eapol_sm *sm = ctx; local
2022 struct eapol_sm *sm = ctx; local
2033 struct eapol_sm *sm = ctx; local
2044 struct eapol_sm *sm = ctx; local
2055 struct eapol_sm *sm = ctx; local
2096 struct eapol_sm *sm; local
2155 eapol_sm_deinit(struct eapol_sm *sm) argument
2172 eapol_sm_set_ext_pw_ctx(struct eapol_sm *sm, struct ext_password_data *ext) argument
2180 eapol_sm_failed(struct eapol_sm *sm) argument
2191 struct eapol_sm *sm = ctx; local
2200 eapol_sm_erp_flush(struct eapol_sm *sm) argument
2207 eapol_sm_build_erp_reauth_start(struct eapol_sm *sm) argument
2219 eapol_sm_process_erp_finish(struct eapol_sm *sm, const u8 *buf, size_t len) argument
2230 eapol_sm_update_erp_next_seq_num(struct eapol_sm *sm, u16 next_seq_num) argument
2242 eapol_sm_get_erp_info(struct eapol_sm *sm, struct eap_peer_config *config, const u8 **username, size_t *username_len, const u8 **realm, size_t *realm_len, u16 *erp_next_seq_num, const u8 **rrk, size_t *rrk_len) argument
[all...]
H A Deapol_supp_sm.h309 void eapol_sm_deinit(struct eapol_sm *sm);
310 void eapol_sm_step(struct eapol_sm *sm);
311 int eapol_sm_get_status(struct eapol_sm *sm, char *buf, size_t buflen,
313 int eapol_sm_get_mib(struct eapol_sm *sm, char *buf, size_t buflen);
314 void eapol_sm_configure(struct eapol_sm *sm, int heldPeriod, int authPeriod,
316 int eapol_sm_rx_eapol(struct eapol_sm *sm, const u8 *src, const u8 *buf,
318 void eapol_sm_notify_tx_eapol_key(struct eapol_sm *sm);
319 void eapol_sm_notify_portEnabled(struct eapol_sm *sm, Boolean enabled);
320 void eapol_sm_notify_portValid(struct eapol_sm *sm, Boolean valid);
321 void eapol_sm_notify_eap_success(struct eapol_sm *sm, Boolea
361 eapol_sm_deinit(struct eapol_sm *sm) argument
364 eapol_sm_step(struct eapol_sm *sm) argument
367 eapol_sm_get_status(struct eapol_sm *sm, char *buf, size_t buflen, int verbose) argument
372 eapol_sm_get_mib(struct eapol_sm *sm, char *buf, size_t buflen) argument
377 eapol_sm_configure(struct eapol_sm *sm, int heldPeriod, int authPeriod, int startPeriod, int maxStart) argument
382 eapol_sm_rx_eapol(struct eapol_sm *sm, const u8 *src, const u8 *buf, size_t len) argument
387 eapol_sm_notify_tx_eapol_key(struct eapol_sm *sm) argument
390 eapol_sm_notify_portEnabled(struct eapol_sm *sm, Boolean enabled) argument
394 eapol_sm_notify_portValid(struct eapol_sm *sm, Boolean valid) argument
398 eapol_sm_notify_eap_success(struct eapol_sm *sm, Boolean success) argument
402 eapol_sm_notify_eap_fail(struct eapol_sm *sm, Boolean fail) argument
405 eapol_sm_notify_config(struct eapol_sm *sm, struct eap_peer_config *config, struct eapol_config *conf) argument
410 eapol_sm_get_key(struct eapol_sm *sm, u8 *key, size_t len) argument
415 eapol_sm_get_session_id(struct eapol_sm *sm, size_t *len) argument
419 eapol_sm_notify_logoff(struct eapol_sm *sm, Boolean logoff) argument
422 eapol_sm_notify_cached(struct eapol_sm *sm) argument
425 eapol_sm_notify_pmkid_attempt(struct eapol_sm *sm) argument
429 eapol_sm_notify_portControl(struct eapol_sm *sm, PortControl portControl) argument
433 eapol_sm_notify_ctrl_attached(struct eapol_sm *sm) argument
436 eapol_sm_notify_ctrl_response(struct eapol_sm *sm) argument
439 eapol_sm_request_reauth(struct eapol_sm *sm) argument
442 eapol_sm_notify_lower_layer_success(struct eapol_sm *sm, int in_eapol_sm) argument
446 eapol_sm_invalidate_cached_session(struct eapol_sm *sm) argument
449 eapol_sm_get_method_name(struct eapol_sm *sm) argument
453 eapol_sm_set_ext_pw_ctx(struct eapol_sm *sm, struct ext_password_data *ext) argument
457 eapol_sm_failed(struct eapol_sm *sm) argument
461 eapol_sm_erp_flush(struct eapol_sm *sm) argument
465 eapol_sm_build_erp_reauth_start(struct eapol_sm *sm) argument
469 eapol_sm_process_erp_finish(struct eapol_sm *sm, const u8 *buf, size_t len) argument
473 eapol_sm_update_erp_next_seq_num(struct eapol_sm *sm, u16 next_seq_num) argument
479 eapol_sm_get_erp_info(struct eapol_sm *sm, struct eap_peer_config *config, const u8 **username, size_t *username_len, const u8 **realm, size_t *realm_len, u16 *erp_next_seq_num, const u8 **rrk, size_t *rrk_len) argument
[all...]
/freebsd-11-stable/stand/userboot/userboot/
H A Dbiossmap.c47 struct bios_smap smap[3], *sm; local
51 sm = &smap[0];
53 sm->base = 0; /* base memory */
54 sm->length = 640 * 1024;
55 sm->type = SMAP_TYPE_MEMORY;
56 sm++;
58 sm->base = 0x100000; /* extended memory */
59 sm->length = lowmem - 0x100000;
60 sm->type = SMAP_TYPE_MEMORY;
61 sm
[all...]
/freebsd-11-stable/contrib/wpa/src/eapol_auth/
H A Deapol_auth_sm.c23 #define STATE_MACHINE_ADDR sm->addr
30 sm->eapol->cb.set_port_authorized(sm->eapol->conf.ctx, sm->sta, 1)
32 sm->eapol->cb.set_port_authorized(sm->eapol->conf.ctx, sm->sta, 0)
35 #define txCannedFail() eapol_auth_tx_canned_eap(sm, 0)
36 #define txCannedSuccess() eapol_auth_tx_canned_eap(sm, 1)
37 #define txReq() eapol_auth_tx_req(sm)
85 eapol_auth_tx_canned_eap(struct eapol_state_machine *sm, int success) argument
106 eapol_auth_tx_req(struct eapol_state_machine *sm) argument
777 struct eapol_state_machine *sm; local
885 eapol_auth_free(struct eapol_state_machine *sm) argument
908 eapol_sm_step_run(struct eapol_state_machine *sm) argument
989 struct eapol_state_machine *sm = eloop_ctx; local
1001 eapol_auth_step(struct eapol_state_machine *sm) argument
1013 eapol_auth_initialize(struct eapol_state_machine *sm) argument
1034 struct eapol_state_machine *sm = ctx; local
1047 struct eapol_state_machine *sm = ctx; local
1055 struct eapol_state_machine *sm = ctx; local
1062 struct eapol_state_machine *sm = ctx; local
1070 struct eapol_state_machine *sm = ctx; local
1077 struct eapol_state_machine *sm = ctx; local
1094 eapol_auth_eap_pending_cb(struct eapol_state_machine *sm, void *ctx) argument
1106 eapol_auth_reauthenticate(struct eapol_state_machine *sm) argument
1115 eapol_auth_set_conf(struct eapol_state_machine *sm, const char *param, const char *value) argument
[all...]
H A Deapol_auth_dump.c121 int eapol_auth_dump_state(struct eapol_state_machine *sm, char *buf, argument
132 sm->aWhile, sm->quietWhile, sm->reAuthWhen);
158 _SB(sm->authAbort),
159 _SB(sm->authFail),
160 port_state_txt(sm->authPortStatus),
161 _SB(sm->authStart),
162 _SB(sm->authTimeout),
163 _SB(sm
[all...]
/freebsd-11-stable/contrib/wpa/src/rsn_supp/
H A Dwpa.c40 * @sm: Pointer to WPA state machine data from wpa_sm_init()
50 int wpa_eapol_key_send(struct wpa_sm *sm, struct wpa_ptk *ptk, argument
55 size_t mic_len = wpa_mic_len(sm->key_mgmt, sm->pmk_len);
59 MAC2STR(dest), ver, (int) mic_len, sm->key_mgmt);
60 if (is_zero_ether_addr(dest) && is_zero_ether_addr(sm->bssid)) {
65 if (wpa_sm_get_bssid(sm, sm->bssid) < 0) {
66 wpa_dbg(sm->ctx->msg_ctx, MSG_DEBUG,
70 dest = sm
179 wpa_sm_key_request(struct wpa_sm *sm, int error, int pairwise) argument
243 wpa_supplicant_key_mgmt_set_pmk(struct wpa_sm *sm) argument
261 wpa_supplicant_get_pmk(struct wpa_sm *sm, const unsigned char *src_addr, const u8 *pmkid) argument
469 wpa_supplicant_send_2_of_4(struct wpa_sm *sm, const unsigned char *dst, const struct wpa_eapol_key *key, int ver, const u8 *nonce, const u8 *wpa_ie, size_t wpa_ie_len, struct wpa_ptk *ptk) argument
560 wpa_derive_ptk(struct wpa_sm *sm, const unsigned char *src_addr, const struct wpa_eapol_key *key, struct wpa_ptk *ptk) argument
585 wpa_supplicant_process_1_of_4(struct wpa_sm *sm, const unsigned char *src_addr, const struct wpa_eapol_key *key, u16 ver, const u8 *key_data, size_t key_data_len) argument
722 struct wpa_sm *sm = eloop_ctx; local
727 wpa_supplicant_key_neg_complete(struct wpa_sm *sm, const u8 *addr, int secure) argument
777 struct wpa_sm *sm = eloop_ctx; local
783 wpa_supplicant_install_ptk(struct wpa_sm *sm, const struct wpa_eapol_key *key) argument
852 wpa_supplicant_check_group_cipher(struct wpa_sm *sm, int group_cipher, int keylen, int maxkeylen, int *key_rsc_len, enum wpa_alg *alg) argument
888 wpa_supplicant_install_gtk(struct wpa_sm *sm, const struct wpa_gtk_data *gd, const u8 *key_rsc, int wnm_sleep) argument
954 wpa_supplicant_gtk_tx_bit_workaround(const struct wpa_sm *sm, int tx) argument
972 wpa_supplicant_rsc_relaxation(const struct wpa_sm *sm, const u8 *rsc) argument
1002 wpa_supplicant_pairwise_gtk(struct wpa_sm *sm, const struct wpa_eapol_key *key, const u8 *gtk, size_t gtk_len, int key_info) argument
1055 wpa_supplicant_install_igtk(struct wpa_sm *sm, const struct wpa_igtk_kde *igtk, int wnm_sleep) argument
1124 ieee80211w_set_keys(struct wpa_sm *sm, struct wpa_eapol_ie_parse *ie) argument
1151 wpa_report_ie_mismatch(struct wpa_sm *sm, const char *reason, const u8 *src_addr, const u8 *wpa_ie, size_t wpa_ie_len, const u8 *rsn_ie, size_t rsn_ie_len) argument
1191 ft_validate_mdie(struct wpa_sm *sm, const unsigned char *src_addr, struct wpa_eapol_ie_parse *ie, const u8 *assoc_resp_mdie) argument
1222 ft_validate_ftie(struct wpa_sm *sm, const unsigned char *src_addr, struct wpa_eapol_ie_parse *ie, const u8 *assoc_resp_ftie) argument
1250 ft_validate_rsnie(struct wpa_sm *sm, const unsigned char *src_addr, struct wpa_eapol_ie_parse *ie) argument
1286 wpa_supplicant_validate_ie_ft(struct wpa_sm *sm, const unsigned char *src_addr, struct wpa_eapol_ie_parse *ie) argument
1321 wpa_supplicant_validate_ie(struct wpa_sm *sm, const unsigned char *src_addr, struct wpa_eapol_ie_parse *ie) argument
1394 wpa_supplicant_send_4_of_4(struct wpa_sm *sm, const unsigned char *dst, const struct wpa_eapol_key *key, u16 ver, u16 key_info, struct wpa_ptk *ptk) argument
1436 wpa_supplicant_process_3_of_4(struct wpa_sm *sm, const struct wpa_eapol_key *key, u16 ver, const u8 *key_data, size_t key_data_len) argument
1599 wpa_supplicant_process_1_of_2_rsn(struct wpa_sm *sm, const u8 *keydata, size_t keydatalen, u16 key_info, struct wpa_gtk_data *gd) argument
1670 wpa_supplicant_process_1_of_2_wpa(struct wpa_sm *sm, const struct wpa_eapol_key *key, const u8 *key_data, size_t key_data_len, u16 key_info, u16 ver, struct wpa_gtk_data *gd) argument
1757 wpa_supplicant_send_2_of_2(struct wpa_sm *sm, const struct wpa_eapol_key *key, int ver, u16 key_info) argument
1824 wpa_supplicant_process_1_of_2(struct wpa_sm *sm, const unsigned char *src_addr, const struct wpa_eapol_key *key, const u8 *key_data, size_t key_data_len, u16 ver) argument
1895 wpa_supplicant_verify_eapol_key_mic(struct wpa_sm *sm, struct wpa_eapol_key *key, u16 ver, const u8 *buf, size_t len) argument
1976 wpa_supplicant_decrypt_key_data(struct wpa_sm *sm, struct wpa_eapol_key *key, size_t mic_len, u16 ver, u8 *key_data, size_t *key_data_len) argument
2069 wpa_sm_aborted_cached(struct wpa_sm *sm) argument
2079 wpa_eapol_key_dump(struct wpa_sm *sm, const struct wpa_eapol_key *key, unsigned int key_data_len, const u8 *mic, unsigned int mic_len) argument
2117 wpa_supp_aead_decrypt(struct wpa_sm *sm, u8 *buf, size_t buf_len, size_t *key_data_len) argument
2202 wpa_sm_rx_eapol(struct wpa_sm *sm, const u8 *src_addr, const u8 *buf, size_t len) argument
2465 wpa_key_mgmt_suite(struct wpa_sm *sm) argument
2518 wpa_sm_get_mib(struct wpa_sm *sm, char *buf, size_t buflen) argument
2594 struct wpa_sm *sm = ctx; local
2643 struct wpa_sm *sm; local
2672 wpa_sm_deinit(struct wpa_sm *sm) argument
2714 wpa_sm_notify_assoc(struct wpa_sm *sm, const u8 *bssid) argument
2794 wpa_sm_notify_disassoc(struct wpa_sm *sm) argument
2831 wpa_sm_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len, const u8 *pmkid, const u8 *bssid) argument
2863 wpa_sm_set_pmk_from_pmksa(struct wpa_sm *sm) argument
2887 wpa_sm_set_fast_reauth(struct wpa_sm *sm, int fast_reauth) argument
2899 wpa_sm_set_scard_ctx(struct wpa_sm *sm, void *scard_ctx) argument
2918 wpa_sm_set_config(struct wpa_sm *sm, struct rsn_supp_config *config) argument
2965 wpa_sm_set_own_addr(struct wpa_sm *sm, const u8 *addr) argument
2978 wpa_sm_set_ifname(struct wpa_sm *sm, const char *ifname, const char *bridge_ifname) argument
2993 wpa_sm_set_eapol(struct wpa_sm *sm, struct eapol_sm *eapol) argument
3007 wpa_sm_set_param(struct wpa_sm *sm, enum wpa_sm_conf_params param, unsigned int value) argument
3080 wpa_sm_get_status(struct wpa_sm *sm, char *buf, size_t buflen, int verbose) argument
3119 wpa_sm_pmf_enabled(struct wpa_sm *sm) argument
3134 wpa_sm_ocv_enabled(struct wpa_sm *sm) argument
3154 wpa_sm_set_assoc_wpa_ie_default(struct wpa_sm *sm, u8 *wpa_ie, size_t *wpa_ie_len) argument
3213 wpa_sm_set_assoc_wpa_ie(struct wpa_sm *sm, const u8 *ie, size_t len) argument
3247 wpa_sm_set_ap_wpa_ie(struct wpa_sm *sm, const u8 *ie, size_t len) argument
3281 wpa_sm_set_ap_rsn_ie(struct wpa_sm *sm, const u8 *ie, size_t len) argument
3314 wpa_sm_parse_own_wpa_ie(struct wpa_sm *sm, struct wpa_ie_data *data) argument
3330 wpa_sm_pmksa_cache_list(struct wpa_sm *sm, char *buf, size_t len) argument
3336 wpa_sm_pmksa_cache_head(struct wpa_sm *sm) argument
3343 wpa_sm_pmksa_cache_add_entry(struct wpa_sm *sm, struct rsn_pmksa_cache_entry * entry) argument
3350 wpa_sm_pmksa_cache_add(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len, const u8 *pmkid, const u8 *bssid, const u8 *fils_cache_id) argument
3360 wpa_sm_pmksa_exists(struct wpa_sm *sm, const u8 *bssid, const void *network_ctx) argument
3367 wpa_sm_drop_sa(struct wpa_sm *sm) argument
3393 wpa_sm_has_ptk(struct wpa_sm *sm) argument
3401 wpa_sm_update_replay_ctr(struct wpa_sm *sm, const u8 *replay_ctr) argument
3407 wpa_sm_pmksa_cache_flush(struct wpa_sm *sm, void *network_ctx) argument
3414 wpa_wnmsleep_install_key(struct wpa_sm *sm, u8 subelem_id, u8 *buf) argument
3475 wpa_sm_get_p2p_ip_addr(struct wpa_sm *sm, u8 *buf) argument
3486 wpa_sm_set_rx_replay_ctr(struct wpa_sm *sm, const u8 *rx_replay_counter) argument
3498 wpa_sm_set_ptk_kck_kek(struct wpa_sm *sm, const u8 *ptk_kck, size_t ptk_kck_len, const u8 *ptk_kek, size_t ptk_kek_len) argument
3518 wpa_sm_set_test_assoc_ie(struct wpa_sm *sm, struct wpabuf *buf) argument
3525 wpa_sm_get_anonce(struct wpa_sm *sm) argument
3533 wpa_sm_get_key_mgmt(struct wpa_sm *sm) argument
3541 fils_build_auth(struct wpa_sm *sm, int dh_group, const u8 *md) argument
3672 fils_process_auth(struct wpa_sm *sm, const u8 *bssid, const u8 *data, size_t len) argument
3969 fils_ft_build_assoc_req_rsne(struct wpa_sm *sm, struct wpabuf *buf) argument
4079 fils_build_assoc_req(struct wpa_sm *sm, const u8 **kek, size_t *kek_len, const u8 **snonce, const u8 **anonce, const struct wpabuf **hlp, unsigned int num_hlp) argument
4200 fils_process_hlp_resp(struct wpa_sm *sm, const u8 *resp, size_t len) argument
4216 fils_process_hlp_container(struct wpa_sm *sm, const u8 *pos, size_t len) argument
4265 fils_process_assoc_resp(struct wpa_sm *sm, const u8 *resp, size_t len) argument
4492 wpa_sm_set_reset_fils_completed(struct wpa_sm *sm, int set) argument
4501 wpa_fils_is_completed(struct wpa_sm *sm) argument
4513 owe_build_assoc_req(struct wpa_sm *sm, u16 group) argument
4558 owe_process_assoc_resp(struct wpa_sm *sm, const u8 *bssid, const u8 *resp_ies, size_t resp_ies_len) argument
4718 wpa_sm_set_fils_cache_id(struct wpa_sm *sm, const u8 *fils_cache_id) argument
4730 wpa_sm_set_dpp_z(struct wpa_sm *sm, const struct wpabuf *z) argument
[all...]
H A Dpreauth.h16 void pmksa_candidate_free(struct wpa_sm *sm);
17 int rsn_preauth_init(struct wpa_sm *sm, const u8 *dst,
19 void rsn_preauth_deinit(struct wpa_sm *sm);
20 int rsn_preauth_scan_results(struct wpa_sm *sm);
21 void rsn_preauth_scan_result(struct wpa_sm *sm, const u8 *bssid,
23 void pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid,
25 void rsn_preauth_candidate_process(struct wpa_sm *sm);
26 int rsn_preauth_get_status(struct wpa_sm *sm, char *buf, size_t buflen,
28 int rsn_preauth_in_progress(struct wpa_sm *sm);
32 static inline void pmksa_candidate_free(struct wpa_sm *sm) argument
36 rsn_preauth_candidate_process(struct wpa_sm *sm) argument
40 rsn_preauth_init(struct wpa_sm *sm, const u8 *dst, struct eap_peer_config *eap_conf) argument
46 rsn_preauth_deinit(struct wpa_sm *sm) argument
50 rsn_preauth_scan_results(struct wpa_sm *sm) argument
55 rsn_preauth_scan_result(struct wpa_sm *sm, const u8 *bssid, const u8 *ssid, const u8 *rsn) argument
60 pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid, int prio, int preauth) argument
66 rsn_preauth_get_status(struct wpa_sm *sm, char *buf, size_t buflen, int verbose) argument
72 rsn_preauth_in_progress(struct wpa_sm *sm) argument
[all...]
H A Dpreauth.c35 * @sm: Pointer to WPA state machine data from wpa_sm_init()
37 void pmksa_candidate_free(struct wpa_sm *sm) argument
41 if (sm == NULL)
44 dl_list_for_each_safe(entry, n, &sm->pmksa_candidates,
55 struct wpa_sm *sm = ctx; local
60 if (sm->preauth_eapol == NULL ||
61 is_zero_ether_addr(sm->preauth_bssid) ||
62 os_memcmp(sm->preauth_bssid, src_addr, ETH_ALEN) != 0) {
69 eapol_sm_rx_eapol(sm->preauth_eapol, src_addr, buf, len);
77 struct wpa_sm *sm local
121 struct wpa_sm *sm = eloop_ctx; local
133 struct wpa_sm *sm = ctx; local
170 rsn_preauth_init(struct wpa_sm *sm, const u8 *dst, struct eap_peer_config *eap_conf) argument
273 rsn_preauth_deinit(struct wpa_sm *sm) argument
300 rsn_preauth_candidate_process(struct wpa_sm *sm) argument
368 pmksa_candidate_add(struct wpa_sm *sm, const u8 *bssid, int prio, int preauth) argument
448 rsn_preauth_scan_results(struct wpa_sm *sm) argument
470 rsn_preauth_scan_result(struct wpa_sm *sm, const u8 *bssid, const u8 *ssid, const u8 *rsn) argument
510 rsn_preauth_get_status(struct wpa_sm *sm, char *buf, size_t buflen, int verbose) argument
537 rsn_preauth_in_progress(struct wpa_sm *sm) argument
[all...]
H A Dwpa_i.h179 static inline void wpa_sm_set_state(struct wpa_sm *sm, enum wpa_states state) argument
181 WPA_ASSERT(sm->ctx->set_state);
182 sm->ctx->set_state(sm->ctx->ctx, state);
185 static inline enum wpa_states wpa_sm_get_state(struct wpa_sm *sm) argument
187 WPA_ASSERT(sm->ctx->get_state);
188 return sm->ctx->get_state(sm->ctx->ctx);
191 static inline void wpa_sm_deauthenticate(struct wpa_sm *sm, u16 reason_code) argument
193 WPA_ASSERT(sm
197 wpa_sm_set_key(struct wpa_sm *sm, enum wpa_alg alg, const u8 *addr, int key_idx, int set_tx, const u8 *seq, size_t seq_len, const u8 *key, size_t key_len) argument
207 wpa_sm_get_network_ctx(struct wpa_sm *sm) argument
213 wpa_sm_get_bssid(struct wpa_sm *sm, u8 *bssid) argument
219 wpa_sm_ether_send(struct wpa_sm *sm, const u8 *dest, u16 proto, const u8 *buf, size_t len) argument
226 wpa_sm_get_beacon_ie(struct wpa_sm *sm) argument
232 wpa_sm_cancel_auth_timeout(struct wpa_sm *sm) argument
238 wpa_sm_alloc_eapol(struct wpa_sm *sm, u8 type, const void *data, u16 data_len, size_t *msg_len, void **data_pos) argument
247 wpa_sm_add_pmkid(struct wpa_sm *sm, void *network_ctx, const u8 *bssid, const u8 *pmkid, const u8 *cache_id, const u8 *pmk, size_t pmk_len) argument
257 wpa_sm_remove_pmkid(struct wpa_sm *sm, void *network_ctx, const u8 *bssid, const u8 *pmkid, const u8 *cache_id) argument
266 wpa_sm_mlme_setprotection(struct wpa_sm *sm, const u8 *addr, int protect_type, int key_type) argument
274 wpa_sm_update_ft_ies(struct wpa_sm *sm, const u8 *md, const u8 *ies, size_t ies_len) argument
282 wpa_sm_send_ft_action(struct wpa_sm *sm, u8 action, const u8 *target_ap, const u8 *ies, size_t ies_len) argument
292 wpa_sm_mark_authenticated(struct wpa_sm *sm, const u8 *target_ap) argument
300 wpa_sm_set_rekey_offload(struct wpa_sm *sm) argument
310 wpa_sm_tdls_get_capa(struct wpa_sm *sm, int *tdls_supported, int *tdls_ext_setup, int *tdls_chan_switch) argument
321 wpa_sm_send_tdls_mgmt(struct wpa_sm *sm, const u8 *dst, u8 action_code, u8 dialog_token, u16 status_code, u32 peer_capab, int initiator, const u8 *buf, size_t len) argument
335 wpa_sm_tdls_oper(struct wpa_sm *sm, int oper, const u8 *peer) argument
344 wpa_sm_tdls_peer_addset(struct wpa_sm *sm, const u8 *addr, int add, u16 aid, u16 capability, const u8 *supp_rates, size_t supp_rates_len, const struct ieee80211_ht_capabilities *ht_capab, const struct ieee80211_vht_capabilities *vht_capab, u8 qosinfo, int wmm, const u8 *ext_capab, size_t ext_capab_len, const u8 *supp_channels, size_t supp_channels_len, const u8 *supp_oper_classes, size_t supp_oper_classes_len) argument
368 wpa_sm_tdls_enable_channel_switch(struct wpa_sm *sm, const u8 *addr, u8 oper_class, const struct hostapd_freq_params *freq_params) argument
380 wpa_sm_tdls_disable_channel_switch(struct wpa_sm *sm, const u8 *addr) argument
388 wpa_sm_key_mgmt_set_pmk(struct wpa_sm *sm, const u8 *pmk, size_t pmk_len) argument
396 wpa_sm_fils_hlp_rx(struct wpa_sm *sm, const u8 *dst, const u8 *src, const u8 *pkt, size_t pkt_len) argument
404 wpa_sm_channel_info(struct wpa_sm *sm, struct wpa_channel_info *ci) argument
[all...]
H A Dwpa_ft.c25 int wpa_derive_ptk_ft(struct wpa_sm *sm, const unsigned char *src_addr, argument
30 int use_sha384 = wpa_key_mgmt_sha384(sm->key_mgmt);
34 if (sm->xxkey_len > 0) {
35 mpmk = sm->xxkey;
36 mpmk_len = sm->xxkey_len;
37 } else if (sm->cur_pmksa) {
38 mpmk = sm->cur_pmksa->pmk;
39 mpmk_len = sm->cur_pmksa->pmk_len;
46 sm->pmk_r0_len = use_sha384 ? SHA384_MAC_LEN : PMK_LEN;
47 if (wpa_derive_pmk_r0(mpmk, mpmk_len, sm
76 wpa_sm_set_ft_params(struct wpa_sm *sm, const u8 *ies, size_t ies_len) argument
161 wpa_ft_gen_req_ies(struct wpa_sm *sm, size_t *len, const u8 *anonce, const u8 *pmk_name, const u8 *kck, size_t kck_len, const u8 *target_ap, const u8 *ric_ies, size_t ric_ies_len, const u8 *ap_mdie) argument
398 wpa_ft_install_ptk(struct wpa_sm *sm, const u8 *bssid) argument
431 wpa_ft_prepare_auth_request(struct wpa_sm *sm, const u8 *mdie) argument
454 wpa_ft_add_mdie(struct wpa_sm *sm, u8 *buf, size_t buf_len, const u8 *ap_mdie) argument
479 wpa_sm_get_ft_md(struct wpa_sm *sm) argument
485 wpa_ft_process_response(struct wpa_sm *sm, const u8 *ies, size_t ies_len, int ft_action, const u8 *target_ap, const u8 *ric_ies, size_t ric_ies_len) argument
668 wpa_ft_is_completed(struct wpa_sm *sm) argument
680 wpa_reset_ft_completed(struct wpa_sm *sm) argument
687 wpa_ft_process_gtk_subelem(struct wpa_sm *sm, const u8 *gtk_elem, size_t gtk_elem_len) argument
771 wpa_ft_process_igtk_subelem(struct wpa_sm *sm, const u8 *igtk_elem, size_t igtk_elem_len) argument
841 wpa_ft_validate_reassoc_resp(struct wpa_sm *sm, const u8 *ies, size_t ies_len, const u8 *src_addr) argument
1054 wpa_ft_start_over_ds(struct wpa_sm *sm, const u8 *target_ap, const u8 *mdie) argument
[all...]
/freebsd-11-stable/contrib/ofed/opensm/opensm/
H A Dosm_sm_state_mgr.c67 void osm_report_sm_state(osm_sm_t * sm) argument
70 const char *state_str = osm_get_sm_mgr_state_str(sm->p_subn->sm_state);
72 osm_log_v2(sm->p_log, OSM_LOG_SYS, FILE_ID, "Entering %s state\n", state_str);
74 OSM_LOG_MSG_BOX(sm->p_log, OSM_LOG_VERBOSE, buf);
77 static boolean_t sm_state_mgr_send_master_sm_info_req(osm_sm_t * sm, uint8_t sm_state) argument
86 OSM_LOG_ENTER(sm->p_log);
96 guid = sm->master_sm_guid;
101 * under sm.
104 guid = sm->polling_sm_guid;
108 if (guid == sm
145 sm_state_mgr_start_polling(osm_sm_t * sm) argument
180 osm_sm_t *sm = context; local
257 sm_state_mgr_signal_error(osm_sm_t * sm, IN osm_sm_signal_t signal) argument
265 osm_sm_state_mgr_signal_master_is_alive(osm_sm_t * sm) argument
272 osm_sm_state_mgr_process(osm_sm_t * sm, IN osm_sm_signal_t signal) argument
501 osm_sm_state_mgr_check_legality(osm_sm_t * sm, IN osm_sm_signal_t signal) argument
[all...]
H A Dosm_state_mgr.c75 extern void osm_drop_mgr_process(IN osm_sm_t * sm);
78 extern int osm_mcast_mgr_process(IN osm_sm_t * sm, boolean_t config_all);
79 extern int osm_link_mgr_process(IN osm_sm_t * sm, IN uint8_t state);
80 extern void osm_guid_mgr_process(IN osm_sm_t * sm);
82 static void state_mgr_up_msg(IN const osm_sm_t * sm) argument
89 osm_log_v2(sm->p_log, sm->p_subn->first_time_master_sweep ?
92 OSM_LOG_MSG_BOX(sm->p_log, OSM_LOG_VERBOSE,
93 sm->p_subn->opt.sweep_interval ?
131 osm_sm_t *sm local
162 state_mgr_get_remote_port_info(IN osm_sm_t * sm, IN osm_physp_t * p_physp) argument
210 state_mgr_sweep_hop_0(IN osm_sm_t * sm) argument
275 state_mgr_clean_known_lids(IN osm_sm_t * sm) argument
298 state_mgr_sa_clean(IN osm_sm_t * sm) argument
398 state_mgr_notify_lid_change(IN osm_sm_t * sm) argument
434 state_mgr_is_sm_port_down(IN osm_sm_t * sm) argument
496 state_mgr_sweep_hop_1(IN osm_sm_t * sm) argument
617 osm_sm_t *sm = cxt; local
647 osm_sm_t *sm = context; local
700 osm_sm_t *sm = context; local
764 osm_sm_t *sm = context; local
790 state_mgr_light_sweep_start(IN osm_sm_t * sm) argument
870 state_mgr_exists_other_master_sm(IN osm_sm_t * sm) argument
908 state_mgr_get_highest_sm(IN osm_sm_t * sm) argument
963 state_mgr_send_handover(IN osm_sm_t * sm, IN osm_remote_sm_t * p_sm) argument
1025 state_mgr_report_new_ports(IN osm_sm_t * sm) argument
1103 state_mgr_check_tbl_consistency(IN osm_sm_t * sm) argument
1261 do_sweep(osm_sm_t * sm) argument
1707 do_process_mgrp_queue(osm_sm_t * sm) argument
1717 do_process_guid_queue(osm_sm_t *sm) argument
1723 osm_state_mgr_process(IN osm_sm_t * sm, IN osm_signal_t signal) argument
[all...]
/freebsd-11-stable/contrib/wpa/src/eap_peer/
H A Deap.c39 static Boolean eap_sm_allowMethod(struct eap_sm *sm, int vendor,
41 static struct wpabuf * eap_sm_buildNak(struct eap_sm *sm, int id);
42 static void eap_sm_processIdentity(struct eap_sm *sm,
44 static void eap_sm_processNotify(struct eap_sm *sm, const struct wpabuf *req);
46 static void eap_sm_parseEapReq(struct eap_sm *sm, const struct wpabuf *req);
51 static void eap_sm_request(struct eap_sm *sm, enum wpa_ctrl_req_type field,
56 static Boolean eapol_get_bool(struct eap_sm *sm, enum eapol_bool_var var) argument
58 return sm->eapol_cb->get_bool(sm->eapol_ctx, var);
62 static void eapol_set_bool(struct eap_sm *sm, enu argument
69 eapol_get_int(struct eap_sm *sm, enum eapol_int_var var) argument
75 eapol_set_int(struct eap_sm *sm, enum eapol_int_var var, unsigned int value) argument
82 eapol_get_eapReqData(struct eap_sm *sm) argument
88 eap_notify_status(struct eap_sm *sm, const char *status, const char *parameter) argument
98 eap_report_error(struct eap_sm *sm, int error_code) argument
106 eap_sm_free_key(struct eap_sm *sm) argument
115 eap_deinit_prev_method(struct eap_sm *sm, const char *txt) argument
139 eap_config_allowed_method(struct eap_sm *sm, struct eap_peer_config *config, int vendor, u32 method) argument
166 eap_allowed_method(struct eap_sm *sm, int vendor, u32 method) argument
174 eap_sm_append_3gpp_realm(struct eap_sm *sm, char *imsi, size_t max_len, size_t *imsi_len, int mnc_len) argument
435 eap_get_realm(struct eap_sm *sm, struct eap_peer_config *config) argument
518 eap_home_realm(struct eap_sm *sm) argument
525 eap_erp_get_key(struct eap_sm *sm, const char *realm) argument
545 eap_erp_get_key_nai(struct eap_sm *sm, const char *nai) argument
565 eap_erp_remove_keys_realm(struct eap_sm *sm, const char *realm) argument
577 eap_peer_update_erp_next_seq_num(struct eap_sm *sm, u16 next_seq_num) argument
611 eap_peer_get_erp_info(struct eap_sm *sm, struct eap_peer_config *config, const u8 **username, size_t *username_len, const u8 **realm, size_t *realm_len, u16 *erp_next_seq_num, const u8 **rrk, size_t *rrk_len) argument
662 eap_peer_erp_free_keys(struct eap_sm *sm) argument
676 eap_peer_erp_init(struct eap_sm *sm, u8 *ext_session_id, size_t ext_session_id_len, u8 *ext_emsk, size_t ext_emsk_len) argument
793 eap_peer_build_erp_reauth_start(struct eap_sm *sm, u8 eap_id) argument
849 eap_peer_erp_reauth_start(struct eap_sm *sm, u8 eap_id) argument
1098 eap_success_workaround(struct eap_sm *sm, int reqId, int lastId) argument
1128 eap_peer_sm_step_idle(struct eap_sm *sm) argument
1160 eap_peer_req_is_duplicate(struct eap_sm *sm) argument
1186 eap_peer_sm_allow_canned(struct eap_sm *sm) argument
1195 eap_peer_sm_step_received(struct eap_sm *sm) argument
1257 eap_peer_sm_step_local(struct eap_sm *sm) argument
1351 eap_sm_allowMethod(struct eap_sm *sm, int vendor, EapType method) argument
1367 eap_sm_build_expanded_nak( struct eap_sm *sm, int id, const struct eap_method *methods, size_t count) argument
1414 eap_sm_buildNak(struct eap_sm *sm, int id) argument
1463 eap_sm_processIdentity(struct eap_sm *sm, const struct wpabuf *req) argument
1515 eap_sm_imsi_identity(struct eap_sm *sm, struct eap_peer_config *conf) argument
1595 eap_sm_set_scard_pin(struct eap_sm *sm, struct eap_peer_config *conf) argument
1614 eap_sm_get_scard_identity(struct eap_sm *sm, struct eap_peer_config *conf) argument
1637 eap_sm_buildIdentity(struct eap_sm *sm, int id, int encrypted) argument
1701 eap_sm_processNotify(struct eap_sm *sm, const struct wpabuf *req) argument
1734 eap_peer_initiate(struct eap_sm *sm, const struct eap_hdr *hdr, size_t len) argument
1785 eap_peer_finish(struct eap_sm *sm, const struct eap_hdr *hdr, size_t len) argument
1946 eap_sm_parseEapReq(struct eap_sm *sm, const struct wpabuf *req) argument
2063 struct eap_sm *sm = ctx; local
2135 struct eap_sm *sm; local
2185 eap_peer_sm_deinit(struct eap_sm *sm) argument
2208 eap_peer_sm_step(struct eap_sm *sm) argument
2228 eap_sm_abort(struct eap_sm *sm) argument
2333 eap_sm_get_status(struct eap_sm *sm, char *buf, size_t buflen, int verbose) argument
2393 eap_sm_request(struct eap_sm *sm, enum wpa_ctrl_req_type field, const char *msg, size_t msglen) argument
2458 eap_sm_get_method_name(struct eap_sm *sm) argument
2475 eap_sm_request_identity(struct eap_sm *sm) argument
2490 eap_sm_request_password(struct eap_sm *sm) argument
2505 eap_sm_request_new_password(struct eap_sm *sm) argument
2520 eap_sm_request_pin(struct eap_sm *sm) argument
2536 eap_sm_request_otp(struct eap_sm *sm, const char *msg, size_t msg_len) argument
2551 eap_sm_request_passphrase(struct eap_sm *sm) argument
2562 eap_sm_request_sim(struct eap_sm *sm, const char *req) argument
2575 eap_sm_notify_ctrl_attached(struct eap_sm *sm) argument
2682 eap_set_fast_reauth(struct eap_sm *sm, int enabled) argument
2693 eap_set_workaround(struct eap_sm *sm, unsigned int workaround) argument
2709 eap_get_config(struct eap_sm *sm) argument
2721 eap_get_config_identity(struct eap_sm *sm, size_t *len) argument
2731 eap_get_ext_password(struct eap_sm *sm, struct eap_peer_config *config) argument
2758 eap_get_config_password(struct eap_sm *sm, size_t *len) argument
2785 eap_get_config_password2(struct eap_sm *sm, size_t *len, int *hash) argument
2813 eap_get_config_new_password(struct eap_sm *sm, size_t *len) argument
2829 eap_get_config_otp(struct eap_sm *sm, size_t *len) argument
2847 eap_clear_config_otp(struct eap_sm *sm) argument
2864 eap_get_config_phase1(struct eap_sm *sm) argument
2878 eap_get_config_phase2(struct eap_sm *sm) argument
2887 eap_get_config_fragment_size(struct eap_sm *sm) argument
2901 eap_key_available(struct eap_sm *sm) argument
2916 eap_notify_success(struct eap_sm *sm) argument
2932 eap_notify_lower_layer_success(struct eap_sm *sm) argument
2962 eap_get_eapSessionId(struct eap_sm *sm, size_t *len) argument
2985 eap_get_eapKeyData(struct eap_sm *sm, size_t *len) argument
3007 eap_get_eapRespData(struct eap_sm *sm) argument
3029 eap_register_scard_ctx(struct eap_sm *sm, void *ctx) argument
3044 eap_set_config_blob(struct eap_sm *sm, struct wpa_config_blob *blob) argument
3058 eap_get_config_blob(struct eap_sm *sm, const char *name) argument
3077 eap_set_force_disabled(struct eap_sm *sm, int disabled) argument
3088 eap_set_external_sim(struct eap_sm *sm, int external_sim) argument
3103 eap_notify_pending(struct eap_sm *sm) argument
3113 eap_invalidate_cached_session(struct eap_sm *sm) argument
3146 eap_sm_set_ext_pw_ctx(struct eap_sm *sm, struct ext_password_data *ext) argument
3160 eap_set_anon_id(struct eap_sm *sm, const u8 *id, size_t len) argument
3167 eap_peer_was_failure_expected(struct eap_sm *sm) argument
[all...]
H A Deap_proxy_dummy.c27 int eap_proxy_key_available(struct eap_proxy_sm *sm) argument
33 const u8 * eap_proxy_get_eapKeyData(struct eap_proxy_sm *sm, size_t *len) argument
39 struct wpabuf * eap_proxy_get_eapRespData(struct eap_proxy_sm *sm) argument
45 int eap_proxy_sm_step(struct eap_proxy_sm *sm, struct eap_sm *eap_sm) argument
59 int eap_proxy_sm_get_status(struct eap_proxy_sm *sm, char *buf, size_t buflen, argument
73 int eap_proxy_notify_config(struct eap_proxy_sm *sm, argument
80 u8 * eap_proxy_get_eap_session_id(struct eap_proxy_sm *sm, size_t *len) argument
86 u8 * eap_proxy_get_emsk(struct eap_proxy_sm *sm, size_t *len) argument
92 void eap_proxy_sm_abort(struct eap_proxy_sm *sm) argument
H A Deap_proxy.h28 int eap_proxy_key_available(struct eap_proxy_sm *sm);
30 const u8 * eap_proxy_get_eapKeyData(struct eap_proxy_sm *sm, size_t *len);
32 struct wpabuf * eap_proxy_get_eapRespData(struct eap_proxy_sm *sm);
34 int eap_proxy_sm_step(struct eap_proxy_sm *sm, struct eap_sm *eap_sm);
40 int eap_proxy_sm_get_status(struct eap_proxy_sm *sm, char *buf, size_t buflen,
46 int eap_proxy_notify_config(struct eap_proxy_sm *sm,
49 u8 * eap_proxy_get_eap_session_id(struct eap_proxy_sm *sm, size_t *len);
51 u8 * eap_proxy_get_emsk(struct eap_proxy_sm *sm, size_t *len);
53 void eap_proxy_sm_abort(struct eap_proxy_sm *sm);
H A Deap.h333 void eap_peer_sm_deinit(struct eap_sm *sm);
334 int eap_peer_sm_step(struct eap_sm *sm);
335 void eap_sm_abort(struct eap_sm *sm);
336 int eap_sm_get_status(struct eap_sm *sm, char *buf, size_t buflen,
338 const char * eap_sm_get_method_name(struct eap_sm *sm);
339 struct wpabuf * eap_sm_buildIdentity(struct eap_sm *sm, int id, int encrypted);
340 void eap_sm_request_identity(struct eap_sm *sm);
341 void eap_sm_request_password(struct eap_sm *sm);
342 void eap_sm_request_new_password(struct eap_sm *sm);
343 void eap_sm_request_pin(struct eap_sm *sm);
[all...]
/freebsd-11-stable/contrib/sendmail/libsm/
H A Dstrerror.c14 #include <sm/gen.h>
24 #include <sm/io.h> /* sm_snprintf */
25 #include <sm/string.h>
26 #include <sm/conf.h>
27 #include <sm/errstring.h>
H A Dvprintf.c15 #include <sm/gen.h>
17 #include <sm/io.h>
H A Dxtrap.c10 #include <sm/gen.h>
13 #include <sm/xtrap.h>
/freebsd-11-stable/contrib/wpa/src/utils/
H A Dstate_machine.h33 static void sm_ ## machine ## _ ## state ## _Enter(STATE_MACHINE_DATA *sm, \
47 if (!global || sm->machine ## _state != machine ## _ ## state) { \
48 sm->changed = TRUE; \
52 sm->machine ## _state = machine ## _ ## state;
66 if (!global || sm->data ## _ ## state != machine ## _ ## _state) { \
67 sm->changed = TRUE; \
71 sm->data ## _ ## state = machine ## _ ## _state;
84 if (!global || sm->data ## _ ## state != machine ## _ ## _state) { \
85 sm->changed = TRUE; \
90 sm
[all...]
/freebsd-11-stable/contrib/wpa/src/ap/
H A Dwpa_auth.c36 #define STATE_MACHINE_ADDR sm->addr
40 static int wpa_sm_step(struct wpa_state_machine *sm);
44 static int wpa_aead_decrypt(struct wpa_state_machine *sm, struct wpa_ptk *ptk,
46 static struct wpabuf * fils_prepare_plainbuf(struct wpa_state_machine *sm,
52 static void wpa_request_new_ptk(struct wpa_state_machine *sm);
57 static int wpa_derive_ptk(struct wpa_state_machine *sm, const u8 *snonce,
66 static u8 * ieee80211w_kde_add(struct wpa_state_machine *sm, u8 *pos);
180 int (*cb)(struct wpa_state_machine *sm, void *ctx),
315 struct wpa_state_machine *sm = timeout_ctx; local
317 wpa_auth_logger(wpa_auth, sm
179 wpa_auth_for_each_sta(struct wpa_authenticator *wpa_auth, int (*cb)(struct wpa_state_machine *sm, void *ctx), void *cb_ctx) argument
323 wpa_auth_set_ptk_rekey_timer(struct wpa_state_machine *sm) argument
336 wpa_auth_pmksa_clear_cb(struct wpa_state_machine *sm, void *ctx) argument
606 struct wpa_state_machine *sm; local
626 wpa_auth_sta_associated(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm) argument
674 wpa_auth_sta_no_wpa(struct wpa_state_machine *sm) argument
686 wpa_free_sta_sm(struct wpa_state_machine *sm) argument
719 wpa_auth_sta_deinit(struct wpa_state_machine *sm) argument
752 wpa_request_new_ptk(struct wpa_state_machine *sm) argument
792 ft_check_msg_2_of_4(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, struct wpa_eapol_ie_parse *kde) argument
841 wpa_receive_error_report(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int group) argument
874 wpa_try_alt_snonce(struct wpa_state_machine *sm, u8 *data, size_t data_len) argument
944 wpa_receive(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, u8 *data, size_t data_len) argument
1420 struct wpa_state_machine *sm = timeout_ctx; local
1429 __wpa_send_eapol(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int key_info, const u8 *key_rsc, const u8 *nonce, const u8 *kde, size_t kde_len, int keyidx, int encr, int force_version) argument
1645 wpa_send_eapol(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int key_info, const u8 *key_rsc, const u8 *nonce, const u8 *kde, size_t kde_len, int keyidx, int encr) argument
1711 wpa_remove_ptk(struct wpa_state_machine *sm) argument
1724 wpa_auth_sm_event(struct wpa_state_machine *sm, enum wpa_event event) argument
1980 wpa_auth_sm_ptk_update(struct wpa_state_machine *sm) argument
2209 wpa_derive_ptk(struct wpa_state_machine *sm, const u8 *snonce, const u8 *pmk, unsigned int pmk_len, struct wpa_ptk *ptk) argument
2248 fils_auth_pmk_to_ptk(struct wpa_state_machine *sm, const u8 *pmk, size_t pmk_len, const u8 *snonce, const u8 *anonce, const u8 *dhss, size_t dhss_len, struct wpabuf *g_sta, struct wpabuf *g_ap) argument
2324 wpa_aead_decrypt(struct wpa_state_machine *sm, struct wpa_ptk *ptk, u8 *buf, size_t buf_len, u16 *_key_data_len) argument
2379 wpa_fils_validate_fils_session(struct wpa_state_machine *sm, const u8 *ies, size_t ies_len, const u8 *fils_session) argument
2433 wpa_fils_validate_key_confirm(struct wpa_state_machine *sm, const u8 *ies, size_t ies_len) argument
2476 fils_decrypt_assoc(struct wpa_state_machine *sm, const u8 *fils_session, const struct ieee80211_mgmt *mgmt, size_t frame_len, u8 *pos, size_t left) argument
2564 fils_encrypt_assoc(struct wpa_state_machine *sm, u8 *buf, size_t current_len, size_t max_len, const struct wpabuf *hlp) argument
2642 fils_prepare_plainbuf(struct wpa_state_machine *sm, const struct wpabuf *hlp) argument
2731 fils_set_tk(struct wpa_state_machine *sm) argument
2760 hostapd_eid_assoc_fils_session(struct wpa_state_machine *sm, u8 *buf, const u8 *fils_session, struct wpabuf *hlp) argument
2793 get_sta_tx_parameters(struct wpa_state_machine *sm, int ap_max_chanwidth, int ap_seg1_idx, int *bandwidth, int *seg1_idx) argument
3050 ieee80211w_kde_len(struct wpa_state_machine *sm) argument
3062 ieee80211w_kde_add(struct wpa_state_machine *sm, u8 *pos) argument
3098 ieee80211w_kde_len(struct wpa_state_machine *sm) argument
3104 ieee80211w_kde_add(struct wpa_state_machine *sm, u8 *pos) argument
3112 ocv_oci_len(struct wpa_state_machine *sm) argument
3121 ocv_oci_add(struct wpa_state_machine *sm, u8 **argpos) argument
3789 wpa_group_update_sta(struct wpa_state_machine *sm, void *ctx) argument
3825 wpa_wnmsleep_rekey_gtk(struct wpa_state_machine *sm) argument
3834 wpa_set_wnmsleep(struct wpa_state_machine *sm, int flag) argument
3841 wpa_wnmsleep_gtk_subelem(struct wpa_state_machine *sm, u8 *pos) argument
3873 wpa_wnmsleep_igtk_subelem(struct wpa_state_machine *sm, u8 *pos) argument
3971 wpa_group_disconnect_cb(struct wpa_state_machine *sm, void *ctx) argument
4033 wpa_sm_step(struct wpa_state_machine *sm) argument
4076 struct wpa_state_machine *sm = eloop_ctx; local
4081 wpa_auth_sm_notify(struct wpa_state_machine *sm) argument
4213 wpa_get_mib_sta(struct wpa_state_machine *sm, char *buf, size_t buflen) argument
4276 wpa_auth_pairwise_set(struct wpa_state_machine *sm) argument
4282 wpa_auth_get_pairwise(struct wpa_state_machine *sm) argument
4288 wpa_auth_get_pmk(struct wpa_state_machine *sm, int *len) argument
4297 wpa_auth_sta_key_mgmt(struct wpa_state_machine *sm) argument
4305 wpa_auth_sta_wpa_version(struct wpa_state_machine *sm) argument
4313 wpa_auth_sta_ft_tk_already_set(struct wpa_state_machine *sm) argument
4321 wpa_auth_sta_fils_tk_already_set(struct wpa_state_machine *sm) argument
4329 wpa_auth_sta_clear_pmksa(struct wpa_state_machine *sm, struct rsn_pmksa_cache_entry *entry) argument
4340 wpa_auth_sta_get_pmksa(struct wpa_state_machine *sm) argument
4346 wpa_auth_sta_local_mic_failure_report(struct wpa_state_machine *sm) argument
4362 wpa_auth_pmksa_add(struct wpa_state_machine *sm, const u8 *pmk, unsigned int pmk_len, int session_timeout, struct eapol_state_machine *eapol) argument
4434 wpa_auth_add_sae_pmkid(struct wpa_state_machine *sm, const u8 *pmkid) argument
4552 wpa_auth_pmksa_set_to_sm(struct rsn_pmksa_cache_entry *pmksa, struct wpa_state_machine *sm, struct wpa_authenticator *wpa_auth, u8 *pmkid, u8 *pmk) argument
4737 wpa_auth_sta_set_vlan(struct wpa_state_machine *sm, int vlan_id) argument
4774 wpa_auth_eapol_key_tx_status(struct wpa_authenticator *wpa_auth, struct wpa_state_machine *sm, int ack) argument
4812 wpa_auth_uses_sae(struct wpa_state_machine *sm) argument
4820 wpa_auth_uses_ft_sae(struct wpa_state_machine *sm) argument
4829 wpa_auth_get_ip_addr(struct wpa_state_machine *sm, u8 *addr) argument
4912 wpa_auth_get_fils_aead_params(struct wpa_state_machine *sm, u8 *fils_anonce, u8 *fils_snonce, u8 *fils_kek, size_t *fils_kek_len) argument
4923 wpa_auth_add_fils_pmk_pmkid(struct wpa_state_machine *sm, const u8 *pmk, size_t pmk_len, const u8 *pmkid) argument
4935 wpa_auth_set_auth_alg(struct wpa_state_machine *sm, u16 auth_alg) argument
4943 wpa_auth_set_dpp_z(struct wpa_state_machine *sm, const struct wpabuf *z) argument
4955 wpa_auth_resend_m1(struct wpa_state_machine *sm, int change_anonce, void (*cb)(void *ctx1, void *ctx2), void *ctx1, void *ctx2) argument
4977 wpa_auth_resend_m3(struct wpa_state_machine *sm, void (*cb)(void *ctx1, void *ctx2), void *ctx1, void *ctx2) argument
5152 wpa_auth_resend_group_m1(struct wpa_state_machine *sm, void (*cb)(void *ctx1, void *ctx2), void *ctx1, void *ctx2) argument
[all...]

Completed in 293 milliseconds

1234567891011>>