2018-04-20 03:33:04 +00: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 09:42:55 +00:00
|
|
|
#include "eap_config.h"
|
2018-04-20 03:33:04 +00: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);
|
|
|
|
|
|
|
|
#endif /* EAP_METHODS_H */
|