eap_register.c
Go to the documentation of this file.
00001 /*
00002  * EAP method registration
00003  * Copyright (c) 2004-2009, Jouni Malinen <j@w1.fi>
00004  *
00005  * This program is free software; you can redistribute it and/or modify
00006  * it under the terms of the GNU General Public License version 2 as
00007  * published by the Free Software Foundation.
00008  *
00009  * Alternatively, this software may be distributed under the terms of BSD
00010  * license.
00011  *
00012  * See README and COPYING for more details.
00013  */
00014 
00015 #include "includes.h"
00016 
00017 #include "common.h"
00018 #include "eap_peer/eap_methods.h"
00019 #include "eap_server/eap_methods.h"
00020 
00021 
00029 int eap_register_methods(void)
00030 {
00031         int ret = 0;
00032 
00033 #ifdef EAP_MD5
00034         if (ret == 0)
00035                 ret = eap_peer_md5_register();
00036 #endif /* EAP_MD5 */
00037 
00038 #ifdef EAP_TLS
00039         if (ret == 0)
00040                 ret = eap_peer_tls_register();
00041 #endif /* EAP_TLS */
00042 
00043 #ifdef EAP_MSCHAPv2
00044         if (ret == 0)
00045                 ret = eap_peer_mschapv2_register();
00046 #endif /* EAP_MSCHAPv2 */
00047 
00048 #ifdef EAP_PEAP
00049         if (ret == 0)
00050                 ret = eap_peer_peap_register();
00051 #endif /* EAP_PEAP */
00052 
00053 #ifdef EAP_TTLS
00054         if (ret == 0)
00055                 ret = eap_peer_ttls_register();
00056 #endif /* EAP_TTLS */
00057 
00058 #ifdef EAP_GTC
00059         if (ret == 0)
00060                 ret = eap_peer_gtc_register();
00061 #endif /* EAP_GTC */
00062 
00063 #ifdef EAP_OTP
00064         if (ret == 0)
00065                 ret = eap_peer_otp_register();
00066 #endif /* EAP_OTP */
00067 
00068 #ifdef EAP_SIM
00069         if (ret == 0)
00070                 ret = eap_peer_sim_register();
00071 #endif /* EAP_SIM */
00072 
00073 #ifdef EAP_LEAP
00074         if (ret == 0)
00075                 ret = eap_peer_leap_register();
00076 #endif /* EAP_LEAP */
00077 
00078 #ifdef EAP_PSK
00079         if (ret == 0)
00080                 ret = eap_peer_psk_register();
00081 #endif /* EAP_PSK */
00082 
00083 #ifdef EAP_AKA
00084         if (ret == 0)
00085                 ret = eap_peer_aka_register();
00086 #endif /* EAP_AKA */
00087 
00088 #ifdef EAP_AKA_PRIME
00089         if (ret == 0)
00090                 ret = eap_peer_aka_prime_register();
00091 #endif /* EAP_AKA_PRIME */
00092 
00093 #ifdef EAP_FAST
00094         if (ret == 0)
00095                 ret = eap_peer_fast_register();
00096 #endif /* EAP_FAST */
00097 
00098 #ifdef EAP_PAX
00099         if (ret == 0)
00100                 ret = eap_peer_pax_register();
00101 #endif /* EAP_PAX */
00102 
00103 #ifdef EAP_SAKE
00104         if (ret == 0)
00105                 ret = eap_peer_sake_register();
00106 #endif /* EAP_SAKE */
00107 
00108 #ifdef EAP_GPSK
00109         if (ret == 0)
00110                 ret = eap_peer_gpsk_register();
00111 #endif /* EAP_GPSK */
00112 
00113 #ifdef EAP_WSC
00114         if (ret == 0)
00115                 ret = eap_peer_wsc_register();
00116 #endif /* EAP_WSC */
00117 
00118 #ifdef EAP_IKEV2
00119         if (ret == 0)
00120                 ret = eap_peer_ikev2_register();
00121 #endif /* EAP_IKEV2 */
00122 
00123 #ifdef EAP_VENDOR_TEST
00124         if (ret == 0)
00125                 ret = eap_peer_vendor_test_register();
00126 #endif /* EAP_VENDOR_TEST */
00127 
00128 #ifdef EAP_TNC
00129         if (ret == 0)
00130                 ret = eap_peer_tnc_register();
00131 #endif /* EAP_TNC */
00132 
00133 
00134 #ifdef EAP_SERVER_IDENTITY
00135         if (ret == 0)
00136                 ret = eap_server_identity_register();
00137 #endif /* EAP_SERVER_IDENTITY */
00138 
00139 #ifdef EAP_SERVER_MD5
00140         if (ret == 0)
00141                 ret = eap_server_md5_register();
00142 #endif /* EAP_SERVER_MD5 */
00143 
00144 #ifdef EAP_SERVER_TLS
00145         if (ret == 0)
00146                 ret = eap_server_tls_register();
00147 #endif /* EAP_SERVER_TLS */
00148 
00149 #ifdef EAP_SERVER_MSCHAPV2
00150         if (ret == 0)
00151                 ret = eap_server_mschapv2_register();
00152 #endif /* EAP_SERVER_MSCHAPV2 */
00153 
00154 #ifdef EAP_SERVER_PEAP
00155         if (ret == 0)
00156                 ret = eap_server_peap_register();
00157 #endif /* EAP_SERVER_PEAP */
00158 
00159 #ifdef EAP_SERVER_TLV
00160         if (ret == 0)
00161                 ret = eap_server_tlv_register();
00162 #endif /* EAP_SERVER_TLV */
00163 
00164 #ifdef EAP_SERVER_GTC
00165         if (ret == 0)
00166                 ret = eap_server_gtc_register();
00167 #endif /* EAP_SERVER_GTC */
00168 
00169 #ifdef EAP_SERVER_TTLS
00170         if (ret == 0)
00171                 ret = eap_server_ttls_register();
00172 #endif /* EAP_SERVER_TTLS */
00173 
00174 #ifdef EAP_SERVER_SIM
00175         if (ret == 0)
00176                 ret = eap_server_sim_register();
00177 #endif /* EAP_SERVER_SIM */
00178 
00179 #ifdef EAP_SERVER_AKA
00180         if (ret == 0)
00181                 ret = eap_server_aka_register();
00182 #endif /* EAP_SERVER_AKA */
00183 
00184 #ifdef EAP_SERVER_AKA_PRIME
00185         if (ret == 0)
00186                 ret = eap_server_aka_prime_register();
00187 #endif /* EAP_SERVER_AKA_PRIME */
00188 
00189 #ifdef EAP_SERVER_PAX
00190         if (ret == 0)
00191                 ret = eap_server_pax_register();
00192 #endif /* EAP_SERVER_PAX */
00193 
00194 #ifdef EAP_SERVER_PSK
00195         if (ret == 0)
00196                 ret = eap_server_psk_register();
00197 #endif /* EAP_SERVER_PSK */
00198 
00199 #ifdef EAP_SERVER_SAKE
00200         if (ret == 0)
00201                 ret = eap_server_sake_register();
00202 #endif /* EAP_SERVER_SAKE */
00203 
00204 #ifdef EAP_SERVER_GPSK
00205         if (ret == 0)
00206                 ret = eap_server_gpsk_register();
00207 #endif /* EAP_SERVER_GPSK */
00208 
00209 #ifdef EAP_SERVER_VENDOR_TEST
00210         if (ret == 0)
00211                 ret = eap_server_vendor_test_register();
00212 #endif /* EAP_SERVER_VENDOR_TEST */
00213 
00214 #ifdef EAP_SERVER_FAST
00215         if (ret == 0)
00216                 ret = eap_server_fast_register();
00217 #endif /* EAP_SERVER_FAST */
00218 
00219 #ifdef EAP_SERVER_WSC
00220         if (ret == 0)
00221                 ret = eap_server_wsc_register();
00222 #endif /* EAP_SERVER_WSC */
00223 
00224 #ifdef EAP_SERVER_IKEV2
00225         if (ret == 0)
00226                 ret = eap_server_ikev2_register();
00227 #endif /* EAP_SERVER_IKEV2 */
00228 
00229 #ifdef EAP_SERVER_TNC
00230         if (ret == 0)
00231                 ret = eap_server_tnc_register();
00232 #endif /* EAP_SERVER_TNC */
00233 
00234         return ret;
00235 }


wpa_supplicant
Author(s): Package maintained by Blaise Gassend
autogenerated on Thu Jan 2 2014 11:26:37