2 |
|
* EAP method registration |
3 |
|
* Copyright (c) 2004-2009, Jouni Malinen <j@w1.fi> |
4 |
|
* |
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. |
8 |
< |
* |
9 |
< |
* Alternatively, this software may be distributed under the terms of BSD |
10 |
< |
* license. |
11 |
< |
* |
12 |
< |
* See README and COPYING for more details. |
5 |
> |
* This software may be distributed under the terms of the BSD license. |
6 |
> |
* See README for more details. |
7 |
|
*/ |
8 |
|
|
9 |
|
#include "includes.h" |
39 |
|
ret = eap_server_tls_register(); |
40 |
|
#endif /* EAP_SERVER_TLS */ |
41 |
|
|
42 |
+ |
#ifdef EAP_SERVER_UNAUTH_TLS |
43 |
+ |
if (ret == 0) |
44 |
+ |
ret = eap_server_unauth_tls_register(); |
45 |
+ |
#endif /* EAP_SERVER_TLS */ |
46 |
+ |
|
47 |
|
#ifdef EAP_SERVER_MSCHAPV2 |
48 |
|
if (ret == 0) |
49 |
|
ret = eap_server_mschapv2_register(); |
128 |
|
if (ret == 0) |
129 |
|
ret = eap_server_tnc_register(); |
130 |
|
#endif /* EAP_SERVER_TNC */ |
131 |
+ |
|
132 |
+ |
#ifdef EAP_SERVER_PWD |
133 |
+ |
if (ret == 0) |
134 |
+ |
ret = eap_server_pwd_register(); |
135 |
+ |
#endif /* EAP_SERVER_PWD */ |
136 |
|
|
137 |
|
return ret; |
138 |
|
} |