2
* EAP peer: Method registration
3
* Copyright (c) 2004-2006, Jouni Malinen <jkmaline@cc.hut.fi>
5
* This program is free software; you can redistribute it and/or modify
6
* it under the terms of the GNU General Public License version 2 as
7
* published by the Free Software Foundation.
9
* Alternatively, this software may be distributed under the terms of BSD
12
* See README and COPYING for more details.
20
const struct eap_method * eap_sm_get_eap_methods(int vendor, EapType method);
21
const struct eap_method * eap_peer_get_methods(size_t *count);
23
struct eap_method * eap_peer_method_alloc(int version, int vendor,
24
EapType method, const char *name);
25
void eap_peer_method_free(struct eap_method *method);
26
int eap_peer_method_register(struct eap_method *method);
29
#ifdef IEEE8021X_EAPOL
31
EapType eap_get_type(const char *name, int *vendor);
32
const char * eap_get_name(int vendor, EapType type);
33
size_t eap_get_names(char *buf, size_t buflen);
34
int eap_peer_register_methods(void);
35
void eap_peer_unregister_methods(void);
37
#else /* IEEE8021X_EAPOL */
39
static inline EapType eap_get_type(const char *name, int *vendor)
41
*vendor = EAP_VENDOR_IETF;
45
static inline const char * eap_get_name(int vendor, EapType type)
50
static inline size_t eap_get_names(char *buf, size_t buflen)
55
static inline int eap_peer_register_methods(void)
60
static inline void eap_peer_unregister_methods(void)
64
#endif /* IEEE8021X_EAPOL */
67
#ifdef CONFIG_DYNAMIC_EAP_METHODS
69
int eap_peer_method_load(const char *so);
70
int eap_peer_method_unload(struct eap_method *method);
72
#else /* CONFIG_DYNAMIC_EAP_METHODS */
74
static inline int eap_peer_method_load(const char *so)
79
static inline int eap_peer_method_unload(struct eap_method *method)
84
#endif /* CONFIG_DYNAMIC_EAP_METHODS */
86
#endif /* EAP_METHODS_H */