1 /* 2 * EAP proxy - stub implementation for build testing 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 #include "includes.h" 10 11 #include "common.h" 12 #include "eap_proxy.h" 13 14 struct eap_proxy_sm * 15 eap_proxy_init(void *eapol_ctx, const struct eapol_callbacks *eapol_cb, 16 void *msg_ctx) 17 { 18 return NULL; 19 } 20 21 22 void eap_proxy_deinit(struct eap_proxy_sm *eap_proxy) 23 { 24 } 25 26 27 int eap_proxy_key_available(struct eap_proxy_sm *sm) 28 { 29 return 0; 30 } 31 32 33 const u8 * eap_proxy_get_eapKeyData(struct eap_proxy_sm *sm, size_t *len) 34 { 35 return NULL; 36 } 37 38 39 struct wpabuf * eap_proxy_get_eapRespData(struct eap_proxy_sm *sm) 40 { 41 return NULL; 42 } 43 44 45 int eap_proxy_sm_step(struct eap_proxy_sm *sm, struct eap_sm *eap_sm) 46 { 47 return 0; 48 } 49 50 51 enum eap_proxy_status 52 eap_proxy_packet_update(struct eap_proxy_sm *eap_proxy, u8 *eapReqData, 53 int eapReqDataLen) 54 { 55 return EAP_PROXY_FAILURE; 56 } 57 58 59 int eap_proxy_sm_get_status(struct eap_proxy_sm *sm, char *buf, size_t buflen, 60 int verbose) 61 { 62 return 0; 63 } 64 65 66 int eap_proxy_get_imsi(struct eap_proxy_sm *eap_proxy, int sim_num, 67 char *imsi_buf, size_t *imsi_len) 68 { 69 return -1; 70 } 71 72 73 int eap_proxy_notify_config(struct eap_proxy_sm *sm, 74 struct eap_peer_config *config) 75 { 76 return -1; 77 } 78 79 80 u8 * eap_proxy_get_eap_session_id(struct eap_proxy_sm *sm, size_t *len) 81 { 82 return NULL; 83 } 84 85 86 u8 * eap_proxy_get_emsk(struct eap_proxy_sm *sm, size_t *len) 87 { 88 return NULL; 89 } 90 91 92 void eap_proxy_sm_abort(struct eap_proxy_sm *sm) 93 { 94 } 95