亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? eapotp.c

?? 可以用作很多客戶端的XSUPPLICANT的源代碼。比如用在802.1x或者無線AP上
?? C
字號(hào):
/** * A client-side 802.1x implementation  * * This code is released under both the GPL version 2 and BSD licenses. * Either license may be used.  The respective licenses are found below. * * Copyright (C) 2002 Bryan D. Payne & Nick L. Petroni Jr. * All Rights Reserved * * --- GPL Version 2 License --- * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA. * * --- BSD License --- * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: * *  - Redistributions of source code must retain the above copyright notice, *    this list of conditions and the following disclaimer. *  - Redistributions in binary form must reproduce the above copyright *    notice, this list of conditions and the following disclaimer in the *    documentation and/or other materials provided with the distribution. *  - All advertising materials mentioning features or use of this software *    must display the following acknowledgement: *       This product includes software developed by the University of *       Maryland at College Park and its contributors. *  - Neither the name of the University nor the names of its contributors *    may be used to endorse or promote products derived from this software *    without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE * POSSIBILITY OF SUCH DAMAGE. *//******************************************************************* * The driver function for a Linux application layer EAPOL  * implementation * File: eapotp.c * * Authors: Chris.Hessing@utah.edu * * $Id: eapotp.c,v 1.9 2004/04/06 20:31:26 chessing Exp $ * $Date: 2004/04/06 20:31:26 $ * $Log: eapotp.c,v $ * Revision 1.9  2004/04/06 20:31:26  chessing * * PEAP NOW WORKS WITH IAS!!!!!! (Thanks to help from Matthew Gast!! (We love you! ;))  Also, added patches from yesterday's testing at iLabs, including some keying fixes, some segfault fixes, and a few other misc. issues.  iLabs testing has been worth it! * * Revision 1.8  2004/03/19 23:43:57  chessing * * Lots of changes.  Changed the password prompting code to no longer require the EAP methods to maintain their own stale frame buffer.  (Frame buffer pointers should be moved out of generic_eap_data before a final release.)  Instead, EAP methods should set need_password in generic_eap_data to 1, along with the variables that identify the eap type being used, and the challenge data (if any -- only interesting to OTP/GTC at this point).  Also fixed up xsup_set_pwd.c, and got it back in CVS.  (For some reason, it was in limbo.)  Added xsup_monitor under gui_tools/cli.  xsup_monitor will eventually be a cli program that will monitor XSupplicant (running as a daemon) and display status information, and request passwords when they are not in the config. * * Revision 1.7  2004/02/16 05:06:00  chessing * * Added support for the deny_interfaces, and allow_interfaces options in the config file.  (We should now have support for *EVERYTHING* in the new config file format!)  Updated EAP types other than SIM to use the new password prompt/delay code.  Phase 2 of TTLS still needs to be completed, along with the code that actually notifies the GUI. * * Revision 1.6  2004/01/20 05:57:05  chessing * * All EAP types except PEAP and TTLS now support having their passwords sent in via the command line program.  (This means no more gets() call in OTP!)  A config_eap_otp structure was created in config.h to support GTC/OTP.  We need to define an eap_otp and eap_gtc config section.  Since both require some kind of information be presented there are no attributes that need to be defined in their part of the configuration. * * Revision 1.5  2004/01/15 23:45:11  chessing * * Fixed a segfault when looking for wireless interfaces when all we had was a wired interface.  Fixed external command execution so that junk doesn't end up in the processed string anymore.  Changed the state machine to call txRspAuth even if there isn't a frame to process.  This will enable EAP methods to request information from a GUI interface (such as passwords, or supply challenge information that might be needed to generate passwords).  EAP methods now must decide what to do when they are handed NULL for the pointer to the in frame.  If they don't need any more data, they should quietly exit. * * Revision 1.4  2004/01/15 01:12:45  chessing * * Fixed a keying problem (keying material wasn't being generated correctly).  Added support for global counter variables from the config file. (Such as auth_period)  Added support for executing command defined in the config file based on different events.  (Things such as what to do on reauth.)  Added the ability to roam to a different SSID.  We now check to make sure our BSSID hasn't changed, and we follow it, if it has.  Fixed a sefault when the program was terminated in certain states.  Added attempt at better garbage collection on program termination. Various small code cleanups. * * Revision 1.3  2004/01/13 01:55:56  chessing * * Major changes to EAP related code.  We no longer pass in an interface_data struct to EAP handlers.  Instead, we hand in a generic_eap_data struct which containsnon-interface specific information.  This will allow EAP types to be reused as phase 2 type easier.  However, this new code may create issues with EAP types that make use of the identity in the eap type.  Somehow, the identity value needs to propigate down to the EAP method.  It currently does not.  This should be any easy fix, but more testing will be needed. * * Revision 1.2  2004/01/06 23:35:07  chessing * * Fixed a couple known bugs in SIM.  Config file support should now be in place!!! But, because of the changes, PEAP is probably broken.  We will need to reconsider how the phase 2 piece of PEAP works. * * Revision 1.1  2003/12/28 07:13:21  chessing * * Fixed a problem where we would segfault on an EAP type we didn't understand.  Added EAP-OTP.  EAP-OTP has been tested using the opie package, and Radiator 3.8.  EAP-OTP currently prompts for a passphrase, which it shouldn't do, so it should be considered *VERY* much in test mode until we finish the GUI. * * *******************************************************************/#include <openssl/ssl.h>#include <string.h>#include <strings.h>#include "config.h"#include "profile.h"#include "eap.h"#include "xsup_debug.h"#include "xsup_err.h"#include "frame_structs.h"#include "eapotp.h"#include "interactive.h"/***************************************************** * * Setup to handle OTP EAP requests * *****************************************************/int eapotp_setup(struct generic_eap_data *thisint){  if (!thisint)    {      debug_printf(DEBUG_NORMAL, "Invalid interface struct passed to eapotp_setup()!\n");      return XEMALLOC;    }  thisint->eap_data = (int *)malloc(sizeof(int));  if (thisint->eap_data == NULL) return XEMALLOC;  // Do anything special that might be needed for this EAP type to work.  debug_printf(DEBUG_EVERYTHING, "Initalized EAP-OTP!\n");  return XENONE;}/***************************************************** * * Process OTP EAP Requests * * ******************************************************/int eapotp_process(struct generic_eap_data *thisint, u_char *dataoffs, 		   int insize, u_char *outframe, int *outsize){  char *otp_chal;  char resp[512];  struct config_eap_otp *userdata;  debug_printf(DEBUG_EVERYTHING, "(EAP-OTP) Processing.\n");  if ((!thisint) || (!dataoffs) || (!outframe))    {      debug_printf(DEBUG_NORMAL, "Invalid paramaters passed to eapotp_process()!\n");      return XEMALLOC;    }  if (!outsize)    {      debug_printf(DEBUG_NORMAL, "Invalid pointer to out size in eapotp_process()!\n");      return XEMALLOC;    }    debug_printf(DEBUG_AUTHTYPES, "OTP/GTC packet dump : \n");  debug_hex_printf(DEBUG_AUTHTYPES, dataoffs, insize);  *outsize = 0;  userdata = thisint->eap_conf_data;  if (!userdata)    {      debug_printf(DEBUG_NORMAL, "Invalid configuration data in eapotp_process()!\n");      return XENOUSERDATA;    }  if (thisint->tempPwd == NULL)     {      otp_chal = (char *)malloc(insize+1);      if (otp_chal == NULL)	{	  debug_printf(DEBUG_NORMAL, "Couldn't allocate memory for OTP/GTC challenge!\n");	  *outsize = 0;	  return 0;	}      bzero(otp_chal, insize+1);      memcpy(otp_chal, dataoffs, insize);      debug_printf(DEBUG_NORMAL, "Challenge : %s\n",otp_chal);      // We need a password.      thisint->need_password = 1;      thisint->eaptype = strdup("EAP-OTP/GTC");      thisint->eapchallenge = otp_chal;      *outsize = 0;      return XENONE;    }  // Make sure we have something to process...  if (dataoffs == NULL) return XENONE;  /*  debug_printf(DEBUG_NORMAL, "Response : ");      gets(&resp); */  strcpy(outframe, resp);  *outsize = strlen(resp);  return *outsize;}/******************************************************* * * Return any keying material that we may have. * *******************************************************/int eapotp_get_keys(struct interface_data *thisint){  return -1;   // No keys to return;}/******************************************************* * * Clean up after ourselves.  This will get called when we get a packet that * needs to be processed requests a different EAP type.  It will also be  * called on termination of the program. * *******************************************************/int eapotp_cleanup(struct generic_eap_data *thisint){  // Clean up after ourselves.  debug_printf(DEBUG_AUTHTYPES, "(EAP-OTP) Cleaning up.\n");  return XENONE;}

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號(hào) Ctrl + =
減小字號(hào) Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美午夜片在线看| av一区二区三区| 欧美成人猛片aaaaaaa| 蜜桃视频免费观看一区| 日韩久久久久久| 国产成人一区二区精品非洲| 国产精品网站在线| 色婷婷亚洲精品| 美国十次综合导航| 国产精品污污网站在线观看| 色综合久久99| 青娱乐精品视频在线| 久久九九99视频| 欧美主播一区二区三区美女| 麻豆91精品91久久久的内涵| 国产欧美综合在线| 欧美色图12p| 国产精品伊人色| 一区二区久久久久| 亚洲精品一区二区三区精华液 | 国产传媒日韩欧美成人| 日韩一区有码在线| 日韩欧美亚洲国产精品字幕久久久| 国产精品资源在线| 亚洲综合一区二区| 久久久三级国产网站| 色综合一区二区| 看片网站欧美日韩| 亚洲欧美欧美一区二区三区| 欧美tk丨vk视频| 91黄色免费看| 成人污污视频在线观看| 日日欢夜夜爽一区| 国产精品久久久久影院老司| 制服丝袜中文字幕一区| 99麻豆久久久国产精品免费 | 国产传媒一区在线| 午夜伦理一区二区| 一区在线观看免费| 久久先锋影音av鲁色资源| 欧美日韩一区二区三区不卡| 国产高清一区日本| 爽好久久久欧美精品| 综合色中文字幕| 久久综合九色综合欧美就去吻| 91在线免费播放| 国产一区二区三区不卡在线观看 | 色综合咪咪久久| 国产一区二区三区国产| 亚洲1区2区3区视频| 亚洲欧洲精品天堂一级| 久久久三级国产网站| 欧美一区二区性放荡片| 欧美图片一区二区三区| 91麻豆免费观看| 顶级嫩模精品视频在线看| 久久99精品一区二区三区| 偷拍一区二区三区四区| 亚洲精品v日韩精品| 国产精品网曝门| 国产欧美一区二区三区在线老狼| 精品少妇一区二区三区日产乱码| 欧美日韩亚洲综合一区| 在线一区二区视频| 91黄色免费看| 日本福利一区二区| 日本丰满少妇一区二区三区| 91在线一区二区三区| www.在线成人| 99re在线视频这里只有精品| 不卡一卡二卡三乱码免费网站| 国产电影一区二区三区| 国内精品国产成人国产三级粉色 | 欧美日韩国产免费一区二区 | 久久电影网站中文字幕| 欧美a一区二区| 久久精品国产精品亚洲精品| 黄色日韩网站视频| 国产毛片精品一区| 国产高清久久久| 成人性生交大片免费看中文网站| 国产成人av一区二区| 国产精品一级片| 成人av在线播放网址| 色婷婷综合久久久久中文一区二区| 色综合久久久久| 欧美日韩国产一级片| 欧美一二三区在线观看| 精品国产凹凸成av人导航| 国产日韩欧美高清在线| 中文字幕中文字幕中文字幕亚洲无线| 国产精品久久久久久久久果冻传媒| 国产精品久久久久久久浪潮网站| 亚洲欧洲综合另类| 五月综合激情婷婷六月色窝| 青青草成人在线观看| 国产麻豆精品theporn| 99精品视频一区| 欧美人妇做爰xxxⅹ性高电影| 欧美一区二区三区四区视频| 久久久不卡影院| 亚洲精品免费电影| 美女看a上一区| 成年人国产精品| 9191成人精品久久| 国产日韩欧美a| 一区二区三区波多野结衣在线观看| 性欧美疯狂xxxxbbbb| 韩国v欧美v日本v亚洲v| 99久久99久久久精品齐齐| 9191成人精品久久| 中文字幕乱码日本亚洲一区二区 | 激情图区综合网| 成人黄色小视频| 欧美久久久久久蜜桃| 欧美精品一区二区久久婷婷| 中文字幕中文字幕一区二区| 日韩电影免费一区| 成年人午夜久久久| 日韩一区二区免费在线电影 | 欧美日本一道本| 国产日本欧美一区二区| 亚洲成av人片在线| 成人美女在线观看| 欧美一卡二卡三卡| 亚洲美女免费视频| 国产麻豆精品在线观看| 欧美精品视频www在线观看| 国产精品久线在线观看| 精品在线观看视频| 欧美日韩一区中文字幕| 中文字幕在线观看不卡| 精品一区二区三区香蕉蜜桃| 在线观看亚洲成人| 亚洲欧洲国产日本综合| 国产乱子伦视频一区二区三区| 欧美系列日韩一区| 国产精品污污网站在线观看| 激情综合一区二区三区| 欧美精品日韩精品| 一区二区三区美女| 99久久伊人久久99| 国产亚洲美州欧州综合国| 六月婷婷色综合| 欧美一区午夜视频在线观看| 一区二区视频在线| 99久久精品免费| 亚洲国产精品ⅴa在线观看| 精品一区二区在线观看| 日韩欧美一级二级| 欧美aⅴ一区二区三区视频| 欧美日韩在线播放三区四区| 曰韩精品一区二区| 99精品在线免费| 中文字幕中文字幕在线一区 | 日韩中文欧美在线| 欧美视频一二三区| 亚洲国产日产av| 欧美手机在线视频| 亚洲成人一区在线| 欧美色图激情小说| 亚洲国产一区二区三区青草影视| 一本色道久久综合狠狠躁的推荐 | 成人av电影在线| 国产精品乱码人人做人人爱 | 丁香婷婷综合网| 国产欧美综合色| 成人精品视频一区二区三区 | 夜夜揉揉日日人人青青一国产精品| 成人免费福利片| 亚洲免费观看高清完整版在线| 色综合色狠狠天天综合色| 一区二区三区四区在线免费观看 | 欧美一区二区美女| 免费久久精品视频| 久久免费电影网| 成人h动漫精品| 亚洲欧美偷拍三级| 欧美影片第一页| 蜜桃传媒麻豆第一区在线观看| 精品国内片67194| 国产xxx精品视频大全| 国产精品久久久久四虎| 91福利在线看| 免费三级欧美电影| 国产欧美一区二区三区网站| 91小宝寻花一区二区三区| 亚洲小说春色综合另类电影| 91精品国产综合久久蜜臀| 国产精品一区二区三区四区| 日韩一区在线播放| 欧美一区二区三区精品| 韩国一区二区在线观看| ㊣最新国产の精品bt伙计久久| 欧美最猛黑人xxxxx猛交| 日本va欧美va欧美va精品| 久久久久国产精品人| 在线观看成人小视频| 麻豆国产精品官网| 亚洲特黄一级片|