2018-04-19 23:33:04 -04:00
|
|
|
/*
|
|
|
|
* EAP peer: Method registration
|
|
|
|
* Copyright (c) 2004-2007, Jouni Malinen <j@w1.fi>
|
|
|
|
*
|
|
|
|
* This software may be distributed under the terms of the BSD license.
|
|
|
|
* See README for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef EAP_METHODS_H
|
|
|
|
#define EAP_METHODS_H
|
|
|
|
|
|
|
|
#include "eap_defs.h"
|
2017-10-19 05:42:55 -04:00
|
|
|
#include "eap_config.h"
|
2018-04-19 23:33:04 -04:00
|
|
|
|
|
|
|
const struct eap_method * eap_peer_get_eap_method(int vendor, EapType method);
|
|
|
|
const struct eap_method * eap_peer_get_methods(size_t *count);
|
|
|
|
|
|
|
|
u32 eap_get_phase2_type(const char *name, int *vendor);
|
|
|
|
struct eap_method_type * eap_get_phase2_types(struct eap_peer_config *config,
|
|
|
|
size_t *count);
|
|
|
|
|
|
|
|
struct eap_method * eap_peer_method_alloc(int verdor, EapType method,
|
|
|
|
const char *name);
|
|
|
|
|
|
|
|
void eap_peer_method_free(struct eap_method *method);
|
|
|
|
int eap_peer_method_register(struct eap_method *method);
|
|
|
|
|
|
|
|
void eap_peer_unregister_methods(void);
|
|
|
|
|
|
|
|
//int eap_peer_md5_register(void);
|
|
|
|
int eap_peer_tls_register(void);
|
|
|
|
int eap_peer_peap_register(void);
|
|
|
|
int eap_peer_ttls_register(void);
|
|
|
|
int eap_peer_mschapv2_register(void);
|
|
|
|
|
2018-05-29 08:25:20 -04:00
|
|
|
void eap_peer_unregister_methods(void);
|
|
|
|
int eap_peer_register_methods(void);
|
|
|
|
|
2018-04-19 23:33:04 -04:00
|
|
|
#endif /* EAP_METHODS_H */
|