1 /* 2 * EAP peer: Method registration 3 * Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi> 4 * 5 * This software may be distributed under the terms of the BSD license. 6 * See README for more details. 7 */ 8 9 #ifndef EAP_METHODS_H 10 #define EAP_METHODS_H 11 12 #include "eap_defs.h" 13 #include "eap_config.h" 14 15 const struct eap_method * eap_peer_get_eap_method(int vendor, EapType method); 16 const struct eap_method * eap_peer_get_methods(size_t *count); 17 18 u32 eap_get_phase2_type(const char *name, int *vendor); 19 struct eap_method_type * eap_get_phase2_types(struct eap_peer_config *config, 20 size_t *count); 21 22 struct eap_method * eap_peer_method_alloc(int verdor, EapType method, 23 const char *name); 24 25 void eap_peer_method_free(struct eap_method *method); 26 int eap_peer_method_register(struct eap_method *method); 27 28 void eap_peer_unregister_methods(void); 29 30 int eap_peer_tls_register(void); 31 int eap_peer_peap_register(void); 32 int eap_peer_ttls_register(void); 33 int eap_peer_fast_register(void); 34 int eap_peer_mschapv2_register(void); 35 36 void eap_peer_unregister_methods(void); 37 int eap_peer_register_methods(void); 38 39 #endif /* EAP_METHODS_H */ 40