1f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt/*
2f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * EAP proxy - dummy implementation for build testing
3f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * Copyright (c) 2013 Qualcomm Atheros, Inc.
4f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt *
5f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * This software may be distributed under the terms of the BSD license.
6f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt * See README for more details.
7f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt */
8f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
9f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt#include "includes.h"
10f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
11f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt#include "common.h"
12f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt#include "eap_proxy.h"
13f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
14f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtstruct eap_proxy_sm *
15f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidteap_proxy_init(void *eapol_ctx, struct eapol_callbacks *eapol_cb,
16f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	       void *msg_ctx)
17f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt{
18f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	return NULL;
19f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}
20f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
21f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
22f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtvoid eap_proxy_deinit(struct eap_proxy_sm *eap_proxy)
23f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt{
24f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}
25f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
26f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
27f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtint eap_proxy_key_available(struct eap_proxy_sm *sm)
28f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt{
29f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	return 0;
30f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}
31f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
32f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
33f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtconst u8 * eap_proxy_get_eapKeyData(struct eap_proxy_sm *sm, size_t *len)
34f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt{
35f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	return NULL;
36f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}
37f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
38f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
39f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtstruct wpabuf * eap_proxy_get_eapRespData(struct eap_proxy_sm *sm)
40f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt{
41f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	return NULL;
42f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}
43f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
44f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
45f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtint eap_proxy_sm_step(struct eap_proxy_sm *sm, struct eap_sm *eap_sm)
46f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt{
47f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	return 0;
48f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}
49f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
50f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
51f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtenum eap_proxy_status
52f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidteap_proxy_packet_update(struct eap_proxy_sm *eap_proxy, u8 *eapReqData,
53f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt			int eapReqDataLen)
54f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt{
55f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	return EAP_PROXY_FAILURE;
56f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}
57f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
58f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
59f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtint eap_proxy_sm_get_status(struct eap_proxy_sm *sm, char *buf, size_t buflen,
60f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt			    int verbose)
61f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt{
62f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	return 0;
63f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}
64f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
65f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
664ce9c87407c036fc83eb5a6044ddf976c86f53fcDmitry Shmidtint eap_proxy_get_imsi(struct eap_proxy_sm *eap_proxy, char *imsi_buf,
674ce9c87407c036fc83eb5a6044ddf976c86f53fcDmitry Shmidt		       size_t *imsi_len)
68f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt{
69f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	return -1;
70f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}
71f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
72f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt
73f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidtint eap_proxy_notify_config(struct eap_proxy_sm *sm,
74f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt			    struct eap_peer_config *config)
75f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt{
76f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt	return -1;
77f86232838cf712377867cb42417c1613ab5dc425Dmitry Shmidt}
78