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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? xsup_set_pwd.c

?? 可以用作很多客戶端的XSUPPLICANT的源代碼。比如用在802.1x或者無線AP上
?? C
字號:
/** * 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. *//******************************************************************* * * File: xsup_set_pwd.c * * Authors: Chris.Hessing@utah.edu * * $Id: xsup_set_pwd.c,v 1.2 2004/03/23 18:57:02 chessing Exp $ * $Date: 2004/03/23 18:57:02 $ * $Log: xsup_set_pwd.c,v $ * Revision 1.2  2004/03/23 18:57:02  chessing * * Hopefully everything is fixed up now. ;) * * Revision 1.1  2004/03/23 18:48:13  chessing * * Yet another attempt to fix the xsup_set_pwd directory layout issues. * * Revision 1.7  2004/03/19 23:43:55  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.5  2004/03/17 21:21:39  chessing * * Hopefully xsup_set_pwd is in the right place now. ;)  Added the functions needed for xsupplicant to request a password from a GUI client.  (Still needs to be tested.)  Updated TTLS and PEAP to support password prompting.  Fixed up curState change in statemachine.c, so it doesn't print [ALL] in front of the current state. * * Revision 1.1  2004/03/17 21:16:07  chessing * * Moved xsup_set_pwd.c to it's new location. * * Revision 1.3  2004/02/13 05:51:32  chessing * * Removed pieces from sha1.c that were duplicates for OpenSSL calls.  Hopefully this will resolve the TLS issues that have been under discussion on the list.  Added support for a default path for the config file.  If a config file is not specified on the command line, xsupplicant will attempt to read it from /etc/xsupplicant.conf.  Moved code to request a password from each of the EAP types to interface.c/h.  Currently this change is only implemented in the EAP-SIM module.  The changes to the GUI prompt code now make more sense, and are easier to follow.  It will be updated in other EAP types soon. * * Revision 1.2  2004/01/20 00:07:06  chessing * * EAP-SIM fixes. * * Revision 1.1  2004/01/18 06:31:19  chessing * * A few fixes here and there.  Added support in EAP-TLS to wait for a password to be entered from a "GUI" interface.  Added a small CLI utility to pass the password in to the daemon. (In gui_tools/cli)  Made needed IPC updates/changes to support passing in of a generic password to be used. * * *******************************************************************/#include <stdio.h>#include <unistd.h>#include <strings.h>#include <stdlib.h>#include "../../common/gui_interface.h"void usage(char *pname){  printf("Usage: %s -i <interface_name>\n\n\n", pname);  printf("   The interface specified by <interface_name> should be the "	 "interface that you wish to set a password for.\n");}int main(int argc, char *argv[]){  char *theOpts = "i:";  char *passwd, buffer[1520], result[256];  char *intname;  char myint[17];  struct ipc_interface ipcint;  int bufptr, dlen, op;  intname = NULL;  if (is_xsup_running() == FALSE)    {      printf("Error!  XSupplicant must be running to use this tool!\n");      exit(0);    }  if (gui_interface_connect(&ipcint, TRUE) != ERR_NONE)    {      printf("Error!  Couldn't get a handle to the daemon!\n");      exit(0);    }  if (argc<2)    {      usage(argv[0]);      exit(0);    }  while ((op = getopt(argc, argv, theOpts)) != EOF)    {      switch (op)	{	case 'i':	  intname = optarg;	  break;	}    }  if (intname == NULL)    {      usage(argv[0]);      exit(0);    }    bzero((char *)&buffer, 1520);    if (gui_interface_build_header(&ipcint, (char *)&buffer, &bufptr, intname, IPC_SET)      != ERR_NONE)    {      printf("Error! Couldn't build header!\n");      gui_interface_disconnect(&ipcint);      exit(0);    }  passwd = getpass("Please enter your password : ");   if (passwd == NULL)    {      printf("No password set!\n");      gui_interface_disconnect(&ipcint);      exit(0);    }  gui_interface_set_password(&ipcint, (char *)&buffer, &bufptr, passwd);  switch (gui_interface_send_packet(&ipcint, (char *)&buffer, bufptr))    {    case ERR_PKT_BAD:      printf("Error! Packet appears to be bad!\n");      gui_interface_disconnect(&ipcint);      exit(0);      break;    case ERR_SOCK:      printf("Error! There was a socket error!\n");      gui_interface_disconnect(&ipcint);      exit(0);      break;    }  bzero((char *)&buffer, 1520);  gui_interface_get_packet(&ipcint, (char *)&buffer, &bufptr);  bufptr = sizeof(struct ipc_interface)-1;  if (gui_interface_parse_packet(&ipcint, (char *)&buffer, &bufptr, (char *)&result, &dlen, (char *)&myint) == ERR_PKT_BAD)    {      printf("The daemon returned an invalid packet!\n");    }  if (result[0] == ACK)     {      printf("Your password has been successfully submitted to the XSupplicant daemon.\n");    } else {      printf("Error!  Password not set!\n");    }  gui_interface_disconnect(&ipcint);  return 0;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产99精品国产| 久草热8精品视频在线观看| 日韩一区二区电影在线| 欧美日韩国产影片| 欧美日韩国产另类一区| 欧美日韩五月天| 欧美日本一区二区在线观看| 欧美日韩美少妇| 欧美一区二区三区在线| 精品国产一区二区三区四区四| 91精品国产一区二区三区香蕉| 69久久夜色精品国产69蝌蚪网| 欧美体内she精高潮| 欧美日本一区二区在线观看| 欧美成人三级电影在线| 国产免费成人在线视频| 国产精品久久三| 一区二区三区在线视频观看| 悠悠色在线精品| 蜜乳av一区二区三区| 国产精品77777| 色婷婷av一区二区三区之一色屋| 色天天综合久久久久综合片| 日韩一区二区三区在线| 久久久久久夜精品精品免费| 亚洲色图自拍偷拍美腿丝袜制服诱惑麻豆 | 一区二区三区视频在线看| 亚洲成人一区在线| 国产久卡久卡久卡久卡视频精品| 91在线视频播放| 欧美妇女性影城| 国产欧美精品一区| 亚洲aaa精品| 国产乱理伦片在线观看夜一区| 日本福利一区二区| 久久蜜桃一区二区| 五月天欧美精品| www.久久久久久久久| 91精品国产一区二区三区蜜臀| 久久精品亚洲乱码伦伦中文| 亚洲综合视频网| 国产综合成人久久大片91| 欧美午夜精品久久久久久超碰| 日韩午夜av电影| 亚洲欧美日韩成人高清在线一区| 久久国产欧美日韩精品| 91久久一区二区| 国产精品亲子伦对白| 美国精品在线观看| 欧美午夜一区二区三区| 国产三级三级三级精品8ⅰ区| 亚洲成a人片在线观看中文| 99久久精品国产麻豆演员表| 欧美精品一区二区久久婷婷| 亚洲成人av电影在线| 99精品国产99久久久久久白柏 | 精品久久久久久综合日本欧美| 亚洲欧美日韩电影| 成人a免费在线看| 久久人人超碰精品| 精品中文字幕一区二区小辣椒| 欧美中文字幕一区二区三区| 国产精品久久久久久久久久免费看| 久久精品国产亚洲一区二区三区| 欧美三电影在线| 亚洲免费观看高清在线观看| 成人黄色大片在线观看| 国产偷v国产偷v亚洲高清| 九色porny丨国产精品| 日韩亚洲欧美在线观看| 日韩电影免费在线| 欧美一卡2卡3卡4卡| 免费精品视频在线| 日韩精品一区二区三区swag| 美女网站一区二区| 精品免费一区二区三区| 精品中文字幕一区二区| 久久久久久久综合日本| 国产一区二区三区精品视频| 久久综合视频网| 国产高清在线精品| 国产精品不卡视频| 91麻豆免费观看| 亚洲综合av网| 欧美一级在线免费| 国产精品一区久久久久| 国产精品国产三级国产a| av中文字幕在线不卡| 一区二区高清视频在线观看| 欧美三电影在线| 狠狠色丁香九九婷婷综合五月 | 国产91精品免费| 国产精品美女久久久久久久久 | 亚洲色图20p| 色综合一区二区| 亚洲高清在线精品| 26uuu国产日韩综合| 成人深夜福利app| 亚洲成人免费看| 精品国产成人在线影院| 成人爽a毛片一区二区免费| 一区二区三区欧美日| 欧美电影一区二区| 国产高清在线观看免费不卡| 亚洲男人天堂av| 7777精品伊人久久久大香线蕉最新版| 紧缚捆绑精品一区二区| 日韩久久一区二区| 欧美一区二区视频观看视频| 成年人国产精品| 另类小说综合欧美亚洲| 中文字幕av一区二区三区高| 欧美日韩精品一区二区三区四区| 久久99热99| 亚洲视频免费在线观看| 亚洲精品一区在线观看| 91极品视觉盛宴| 精品一区二区三区蜜桃| 尤物在线观看一区| 久久精品欧美一区二区三区不卡 | 国产剧情一区二区| 亚洲国产另类av| 中文字幕欧美三区| 日韩欧美激情在线| 在线观看三级视频欧美| 九色|91porny| 日韩精品一二三区| 136国产福利精品导航| 亚洲精品在线观看网站| 欧美一区三区四区| 欧美自拍丝袜亚洲| av在线不卡网| 国产v综合v亚洲欧| 久久99久久精品欧美| 亚洲图片一区二区| 伊人一区二区三区| 自拍av一区二区三区| 国产三级精品视频| 精品入口麻豆88视频| 欧美一卡2卡三卡4卡5免费| 欧美亚洲动漫制服丝袜| 在线观看免费成人| 色噜噜夜夜夜综合网| av不卡免费电影| hitomi一区二区三区精品| 国产精品一区二区黑丝| 久久99精品网久久| 欧美aaaaa成人免费观看视频| 三级欧美韩日大片在线看| 亚洲电影第三页| 天天操天天色综合| 午夜免费欧美电影| 日韩在线卡一卡二| 免费国产亚洲视频| 精久久久久久久久久久| 国产一区二区伦理片| 国产一区二区三区在线观看免费视频| 麻豆精品新av中文字幕| 精品一区二区国语对白| 国产麻豆视频精品| 成人免费毛片嘿嘿连载视频| 成人a区在线观看| 欧洲一区在线观看| 欧美精品久久久久久久多人混战| 欧美女孩性生活视频| 日韩欧美国产一区二区三区 | 中文字幕不卡在线播放| 国产精品嫩草久久久久| 国产精品高清亚洲| 亚洲欧美一区二区三区国产精品| 最新日韩在线视频| 亚洲r级在线视频| 久久99精品网久久| eeuss鲁片一区二区三区在线观看 eeuss鲁片一区二区三区在线看 | 精品欧美一区二区在线观看| 国产欧美一区二区精品性| 综合在线观看色| 亚洲大型综合色站| 久久激情五月激情| 床上的激情91.| 欧美美女一区二区三区| 精品黑人一区二区三区久久| 中文字幕一区二区三区不卡| 亚洲一区二区三区四区在线免费观看 | 日韩色在线观看| 中文字幕国产一区二区| 亚洲国产精品久久人人爱 | 波多野结衣的一区二区三区| 在线精品视频免费观看| 久久综合色之久久综合| 亚洲国产色一区| 粉嫩高潮美女一区二区三区| 欧日韩精品视频| 久久久久久久久久久99999| 亚洲人成网站色在线观看| 蜜桃视频在线观看一区| 在线免费一区三区| 国产欧美日韩一区二区三区在线观看| 亚洲高清久久久| 99久久99久久精品免费观看|