xref: /freebsd/contrib/wpa/src/eap_peer/eap_proxy_dummy.c (revision 4b72b91a7132df1f77bbae194e1071ac621f1edb)
15b9c547cSRui Paulo /*
2*4b72b91aSCy Schubert  * EAP proxy - stub implementation for build testing
35b9c547cSRui Paulo  * Copyright (c) 2013 Qualcomm Atheros, Inc.
45b9c547cSRui Paulo  *
55b9c547cSRui Paulo  * This software may be distributed under the terms of the BSD license.
65b9c547cSRui Paulo  * See README for more details.
75b9c547cSRui Paulo  */
85b9c547cSRui Paulo 
95b9c547cSRui Paulo #include "includes.h"
105b9c547cSRui Paulo 
115b9c547cSRui Paulo #include "common.h"
125b9c547cSRui Paulo #include "eap_proxy.h"
135b9c547cSRui Paulo 
145b9c547cSRui Paulo struct eap_proxy_sm *
eap_proxy_init(void * eapol_ctx,const struct eapol_callbacks * eapol_cb,void * msg_ctx)1585732ac8SCy Schubert eap_proxy_init(void *eapol_ctx, const struct eapol_callbacks *eapol_cb,
165b9c547cSRui Paulo 	       void *msg_ctx)
175b9c547cSRui Paulo {
185b9c547cSRui Paulo 	return NULL;
195b9c547cSRui Paulo }
205b9c547cSRui Paulo 
215b9c547cSRui Paulo 
eap_proxy_deinit(struct eap_proxy_sm * eap_proxy)225b9c547cSRui Paulo void eap_proxy_deinit(struct eap_proxy_sm *eap_proxy)
235b9c547cSRui Paulo {
245b9c547cSRui Paulo }
255b9c547cSRui Paulo 
265b9c547cSRui Paulo 
eap_proxy_key_available(struct eap_proxy_sm * sm)275b9c547cSRui Paulo int eap_proxy_key_available(struct eap_proxy_sm *sm)
285b9c547cSRui Paulo {
295b9c547cSRui Paulo 	return 0;
305b9c547cSRui Paulo }
315b9c547cSRui Paulo 
325b9c547cSRui Paulo 
eap_proxy_get_eapKeyData(struct eap_proxy_sm * sm,size_t * len)335b9c547cSRui Paulo const u8 * eap_proxy_get_eapKeyData(struct eap_proxy_sm *sm, size_t *len)
345b9c547cSRui Paulo {
355b9c547cSRui Paulo 	return NULL;
365b9c547cSRui Paulo }
375b9c547cSRui Paulo 
385b9c547cSRui Paulo 
eap_proxy_get_eapRespData(struct eap_proxy_sm * sm)395b9c547cSRui Paulo struct wpabuf * eap_proxy_get_eapRespData(struct eap_proxy_sm *sm)
405b9c547cSRui Paulo {
415b9c547cSRui Paulo 	return NULL;
425b9c547cSRui Paulo }
435b9c547cSRui Paulo 
445b9c547cSRui Paulo 
eap_proxy_sm_step(struct eap_proxy_sm * sm,struct eap_sm * eap_sm)455b9c547cSRui Paulo int eap_proxy_sm_step(struct eap_proxy_sm *sm, struct eap_sm *eap_sm)
465b9c547cSRui Paulo {
475b9c547cSRui Paulo 	return 0;
485b9c547cSRui Paulo }
495b9c547cSRui Paulo 
505b9c547cSRui Paulo 
515b9c547cSRui Paulo enum eap_proxy_status
eap_proxy_packet_update(struct eap_proxy_sm * eap_proxy,u8 * eapReqData,int eapReqDataLen)525b9c547cSRui Paulo eap_proxy_packet_update(struct eap_proxy_sm *eap_proxy, u8 *eapReqData,
535b9c547cSRui Paulo 			int eapReqDataLen)
545b9c547cSRui Paulo {
555b9c547cSRui Paulo 	return EAP_PROXY_FAILURE;
565b9c547cSRui Paulo }
575b9c547cSRui Paulo 
585b9c547cSRui Paulo 
eap_proxy_sm_get_status(struct eap_proxy_sm * sm,char * buf,size_t buflen,int verbose)595b9c547cSRui Paulo int eap_proxy_sm_get_status(struct eap_proxy_sm *sm, char *buf, size_t buflen,
605b9c547cSRui Paulo 			    int verbose)
615b9c547cSRui Paulo {
625b9c547cSRui Paulo 	return 0;
635b9c547cSRui Paulo }
645b9c547cSRui Paulo 
655b9c547cSRui Paulo 
eap_proxy_get_imsi(struct eap_proxy_sm * eap_proxy,int sim_num,char * imsi_buf,size_t * imsi_len)6685732ac8SCy Schubert int eap_proxy_get_imsi(struct eap_proxy_sm *eap_proxy, int sim_num,
6785732ac8SCy Schubert 		       char *imsi_buf, size_t *imsi_len)
685b9c547cSRui Paulo {
695b9c547cSRui Paulo 	return -1;
705b9c547cSRui Paulo }
715b9c547cSRui Paulo 
725b9c547cSRui Paulo 
eap_proxy_notify_config(struct eap_proxy_sm * sm,struct eap_peer_config * config)735b9c547cSRui Paulo int eap_proxy_notify_config(struct eap_proxy_sm *sm,
745b9c547cSRui Paulo 			    struct eap_peer_config *config)
755b9c547cSRui Paulo {
765b9c547cSRui Paulo 	return -1;
775b9c547cSRui Paulo }
7885732ac8SCy Schubert 
7985732ac8SCy Schubert 
eap_proxy_get_eap_session_id(struct eap_proxy_sm * sm,size_t * len)8085732ac8SCy Schubert u8 * eap_proxy_get_eap_session_id(struct eap_proxy_sm *sm, size_t *len)
8185732ac8SCy Schubert {
8285732ac8SCy Schubert 	return NULL;
8385732ac8SCy Schubert }
8485732ac8SCy Schubert 
8585732ac8SCy Schubert 
eap_proxy_get_emsk(struct eap_proxy_sm * sm,size_t * len)8685732ac8SCy Schubert u8 * eap_proxy_get_emsk(struct eap_proxy_sm *sm, size_t *len)
8785732ac8SCy Schubert {
8885732ac8SCy Schubert 	return NULL;
8985732ac8SCy Schubert }
9085732ac8SCy Schubert 
9185732ac8SCy Schubert 
eap_proxy_sm_abort(struct eap_proxy_sm * sm)9285732ac8SCy Schubert void eap_proxy_sm_abort(struct eap_proxy_sm *sm)
9385732ac8SCy Schubert {
9485732ac8SCy Schubert }
95