⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 eap_config.h

📁 IEEE 802.11a/b/g 服务器端AP
💻 H
📖 第 1 页 / 共 2 页
字号:
/* * EAP peer configuration data * Copyright (c) 2003-2008, Jouni Malinen <j@w1.fi> * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 as * published by the Free Software Foundation. * * Alternatively, this software may be distributed under the terms of BSD * license. * * See README and COPYING for more details. */#ifndef EAP_CONFIG_H#define EAP_CONFIG_H/** * struct eap_peer_config - EAP peer configuration/credentials */struct eap_peer_config {	/**	 * identity - EAP Identity	 *	 * This field is used to set the real user identity or NAI (for	 * EAP-PSK/PAX/SAKE/GPSK).	 */	u8 *identity;	/**	 * identity_len - EAP Identity length	 */	size_t identity_len;	/**	 * anonymous_identity -  Anonymous EAP Identity	 *	 * This field is used for unencrypted use with EAP types that support	 * different tunnelled identity, e.g., EAP-TTLS, in order to reveal the	 * real identity (identity field) only to the authentication server.	 *	 * If not set, the identity field will be used for both unencrypted and	 * protected fields.	 */	u8 *anonymous_identity;	/**	 * anonymous_identity_len - Length of anonymous_identity	 */	size_t anonymous_identity_len;	/**	 * password - Password string for EAP	 *	 * This field can include either the plaintext password (default	 * option) or a NtPasswordHash (16-byte MD4 hash of the unicode	 * presentation of the password) if flags field has	 * EAP_CONFIG_FLAGS_PASSWORD_NTHASH bit set to 1. NtPasswordHash can	 * only be used with authentication mechanism that use this hash as the	 * starting point for operation: MSCHAP and MSCHAPv2 (EAP-MSCHAPv2,	 * EAP-TTLS/MSCHAPv2, EAP-TTLS/MSCHAP, LEAP).	 *	 * In addition, this field is used to configure a pre-shared key for	 * EAP-PSK/PAX/SAKE/GPSK. The length of the PSK must be 16 for EAP-PSK	 * and EAP-PAX and 32 for EAP-SAKE. EAP-GPSK can use a variable length	 * PSK.	 */	u8 *password;	/**	 * password_len - Length of password field	 */	size_t password_len;	/**	 * ca_cert - File path to CA certificate file (PEM/DER)	 *	 * This file can have one or more trusted CA certificates. If ca_cert	 * and ca_path are not included, server certificate will not be	 * verified. This is insecure and a trusted CA certificate should	 * always be configured when using EAP-TLS/TTLS/PEAP. Full path to the	 * file should be used since working directory may change when	 * wpa_supplicant is run in the background.	 *	 * Alternatively, a named configuration blob can be used by setting	 * this to blob://<blob name>.	 *	 * On Windows, trusted CA certificates can be loaded from the system	 * certificate store by setting this to cert_store://<name>, e.g.,	 * ca_cert="cert_store://CA" or ca_cert="cert_store://ROOT".	 * Note that when running wpa_supplicant as an application, the user	 * certificate store (My user account) is used, whereas computer store	 * (Computer account) is used when running wpasvc as a service.	 */	u8 *ca_cert;	/**	 * ca_path - Directory path for CA certificate files (PEM)	 *	 * This path may contain multiple CA certificates in OpenSSL format.	 * Common use for this is to point to system trusted CA list which is	 * often installed into directory like /etc/ssl/certs. If configured,	 * these certificates are added to the list of trusted CAs. ca_cert	 * may also be included in that case, but it is not required.	 */	u8 *ca_path;	/**	 * client_cert - File path to client certificate file (PEM/DER)	 *	 * This field is used with EAP method that use TLS authentication.	 * Usually, this is only configured for EAP-TLS, even though this could	 * in theory be used with EAP-TTLS and EAP-PEAP, too. Full path to the	 * file should be used since working directory may change when	 * wpa_supplicant is run in the background.	 *	 * Alternatively, a named configuration blob can be used by setting	 * this to blob://<blob name>.	 */	u8 *client_cert;	/**	 * private_key - File path to client private key file (PEM/DER/PFX)	 *	 * When PKCS#12/PFX file (.p12/.pfx) is used, client_cert should be	 * commented out. Both the private key and certificate will be read	 * from the PKCS#12 file in this case. Full path to the file should be	 * used since working directory may change when wpa_supplicant is run	 * in the background.	 *	 * Windows certificate store can be used by leaving client_cert out and	 * configuring private_key in one of the following formats:	 *	 * cert://substring_to_match	 *	 * hash://certificate_thumbprint_in_hex	 *	 * For example: private_key="hash://63093aa9c47f56ae88334c7b65a4"	 *	 * Note that when running wpa_supplicant as an application, the user	 * certificate store (My user account) is used, whereas computer store	 * (Computer account) is used when running wpasvc as a service.	 *	 * Alternatively, a named configuration blob can be used by setting	 * this to blob://<blob name>.	 */	u8 *private_key;	/**	 * private_key_passwd - Password for private key file	 *	 * If left out, this will be asked through control interface.	 */	u8 *private_key_passwd;	/**	 * dh_file - File path to DH/DSA parameters file (in PEM format)	 *	 * This is an optional configuration file for setting parameters for an	 * ephemeral DH key exchange. In most cases, the default RSA	 * authentication does not use this configuration. However, it is	 * possible setup RSA to use ephemeral DH key exchange. In addition,	 * ciphers with DSA keys always use ephemeral DH keys. This can be used	 * to achieve forward secrecy. If the file is in DSA parameters format,	 * it will be automatically converted into DH params. Full path to the	 * file should be used since working directory may change when	 * wpa_supplicant is run in the background.	 *	 * Alternatively, a named configuration blob can be used by setting	 * this to blob://<blob name>.	 */	u8 *dh_file;	/**	 * subject_match - Constraint for server certificate subject	 *	 * This substring is matched against the subject of the authentication	 * server certificate. If this string is set, the server sertificate is	 * only accepted if it contains this string in the subject. The subject	 * string is in following format:	 *	 * /C=US/ST=CA/L=San Francisco/CN=Test AS/emailAddress=as@n.example.com	 */	u8 *subject_match;	/**	 * altsubject_match - Constraint for server certificate alt. subject	 *	 * Semicolon separated string of entries to be matched against the	 * alternative subject name of the authentication server certificate.	 * If this string is set, the server sertificate is only accepted if it	 * contains one of the entries in an alternative subject name	 * extension.	 *	 * altSubjectName string is in following format: TYPE:VALUE	 *	 * Example: EMAIL:server@example.com	 * Example: DNS:server.example.com;DNS:server2.example.com	 *	 * Following types are supported: EMAIL, DNS, URI	 */	u8 *altsubject_match;	/**	 * ca_cert2 - File path to CA certificate file (PEM/DER) (Phase 2)	 *	 * This file can have one or more trusted CA certificates. If ca_cert2	 * and ca_path2 are not included, server certificate will not be	 * verified. This is insecure and a trusted CA certificate should	 * always be configured. Full path to the file should be used since	 * working directory may change when wpa_supplicant is run in the	 * background.	 *	 * This field is like ca_cert, but used for phase 2 (inside	 * EAP-TTLS/PEAP/FAST tunnel) authentication.	 *	 * Alternatively, a named configuration blob can be used by setting	 * this to blob://<blob name>.	 */	u8 *ca_cert2;	/**	 * ca_path2 - Directory path for CA certificate files (PEM) (Phase 2)	 *	 * This path may contain multiple CA certificates in OpenSSL format.	 * Common use for this is to point to system trusted CA list which is	 * often installed into directory like /etc/ssl/certs. If configured,	 * these certificates are added to the list of trusted CAs. ca_cert	 * may also be included in that case, but it is not required.	 *	 * This field is like ca_path, but used for phase 2 (inside	 * EAP-TTLS/PEAP/FAST tunnel) authentication.	 */	u8 *ca_path2;	/**	 * client_cert2 - File path to client certificate file	 *	 * This field is like client_cert, but used for phase 2 (inside	 * EAP-TTLS/PEAP/FAST tunnel) authentication. Full path to the	 * file should be used since working directory may change when	 * wpa_supplicant is run in the background.	 *	 * Alternatively, a named configuration blob can be used by setting	 * this to blob://<blob name>.	 */	u8 *client_cert2;	/**	 * private_key2 - File path to client private key file	 *	 * This field is like private_key, but used for phase 2 (inside	 * EAP-TTLS/PEAP/FAST tunnel) authentication. Full path to the	 * file should be used since working directory may change when	 * wpa_supplicant is run in the background.	 *	 * Alternatively, a named configuration blob can be used by setting	 * this to blob://<blob name>.	 */	u8 *private_key2;	/**	 * private_key2_passwd -  Password for private key file	 *	 * This field is like private_key_passwd, but used for phase 2 (inside	 * EAP-TTLS/PEAP/FAST tunnel) authentication.	 */	u8 *private_key2_passwd;	/**	 * dh_file2 - File path to DH/DSA parameters file (in PEM format)	 *	 * This field is like dh_file, but used for phase 2 (inside	 * EAP-TTLS/PEAP/FAST tunnel) authentication. Full path to the	 * file should be used since working directory may change when	 * wpa_supplicant is run in the background.	 *	 * Alternatively, a named configuration blob can be used by setting	 * this to blob://<blob name>.	 */	u8 *dh_file2;	/**	 * subject_match2 - Constraint for server certificate subject	 *	 * This field is like subject_match, but used for phase 2 (inside	 * EAP-TTLS/PEAP/FAST tunnel) authentication.	 */	u8 *subject_match2;	/**	 * altsubject_match2 - Constraint for server certificate alt. subject	 *	 * This field is like altsubject_match, but used for phase 2 (inside	 * EAP-TTLS/PEAP/FAST tunnel) authentication.	 */	u8 *altsubject_match2;	/**	 * eap_methods - Allowed EAP methods	 *	 * (vendor=EAP_VENDOR_IETF,method=EAP_TYPE_NONE) terminated list of	 * allowed EAP methods or %NULL if all methods are accepted.	 */	struct eap_method_type *eap_methods;	/**	 * phase1 - Phase 1 (outer authentication) parameters	 *

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -