eap_proxy_dummy.c 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /*
  2. * EAP proxy - dummy 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. #include "includes.h"
  9. #include "common.h"
  10. #include "eap_proxy.h"
  11. struct eap_proxy_sm *
  12. eap_proxy_init(void *eapol_ctx, struct eapol_callbacks *eapol_cb,
  13. void *msg_ctx)
  14. {
  15. return NULL;
  16. }
  17. void eap_proxy_deinit(struct eap_proxy_sm *eap_proxy)
  18. {
  19. }
  20. int eap_proxy_key_available(struct eap_proxy_sm *sm)
  21. {
  22. return 0;
  23. }
  24. const u8 * eap_proxy_get_eapKeyData(struct eap_proxy_sm *sm, size_t *len)
  25. {
  26. return NULL;
  27. }
  28. struct wpabuf * eap_proxy_get_eapRespData(struct eap_proxy_sm *sm)
  29. {
  30. return NULL;
  31. }
  32. int eap_proxy_sm_step(struct eap_proxy_sm *sm, struct eap_sm *eap_sm)
  33. {
  34. return 0;
  35. }
  36. enum eap_proxy_status
  37. eap_proxy_packet_update(struct eap_proxy_sm *eap_proxy, u8 *eapReqData,
  38. int eapReqDataLen)
  39. {
  40. return EAP_PROXY_FAILURE;
  41. }
  42. int eap_proxy_sm_get_status(struct eap_proxy_sm *sm, char *buf, size_t buflen,
  43. int verbose)
  44. {
  45. return 0;
  46. }
  47. int eap_proxy_get_imsi(struct eap_proxy_sm *eap_proxy, char *imsi_buf,
  48. size_t *imsi_len)
  49. {
  50. return -1;
  51. }
  52. int eap_proxy_notify_config(struct eap_proxy_sm *sm,
  53. struct eap_peer_config *config)
  54. {
  55. return -1;
  56. }