16d49e1aeSJan Lentfer /* 26d49e1aeSJan Lentfer * EAP peer configuration data 33ff40c12SJohn Marino * Copyright (c) 2003-2013, Jouni Malinen <j@w1.fi> 46d49e1aeSJan Lentfer * 53ff40c12SJohn Marino * This software may be distributed under the terms of the BSD license. 63ff40c12SJohn Marino * See README for more details. 76d49e1aeSJan Lentfer */ 86d49e1aeSJan Lentfer 96d49e1aeSJan Lentfer #ifndef EAP_CONFIG_H 106d49e1aeSJan Lentfer #define EAP_CONFIG_H 116d49e1aeSJan Lentfer 126d49e1aeSJan Lentfer /** 136d49e1aeSJan Lentfer * struct eap_peer_config - EAP peer configuration/credentials 146d49e1aeSJan Lentfer */ 156d49e1aeSJan Lentfer struct eap_peer_config { 166d49e1aeSJan Lentfer /** 176d49e1aeSJan Lentfer * identity - EAP Identity 186d49e1aeSJan Lentfer * 196d49e1aeSJan Lentfer * This field is used to set the real user identity or NAI (for 206d49e1aeSJan Lentfer * EAP-PSK/PAX/SAKE/GPSK). 216d49e1aeSJan Lentfer */ 226d49e1aeSJan Lentfer u8 *identity; 236d49e1aeSJan Lentfer 246d49e1aeSJan Lentfer /** 256d49e1aeSJan Lentfer * identity_len - EAP Identity length 266d49e1aeSJan Lentfer */ 276d49e1aeSJan Lentfer size_t identity_len; 286d49e1aeSJan Lentfer 296d49e1aeSJan Lentfer /** 306d49e1aeSJan Lentfer * anonymous_identity - Anonymous EAP Identity 316d49e1aeSJan Lentfer * 326d49e1aeSJan Lentfer * This field is used for unencrypted use with EAP types that support 336d49e1aeSJan Lentfer * different tunnelled identity, e.g., EAP-TTLS, in order to reveal the 346d49e1aeSJan Lentfer * real identity (identity field) only to the authentication server. 356d49e1aeSJan Lentfer * 366d49e1aeSJan Lentfer * If not set, the identity field will be used for both unencrypted and 376d49e1aeSJan Lentfer * protected fields. 383ff40c12SJohn Marino * 393ff40c12SJohn Marino * This field can also be used with EAP-SIM/AKA/AKA' to store the 403ff40c12SJohn Marino * pseudonym identity. 416d49e1aeSJan Lentfer */ 426d49e1aeSJan Lentfer u8 *anonymous_identity; 436d49e1aeSJan Lentfer 446d49e1aeSJan Lentfer /** 456d49e1aeSJan Lentfer * anonymous_identity_len - Length of anonymous_identity 466d49e1aeSJan Lentfer */ 476d49e1aeSJan Lentfer size_t anonymous_identity_len; 486d49e1aeSJan Lentfer 49*a1157835SDaniel Fojt u8 *imsi_identity; 50*a1157835SDaniel Fojt size_t imsi_identity_len; 51*a1157835SDaniel Fojt 526d49e1aeSJan Lentfer /** 536d49e1aeSJan Lentfer * password - Password string for EAP 546d49e1aeSJan Lentfer * 556d49e1aeSJan Lentfer * This field can include either the plaintext password (default 566d49e1aeSJan Lentfer * option) or a NtPasswordHash (16-byte MD4 hash of the unicode 576d49e1aeSJan Lentfer * presentation of the password) if flags field has 586d49e1aeSJan Lentfer * EAP_CONFIG_FLAGS_PASSWORD_NTHASH bit set to 1. NtPasswordHash can 596d49e1aeSJan Lentfer * only be used with authentication mechanism that use this hash as the 606d49e1aeSJan Lentfer * starting point for operation: MSCHAP and MSCHAPv2 (EAP-MSCHAPv2, 616d49e1aeSJan Lentfer * EAP-TTLS/MSCHAPv2, EAP-TTLS/MSCHAP, LEAP). 626d49e1aeSJan Lentfer * 636d49e1aeSJan Lentfer * In addition, this field is used to configure a pre-shared key for 646d49e1aeSJan Lentfer * EAP-PSK/PAX/SAKE/GPSK. The length of the PSK must be 16 for EAP-PSK 656d49e1aeSJan Lentfer * and EAP-PAX and 32 for EAP-SAKE. EAP-GPSK can use a variable length 666d49e1aeSJan Lentfer * PSK. 676d49e1aeSJan Lentfer */ 686d49e1aeSJan Lentfer u8 *password; 696d49e1aeSJan Lentfer 706d49e1aeSJan Lentfer /** 716d49e1aeSJan Lentfer * password_len - Length of password field 726d49e1aeSJan Lentfer */ 736d49e1aeSJan Lentfer size_t password_len; 746d49e1aeSJan Lentfer 756d49e1aeSJan Lentfer /** 766d49e1aeSJan Lentfer * ca_cert - File path to CA certificate file (PEM/DER) 776d49e1aeSJan Lentfer * 786d49e1aeSJan Lentfer * This file can have one or more trusted CA certificates. If ca_cert 796d49e1aeSJan Lentfer * and ca_path are not included, server certificate will not be 806d49e1aeSJan Lentfer * verified. This is insecure and a trusted CA certificate should 816d49e1aeSJan Lentfer * always be configured when using EAP-TLS/TTLS/PEAP. Full path to the 826d49e1aeSJan Lentfer * file should be used since working directory may change when 836d49e1aeSJan Lentfer * wpa_supplicant is run in the background. 846d49e1aeSJan Lentfer * 856d49e1aeSJan Lentfer * Alternatively, a named configuration blob can be used by setting 866d49e1aeSJan Lentfer * this to blob://blob_name. 876d49e1aeSJan Lentfer * 883ff40c12SJohn Marino * Alternatively, this can be used to only perform matching of the 893ff40c12SJohn Marino * server certificate (SHA-256 hash of the DER encoded X.509 903ff40c12SJohn Marino * certificate). In this case, the possible CA certificates in the 913ff40c12SJohn Marino * server certificate chain are ignored and only the server certificate 923ff40c12SJohn Marino * is verified. This is configured with the following format: 933ff40c12SJohn Marino * hash:://server/sha256/cert_hash_in_hex 943ff40c12SJohn Marino * For example: "hash://server/sha256/ 953ff40c12SJohn Marino * 5a1bc1296205e6fdbe3979728efe3920798885c1c4590b5f90f43222d239ca6a" 963ff40c12SJohn Marino * 976d49e1aeSJan Lentfer * On Windows, trusted CA certificates can be loaded from the system 986d49e1aeSJan Lentfer * certificate store by setting this to cert_store://name, e.g., 996d49e1aeSJan Lentfer * ca_cert="cert_store://CA" or ca_cert="cert_store://ROOT". 1006d49e1aeSJan Lentfer * Note that when running wpa_supplicant as an application, the user 1016d49e1aeSJan Lentfer * certificate store (My user account) is used, whereas computer store 1026d49e1aeSJan Lentfer * (Computer account) is used when running wpasvc as a service. 1036d49e1aeSJan Lentfer */ 104*a1157835SDaniel Fojt char *ca_cert; 1056d49e1aeSJan Lentfer 1066d49e1aeSJan Lentfer /** 1076d49e1aeSJan Lentfer * ca_path - Directory path for CA certificate files (PEM) 1086d49e1aeSJan Lentfer * 1096d49e1aeSJan Lentfer * This path may contain multiple CA certificates in OpenSSL format. 1106d49e1aeSJan Lentfer * Common use for this is to point to system trusted CA list which is 1116d49e1aeSJan Lentfer * often installed into directory like /etc/ssl/certs. If configured, 1126d49e1aeSJan Lentfer * these certificates are added to the list of trusted CAs. ca_cert 1136d49e1aeSJan Lentfer * may also be included in that case, but it is not required. 1146d49e1aeSJan Lentfer */ 115*a1157835SDaniel Fojt char *ca_path; 1166d49e1aeSJan Lentfer 1176d49e1aeSJan Lentfer /** 1186d49e1aeSJan Lentfer * client_cert - File path to client certificate file (PEM/DER) 1196d49e1aeSJan Lentfer * 1206d49e1aeSJan Lentfer * This field is used with EAP method that use TLS authentication. 1216d49e1aeSJan Lentfer * Usually, this is only configured for EAP-TLS, even though this could 1226d49e1aeSJan Lentfer * in theory be used with EAP-TTLS and EAP-PEAP, too. Full path to the 1236d49e1aeSJan Lentfer * file should be used since working directory may change when 1246d49e1aeSJan Lentfer * wpa_supplicant is run in the background. 1256d49e1aeSJan Lentfer * 1266d49e1aeSJan Lentfer * Alternatively, a named configuration blob can be used by setting 1276d49e1aeSJan Lentfer * this to blob://blob_name. 1286d49e1aeSJan Lentfer */ 129*a1157835SDaniel Fojt char *client_cert; 1306d49e1aeSJan Lentfer 1316d49e1aeSJan Lentfer /** 1326d49e1aeSJan Lentfer * private_key - File path to client private key file (PEM/DER/PFX) 1336d49e1aeSJan Lentfer * 1346d49e1aeSJan Lentfer * When PKCS#12/PFX file (.p12/.pfx) is used, client_cert should be 1356d49e1aeSJan Lentfer * commented out. Both the private key and certificate will be read 1366d49e1aeSJan Lentfer * from the PKCS#12 file in this case. Full path to the file should be 1376d49e1aeSJan Lentfer * used since working directory may change when wpa_supplicant is run 1386d49e1aeSJan Lentfer * in the background. 1396d49e1aeSJan Lentfer * 1406d49e1aeSJan Lentfer * Windows certificate store can be used by leaving client_cert out and 1416d49e1aeSJan Lentfer * configuring private_key in one of the following formats: 1426d49e1aeSJan Lentfer * 1436d49e1aeSJan Lentfer * cert://substring_to_match 1446d49e1aeSJan Lentfer * 1456d49e1aeSJan Lentfer * hash://certificate_thumbprint_in_hex 1466d49e1aeSJan Lentfer * 1476d49e1aeSJan Lentfer * For example: private_key="hash://63093aa9c47f56ae88334c7b65a4" 1486d49e1aeSJan Lentfer * 1496d49e1aeSJan Lentfer * Note that when running wpa_supplicant as an application, the user 1506d49e1aeSJan Lentfer * certificate store (My user account) is used, whereas computer store 1516d49e1aeSJan Lentfer * (Computer account) is used when running wpasvc as a service. 1526d49e1aeSJan Lentfer * 1536d49e1aeSJan Lentfer * Alternatively, a named configuration blob can be used by setting 1546d49e1aeSJan Lentfer * this to blob://blob_name. 1556d49e1aeSJan Lentfer */ 156*a1157835SDaniel Fojt char *private_key; 1576d49e1aeSJan Lentfer 1586d49e1aeSJan Lentfer /** 1596d49e1aeSJan Lentfer * private_key_passwd - Password for private key file 1606d49e1aeSJan Lentfer * 1616d49e1aeSJan Lentfer * If left out, this will be asked through control interface. 1626d49e1aeSJan Lentfer */ 163*a1157835SDaniel Fojt char *private_key_passwd; 1646d49e1aeSJan Lentfer 1656d49e1aeSJan Lentfer /** 1666d49e1aeSJan Lentfer * dh_file - File path to DH/DSA parameters file (in PEM format) 1676d49e1aeSJan Lentfer * 1686d49e1aeSJan Lentfer * This is an optional configuration file for setting parameters for an 1696d49e1aeSJan Lentfer * ephemeral DH key exchange. In most cases, the default RSA 1706d49e1aeSJan Lentfer * authentication does not use this configuration. However, it is 1716d49e1aeSJan Lentfer * possible setup RSA to use ephemeral DH key exchange. In addition, 1726d49e1aeSJan Lentfer * ciphers with DSA keys always use ephemeral DH keys. This can be used 1736d49e1aeSJan Lentfer * to achieve forward secrecy. If the file is in DSA parameters format, 1746d49e1aeSJan Lentfer * it will be automatically converted into DH params. Full path to the 1756d49e1aeSJan Lentfer * file should be used since working directory may change when 1766d49e1aeSJan Lentfer * wpa_supplicant is run in the background. 1776d49e1aeSJan Lentfer * 1786d49e1aeSJan Lentfer * Alternatively, a named configuration blob can be used by setting 1796d49e1aeSJan Lentfer * this to blob://blob_name. 1806d49e1aeSJan Lentfer */ 181*a1157835SDaniel Fojt char *dh_file; 1826d49e1aeSJan Lentfer 1836d49e1aeSJan Lentfer /** 1846d49e1aeSJan Lentfer * subject_match - Constraint for server certificate subject 1856d49e1aeSJan Lentfer * 1866d49e1aeSJan Lentfer * This substring is matched against the subject of the authentication 187*a1157835SDaniel Fojt * server certificate. If this string is set, the server certificate is 1886d49e1aeSJan Lentfer * only accepted if it contains this string in the subject. The subject 1896d49e1aeSJan Lentfer * string is in following format: 1906d49e1aeSJan Lentfer * 1916d49e1aeSJan Lentfer * /C=US/ST=CA/L=San Francisco/CN=Test AS/emailAddress=as@n.example.com 192*a1157835SDaniel Fojt * 193*a1157835SDaniel Fojt * Note: Since this is a substring match, this cannot be used securely 194*a1157835SDaniel Fojt * to do a suffix match against a possible domain name in the CN entry. 195*a1157835SDaniel Fojt * For such a use case, domain_suffix_match should be used instead. 1966d49e1aeSJan Lentfer */ 197*a1157835SDaniel Fojt char *subject_match; 198*a1157835SDaniel Fojt 199*a1157835SDaniel Fojt /** 200*a1157835SDaniel Fojt * check_cert_subject - Constraint for server certificate subject fields 201*a1157835SDaniel Fojt * 202*a1157835SDaniel Fojt * If check_cert_subject is set, the value of every field will be 203*a1157835SDaniel Fojt * checked against the DN of the subject in the authentication server 204*a1157835SDaniel Fojt * certificate. If the values do not match, the certificate verification 205*a1157835SDaniel Fojt * will fail, rejecting the server. This option allows wpa_supplicant to 206*a1157835SDaniel Fojt * match every individual field in the right order against the DN of the 207*a1157835SDaniel Fojt * subject in the server certificate. 208*a1157835SDaniel Fojt * 209*a1157835SDaniel Fojt * For example, check_cert_subject=C=US/O=XX/OU=ABC/OU=XYZ/CN=1234 will 210*a1157835SDaniel Fojt * check every individual DN field of the subject in the server 211*a1157835SDaniel Fojt * certificate. If OU=XYZ comes first in terms of the order in the 212*a1157835SDaniel Fojt * server certificate (DN field of server certificate 213*a1157835SDaniel Fojt * C=US/O=XX/OU=XYZ/OU=ABC/CN=1234), wpa_supplicant will reject the 214*a1157835SDaniel Fojt * server because the order of 'OU' is not matching the specified string 215*a1157835SDaniel Fojt * in check_cert_subject. 216*a1157835SDaniel Fojt * 217*a1157835SDaniel Fojt * This option also allows '*' as a wildcard. This option has some 218*a1157835SDaniel Fojt * limitation. 219*a1157835SDaniel Fojt * It can only be used as per the following example. 220*a1157835SDaniel Fojt * 221*a1157835SDaniel Fojt * For example, check_cert_subject=C=US/O=XX/OU=Production* and we have 222*a1157835SDaniel Fojt * two servers and DN of the subject in the first server certificate is 223*a1157835SDaniel Fojt * (C=US/O=XX/OU=Production Unit) and DN of the subject in the second 224*a1157835SDaniel Fojt * server is (C=US/O=XX/OU=Production Factory). In this case, 225*a1157835SDaniel Fojt * wpa_supplicant will allow both servers because the value of 'OU' 226*a1157835SDaniel Fojt * field in both server certificates matches 'OU' value in 227*a1157835SDaniel Fojt * 'check_cert_subject' up to 'wildcard'. 228*a1157835SDaniel Fojt * 229*a1157835SDaniel Fojt * (Allow all servers, e.g., check_cert_subject=*) 230*a1157835SDaniel Fojt */ 231*a1157835SDaniel Fojt char *check_cert_subject; 232*a1157835SDaniel Fojt 233*a1157835SDaniel Fojt /** 234*a1157835SDaniel Fojt * check_cert_subject2 - Constraint for server certificate subject fields 235*a1157835SDaniel Fojt * 236*a1157835SDaniel Fojt * This field is like check_cert_subject, but used for phase 2 (inside 237*a1157835SDaniel Fojt * EAP-TTLS/PEAP/FAST tunnel) authentication. 238*a1157835SDaniel Fojt */ 239*a1157835SDaniel Fojt char *check_cert_subject2; 2406d49e1aeSJan Lentfer 2416d49e1aeSJan Lentfer /** 2426d49e1aeSJan Lentfer * altsubject_match - Constraint for server certificate alt. subject 2436d49e1aeSJan Lentfer * 2446d49e1aeSJan Lentfer * Semicolon separated string of entries to be matched against the 2456d49e1aeSJan Lentfer * alternative subject name of the authentication server certificate. 246*a1157835SDaniel Fojt * If this string is set, the server certificate is only accepted if it 2476d49e1aeSJan Lentfer * contains one of the entries in an alternative subject name 2486d49e1aeSJan Lentfer * extension. 2496d49e1aeSJan Lentfer * 2506d49e1aeSJan Lentfer * altSubjectName string is in following format: TYPE:VALUE 2516d49e1aeSJan Lentfer * 2526d49e1aeSJan Lentfer * Example: EMAIL:server@example.com 2536d49e1aeSJan Lentfer * Example: DNS:server.example.com;DNS:server2.example.com 2546d49e1aeSJan Lentfer * 2556d49e1aeSJan Lentfer * Following types are supported: EMAIL, DNS, URI 2566d49e1aeSJan Lentfer */ 257*a1157835SDaniel Fojt char *altsubject_match; 2586d49e1aeSJan Lentfer 2596d49e1aeSJan Lentfer /** 2603ff40c12SJohn Marino * domain_suffix_match - Constraint for server domain name 2613ff40c12SJohn Marino * 262*a1157835SDaniel Fojt * If set, this semicolon deliminated list of FQDNs is used as suffix 263*a1157835SDaniel Fojt * match requirements for the server certificate in SubjectAltName 264*a1157835SDaniel Fojt * dNSName element(s). If a matching dNSName is found against any of the 265*a1157835SDaniel Fojt * specified values, this constraint is met. If no dNSName values are 266*a1157835SDaniel Fojt * present, this constraint is matched against SubjectName CN using same 267*a1157835SDaniel Fojt * suffix match comparison. Suffix match here means that the host/domain 268*a1157835SDaniel Fojt * name is compared case-insentively one label at a time starting from 269*a1157835SDaniel Fojt * the top-level domain and all the labels in domain_suffix_match shall 270*a1157835SDaniel Fojt * be included in the certificate. The certificate may include 271*a1157835SDaniel Fojt * additional sub-level labels in addition to the required labels. 2723ff40c12SJohn Marino * 2733ff40c12SJohn Marino * For example, domain_suffix_match=example.com would match 274*a1157835SDaniel Fojt * test.example.com but would not match test-example.com. Multiple 275*a1157835SDaniel Fojt * match options can be specified in following manner: 276*a1157835SDaniel Fojt * example.org;example.com. 2773ff40c12SJohn Marino */ 2783ff40c12SJohn Marino char *domain_suffix_match; 2793ff40c12SJohn Marino 2803ff40c12SJohn Marino /** 281*a1157835SDaniel Fojt * domain_match - Constraint for server domain name 282*a1157835SDaniel Fojt * 283*a1157835SDaniel Fojt * If set, this FQDN is used as a full match requirement for the 284*a1157835SDaniel Fojt * server certificate in SubjectAltName dNSName element(s). If a 285*a1157835SDaniel Fojt * matching dNSName is found, this constraint is met. If no dNSName 286*a1157835SDaniel Fojt * values are present, this constraint is matched against SubjectName CN 287*a1157835SDaniel Fojt * using same full match comparison. This behavior is similar to 288*a1157835SDaniel Fojt * domain_suffix_match, but has the requirement of a full match, i.e., 289*a1157835SDaniel Fojt * no subdomains or wildcard matches are allowed. Case-insensitive 290*a1157835SDaniel Fojt * comparison is used, so "Example.com" matches "example.com", but would 291*a1157835SDaniel Fojt * not match "test.Example.com". 292*a1157835SDaniel Fojt * 293*a1157835SDaniel Fojt * More than one match string can be provided by using semicolons to 294*a1157835SDaniel Fojt * separate the strings (e.g., example.org;example.com). When multiple 295*a1157835SDaniel Fojt * strings are specified, a match with any one of the values is 296*a1157835SDaniel Fojt * considered a sufficient match for the certificate, i.e., the 297*a1157835SDaniel Fojt * conditions are ORed together. 298*a1157835SDaniel Fojt */ 299*a1157835SDaniel Fojt char *domain_match; 300*a1157835SDaniel Fojt 301*a1157835SDaniel Fojt /** 3026d49e1aeSJan Lentfer * ca_cert2 - File path to CA certificate file (PEM/DER) (Phase 2) 3036d49e1aeSJan Lentfer * 3046d49e1aeSJan Lentfer * This file can have one or more trusted CA certificates. If ca_cert2 3056d49e1aeSJan Lentfer * and ca_path2 are not included, server certificate will not be 3066d49e1aeSJan Lentfer * verified. This is insecure and a trusted CA certificate should 3076d49e1aeSJan Lentfer * always be configured. Full path to the file should be used since 3086d49e1aeSJan Lentfer * working directory may change when wpa_supplicant is run in the 3096d49e1aeSJan Lentfer * background. 3106d49e1aeSJan Lentfer * 3116d49e1aeSJan Lentfer * This field is like ca_cert, but used for phase 2 (inside 3126d49e1aeSJan Lentfer * EAP-TTLS/PEAP/FAST tunnel) authentication. 3136d49e1aeSJan Lentfer * 3146d49e1aeSJan Lentfer * Alternatively, a named configuration blob can be used by setting 3156d49e1aeSJan Lentfer * this to blob://blob_name. 3166d49e1aeSJan Lentfer */ 317*a1157835SDaniel Fojt char *ca_cert2; 3186d49e1aeSJan Lentfer 3196d49e1aeSJan Lentfer /** 3206d49e1aeSJan Lentfer * ca_path2 - Directory path for CA certificate files (PEM) (Phase 2) 3216d49e1aeSJan Lentfer * 3226d49e1aeSJan Lentfer * This path may contain multiple CA certificates in OpenSSL format. 3236d49e1aeSJan Lentfer * Common use for this is to point to system trusted CA list which is 3246d49e1aeSJan Lentfer * often installed into directory like /etc/ssl/certs. If configured, 3256d49e1aeSJan Lentfer * these certificates are added to the list of trusted CAs. ca_cert 3266d49e1aeSJan Lentfer * may also be included in that case, but it is not required. 3276d49e1aeSJan Lentfer * 3286d49e1aeSJan Lentfer * This field is like ca_path, but used for phase 2 (inside 3296d49e1aeSJan Lentfer * EAP-TTLS/PEAP/FAST tunnel) authentication. 3306d49e1aeSJan Lentfer */ 331*a1157835SDaniel Fojt char *ca_path2; 3326d49e1aeSJan Lentfer 3336d49e1aeSJan Lentfer /** 3346d49e1aeSJan Lentfer * client_cert2 - File path to client certificate file 3356d49e1aeSJan Lentfer * 3366d49e1aeSJan Lentfer * This field is like client_cert, but used for phase 2 (inside 3376d49e1aeSJan Lentfer * EAP-TTLS/PEAP/FAST tunnel) authentication. Full path to the 3386d49e1aeSJan Lentfer * file should be used since working directory may change when 3396d49e1aeSJan Lentfer * wpa_supplicant is run in the background. 3406d49e1aeSJan Lentfer * 3416d49e1aeSJan Lentfer * Alternatively, a named configuration blob can be used by setting 3426d49e1aeSJan Lentfer * this to blob://blob_name. 3436d49e1aeSJan Lentfer */ 344*a1157835SDaniel Fojt char *client_cert2; 3456d49e1aeSJan Lentfer 3466d49e1aeSJan Lentfer /** 3476d49e1aeSJan Lentfer * private_key2 - File path to client private key file 3486d49e1aeSJan Lentfer * 3496d49e1aeSJan Lentfer * This field is like private_key, but used for phase 2 (inside 3506d49e1aeSJan Lentfer * EAP-TTLS/PEAP/FAST tunnel) authentication. Full path to the 3516d49e1aeSJan Lentfer * file should be used since working directory may change when 3526d49e1aeSJan Lentfer * wpa_supplicant is run in the background. 3536d49e1aeSJan Lentfer * 3546d49e1aeSJan Lentfer * Alternatively, a named configuration blob can be used by setting 3556d49e1aeSJan Lentfer * this to blob://blob_name. 3566d49e1aeSJan Lentfer */ 357*a1157835SDaniel Fojt char *private_key2; 3586d49e1aeSJan Lentfer 3596d49e1aeSJan Lentfer /** 3606d49e1aeSJan Lentfer * private_key2_passwd - Password for private key file 3616d49e1aeSJan Lentfer * 3626d49e1aeSJan Lentfer * This field is like private_key_passwd, but used for phase 2 (inside 3636d49e1aeSJan Lentfer * EAP-TTLS/PEAP/FAST tunnel) authentication. 3646d49e1aeSJan Lentfer */ 365*a1157835SDaniel Fojt char *private_key2_passwd; 3666d49e1aeSJan Lentfer 3676d49e1aeSJan Lentfer /** 3686d49e1aeSJan Lentfer * dh_file2 - File path to DH/DSA parameters file (in PEM format) 3696d49e1aeSJan Lentfer * 3706d49e1aeSJan Lentfer * This field is like dh_file, but used for phase 2 (inside 3716d49e1aeSJan Lentfer * EAP-TTLS/PEAP/FAST tunnel) authentication. Full path to the 3726d49e1aeSJan Lentfer * file should be used since working directory may change when 3736d49e1aeSJan Lentfer * wpa_supplicant is run in the background. 3746d49e1aeSJan Lentfer * 3756d49e1aeSJan Lentfer * Alternatively, a named configuration blob can be used by setting 3766d49e1aeSJan Lentfer * this to blob://blob_name. 3776d49e1aeSJan Lentfer */ 378*a1157835SDaniel Fojt char *dh_file2; 3796d49e1aeSJan Lentfer 3806d49e1aeSJan Lentfer /** 3816d49e1aeSJan Lentfer * subject_match2 - Constraint for server certificate subject 3826d49e1aeSJan Lentfer * 3836d49e1aeSJan Lentfer * This field is like subject_match, but used for phase 2 (inside 3846d49e1aeSJan Lentfer * EAP-TTLS/PEAP/FAST tunnel) authentication. 3856d49e1aeSJan Lentfer */ 386*a1157835SDaniel Fojt char *subject_match2; 3876d49e1aeSJan Lentfer 3886d49e1aeSJan Lentfer /** 3896d49e1aeSJan Lentfer * altsubject_match2 - Constraint for server certificate alt. subject 3906d49e1aeSJan Lentfer * 3916d49e1aeSJan Lentfer * This field is like altsubject_match, but used for phase 2 (inside 3926d49e1aeSJan Lentfer * EAP-TTLS/PEAP/FAST tunnel) authentication. 3936d49e1aeSJan Lentfer */ 394*a1157835SDaniel Fojt char *altsubject_match2; 3956d49e1aeSJan Lentfer 3966d49e1aeSJan Lentfer /** 3973ff40c12SJohn Marino * domain_suffix_match2 - Constraint for server domain name 3983ff40c12SJohn Marino * 3993ff40c12SJohn Marino * This field is like domain_suffix_match, but used for phase 2 (inside 4003ff40c12SJohn Marino * EAP-TTLS/PEAP/FAST tunnel) authentication. 4013ff40c12SJohn Marino */ 4023ff40c12SJohn Marino char *domain_suffix_match2; 4033ff40c12SJohn Marino 4043ff40c12SJohn Marino /** 405*a1157835SDaniel Fojt * domain_match2 - Constraint for server domain name 406*a1157835SDaniel Fojt * 407*a1157835SDaniel Fojt * This field is like domain_match, but used for phase 2 (inside 408*a1157835SDaniel Fojt * EAP-TTLS/PEAP/FAST tunnel) authentication. 409*a1157835SDaniel Fojt */ 410*a1157835SDaniel Fojt char *domain_match2; 411*a1157835SDaniel Fojt 412*a1157835SDaniel Fojt /** 4136d49e1aeSJan Lentfer * eap_methods - Allowed EAP methods 4146d49e1aeSJan Lentfer * 4156d49e1aeSJan Lentfer * (vendor=EAP_VENDOR_IETF,method=EAP_TYPE_NONE) terminated list of 4166d49e1aeSJan Lentfer * allowed EAP methods or %NULL if all methods are accepted. 4176d49e1aeSJan Lentfer */ 4186d49e1aeSJan Lentfer struct eap_method_type *eap_methods; 4196d49e1aeSJan Lentfer 4206d49e1aeSJan Lentfer /** 4216d49e1aeSJan Lentfer * phase1 - Phase 1 (outer authentication) parameters 4226d49e1aeSJan Lentfer * 4236d49e1aeSJan Lentfer * String with field-value pairs, e.g., "peapver=0" or 4246d49e1aeSJan Lentfer * "peapver=1 peaplabel=1". 4256d49e1aeSJan Lentfer * 4266d49e1aeSJan Lentfer * 'peapver' can be used to force which PEAP version (0 or 1) is used. 4276d49e1aeSJan Lentfer * 4286d49e1aeSJan Lentfer * 'peaplabel=1' can be used to force new label, "client PEAP 4296d49e1aeSJan Lentfer * encryption", to be used during key derivation when PEAPv1 or newer. 4306d49e1aeSJan Lentfer * 4316d49e1aeSJan Lentfer * Most existing PEAPv1 implementation seem to be using the old label, 4326d49e1aeSJan Lentfer * "client EAP encryption", and wpa_supplicant is now using that as the 4336d49e1aeSJan Lentfer * default value. 4346d49e1aeSJan Lentfer * 4356d49e1aeSJan Lentfer * Some servers, e.g., Radiator, may require peaplabel=1 configuration 4366d49e1aeSJan Lentfer * to interoperate with PEAPv1; see eap_testing.txt for more details. 4376d49e1aeSJan Lentfer * 4386d49e1aeSJan Lentfer * 'peap_outer_success=0' can be used to terminate PEAP authentication 4396d49e1aeSJan Lentfer * on tunneled EAP-Success. This is required with some RADIUS servers 4406d49e1aeSJan Lentfer * that implement draft-josefsson-pppext-eap-tls-eap-05.txt (e.g., 4416d49e1aeSJan Lentfer * Lucent NavisRadius v4.4.0 with PEAP in "IETF Draft 5" mode). 4426d49e1aeSJan Lentfer * 4436d49e1aeSJan Lentfer * include_tls_length=1 can be used to force wpa_supplicant to include 4446d49e1aeSJan Lentfer * TLS Message Length field in all TLS messages even if they are not 4456d49e1aeSJan Lentfer * fragmented. 4466d49e1aeSJan Lentfer * 4476d49e1aeSJan Lentfer * sim_min_num_chal=3 can be used to configure EAP-SIM to require three 4486d49e1aeSJan Lentfer * challenges (by default, it accepts 2 or 3). 4496d49e1aeSJan Lentfer * 4506d49e1aeSJan Lentfer * result_ind=1 can be used to enable EAP-SIM and EAP-AKA to use 4516d49e1aeSJan Lentfer * protected result indication. 4526d49e1aeSJan Lentfer * 4536d49e1aeSJan Lentfer * fast_provisioning option can be used to enable in-line provisioning 4546d49e1aeSJan Lentfer * of EAP-FAST credentials (PAC): 4556d49e1aeSJan Lentfer * 0 = disabled, 4566d49e1aeSJan Lentfer * 1 = allow unauthenticated provisioning, 4576d49e1aeSJan Lentfer * 2 = allow authenticated provisioning, 4586d49e1aeSJan Lentfer * 3 = allow both unauthenticated and authenticated provisioning 4596d49e1aeSJan Lentfer * 4606d49e1aeSJan Lentfer * fast_max_pac_list_len=num option can be used to set the maximum 4616d49e1aeSJan Lentfer * number of PAC entries to store in a PAC list (default: 10). 4626d49e1aeSJan Lentfer * 4636d49e1aeSJan Lentfer * fast_pac_format=binary option can be used to select binary format 4646d49e1aeSJan Lentfer * for storing PAC entries in order to save some space (the default 4656d49e1aeSJan Lentfer * text format uses about 2.5 times the size of minimal binary format). 4666d49e1aeSJan Lentfer * 4676d49e1aeSJan Lentfer * crypto_binding option can be used to control PEAPv0 cryptobinding 4686d49e1aeSJan Lentfer * behavior: 4696d49e1aeSJan Lentfer * 0 = do not use cryptobinding (default) 4706d49e1aeSJan Lentfer * 1 = use cryptobinding if server supports it 4716d49e1aeSJan Lentfer * 2 = require cryptobinding 4726d49e1aeSJan Lentfer * 4736d49e1aeSJan Lentfer * EAP-WSC (WPS) uses following options: pin=Device_Password and 4746d49e1aeSJan Lentfer * uuid=Device_UUID 475*a1157835SDaniel Fojt * 476*a1157835SDaniel Fojt * For wired IEEE 802.1X authentication, "allow_canned_success=1" can be 477*a1157835SDaniel Fojt * used to configure a mode that allows EAP-Success (and EAP-Failure) 478*a1157835SDaniel Fojt * without going through authentication step. Some switches use such 479*a1157835SDaniel Fojt * sequence when forcing the port to be authorized/unauthorized or as a 480*a1157835SDaniel Fojt * fallback option if the authentication server is unreachable. By 481*a1157835SDaniel Fojt * default, wpa_supplicant discards such frames to protect against 482*a1157835SDaniel Fojt * potential attacks by rogue devices, but this option can be used to 483*a1157835SDaniel Fojt * disable that protection for cases where the server/authenticator does 484*a1157835SDaniel Fojt * not need to be authenticated. 4856d49e1aeSJan Lentfer */ 4866d49e1aeSJan Lentfer char *phase1; 4876d49e1aeSJan Lentfer 4886d49e1aeSJan Lentfer /** 4896d49e1aeSJan Lentfer * phase2 - Phase2 (inner authentication with TLS tunnel) parameters 4906d49e1aeSJan Lentfer * 4916d49e1aeSJan Lentfer * String with field-value pairs, e.g., "auth=MSCHAPV2" for EAP-PEAP or 492*a1157835SDaniel Fojt * "autheap=MSCHAPV2 autheap=MD5" for EAP-TTLS. "mschapv2_retry=0" can 493*a1157835SDaniel Fojt * be used to disable MSCHAPv2 password retry in authentication failure 494*a1157835SDaniel Fojt * cases. 4956d49e1aeSJan Lentfer */ 4966d49e1aeSJan Lentfer char *phase2; 4976d49e1aeSJan Lentfer 4986d49e1aeSJan Lentfer /** 4996d49e1aeSJan Lentfer * pcsc - Parameters for PC/SC smartcard interface for USIM and GSM SIM 5006d49e1aeSJan Lentfer * 5016d49e1aeSJan Lentfer * This field is used to configure PC/SC smartcard interface. 5026d49e1aeSJan Lentfer * Currently, the only configuration is whether this field is %NULL (do 5036d49e1aeSJan Lentfer * not use PC/SC) or non-NULL (e.g., "") to enable PC/SC. 5046d49e1aeSJan Lentfer * 5056d49e1aeSJan Lentfer * This field is used for EAP-SIM and EAP-AKA. 5066d49e1aeSJan Lentfer */ 5076d49e1aeSJan Lentfer char *pcsc; 5086d49e1aeSJan Lentfer 5096d49e1aeSJan Lentfer /** 5106d49e1aeSJan Lentfer * pin - PIN for USIM, GSM SIM, and smartcards 5116d49e1aeSJan Lentfer * 5126d49e1aeSJan Lentfer * This field is used to configure PIN for SIM and smartcards for 5136d49e1aeSJan Lentfer * EAP-SIM and EAP-AKA. In addition, this is used with EAP-TLS if a 5146d49e1aeSJan Lentfer * smartcard is used for private key operations. 5156d49e1aeSJan Lentfer * 5166d49e1aeSJan Lentfer * If left out, this will be asked through control interface. 5176d49e1aeSJan Lentfer */ 5186d49e1aeSJan Lentfer char *pin; 5196d49e1aeSJan Lentfer 5206d49e1aeSJan Lentfer /** 5216d49e1aeSJan Lentfer * engine - Enable OpenSSL engine (e.g., for smartcard access) 5226d49e1aeSJan Lentfer * 5236d49e1aeSJan Lentfer * This is used if private key operations for EAP-TLS are performed 5246d49e1aeSJan Lentfer * using a smartcard. 5256d49e1aeSJan Lentfer */ 5266d49e1aeSJan Lentfer int engine; 5276d49e1aeSJan Lentfer 5286d49e1aeSJan Lentfer /** 5296d49e1aeSJan Lentfer * engine_id - Engine ID for OpenSSL engine 5306d49e1aeSJan Lentfer * 5316d49e1aeSJan Lentfer * "opensc" to select OpenSC engine or "pkcs11" to select PKCS#11 5326d49e1aeSJan Lentfer * engine. 5336d49e1aeSJan Lentfer * 5346d49e1aeSJan Lentfer * This is used if private key operations for EAP-TLS are performed 5356d49e1aeSJan Lentfer * using a smartcard. 5366d49e1aeSJan Lentfer */ 5376d49e1aeSJan Lentfer char *engine_id; 5386d49e1aeSJan Lentfer 5396d49e1aeSJan Lentfer /** 5406d49e1aeSJan Lentfer * engine2 - Enable OpenSSL engine (e.g., for smartcard) (Phase 2) 5416d49e1aeSJan Lentfer * 5426d49e1aeSJan Lentfer * This is used if private key operations for EAP-TLS are performed 5436d49e1aeSJan Lentfer * using a smartcard. 5446d49e1aeSJan Lentfer * 5456d49e1aeSJan Lentfer * This field is like engine, but used for phase 2 (inside 5466d49e1aeSJan Lentfer * EAP-TTLS/PEAP/FAST tunnel) authentication. 5476d49e1aeSJan Lentfer */ 5486d49e1aeSJan Lentfer int engine2; 5496d49e1aeSJan Lentfer 5506d49e1aeSJan Lentfer 5516d49e1aeSJan Lentfer /** 5526d49e1aeSJan Lentfer * pin2 - PIN for USIM, GSM SIM, and smartcards (Phase 2) 5536d49e1aeSJan Lentfer * 5546d49e1aeSJan Lentfer * This field is used to configure PIN for SIM and smartcards for 5556d49e1aeSJan Lentfer * EAP-SIM and EAP-AKA. In addition, this is used with EAP-TLS if a 5566d49e1aeSJan Lentfer * smartcard is used for private key operations. 5576d49e1aeSJan Lentfer * 5586d49e1aeSJan Lentfer * This field is like pin2, but used for phase 2 (inside 5596d49e1aeSJan Lentfer * EAP-TTLS/PEAP/FAST tunnel) authentication. 5606d49e1aeSJan Lentfer * 5616d49e1aeSJan Lentfer * If left out, this will be asked through control interface. 5626d49e1aeSJan Lentfer */ 5636d49e1aeSJan Lentfer char *pin2; 5646d49e1aeSJan Lentfer 5656d49e1aeSJan Lentfer /** 5666d49e1aeSJan Lentfer * engine2_id - Engine ID for OpenSSL engine (Phase 2) 5676d49e1aeSJan Lentfer * 5686d49e1aeSJan Lentfer * "opensc" to select OpenSC engine or "pkcs11" to select PKCS#11 5696d49e1aeSJan Lentfer * engine. 5706d49e1aeSJan Lentfer * 5716d49e1aeSJan Lentfer * This is used if private key operations for EAP-TLS are performed 5726d49e1aeSJan Lentfer * using a smartcard. 5736d49e1aeSJan Lentfer * 5746d49e1aeSJan Lentfer * This field is like engine_id, but used for phase 2 (inside 5756d49e1aeSJan Lentfer * EAP-TTLS/PEAP/FAST tunnel) authentication. 5766d49e1aeSJan Lentfer */ 5776d49e1aeSJan Lentfer char *engine2_id; 5786d49e1aeSJan Lentfer 5796d49e1aeSJan Lentfer 5806d49e1aeSJan Lentfer /** 5816d49e1aeSJan Lentfer * key_id - Key ID for OpenSSL engine 5826d49e1aeSJan Lentfer * 5836d49e1aeSJan Lentfer * This is used if private key operations for EAP-TLS are performed 5846d49e1aeSJan Lentfer * using a smartcard. 5856d49e1aeSJan Lentfer */ 5866d49e1aeSJan Lentfer char *key_id; 5876d49e1aeSJan Lentfer 5886d49e1aeSJan Lentfer /** 5896d49e1aeSJan Lentfer * cert_id - Cert ID for OpenSSL engine 5906d49e1aeSJan Lentfer * 5916d49e1aeSJan Lentfer * This is used if the certificate operations for EAP-TLS are performed 5926d49e1aeSJan Lentfer * using a smartcard. 5936d49e1aeSJan Lentfer */ 5946d49e1aeSJan Lentfer char *cert_id; 5956d49e1aeSJan Lentfer 5966d49e1aeSJan Lentfer /** 5976d49e1aeSJan Lentfer * ca_cert_id - CA Cert ID for OpenSSL engine 5986d49e1aeSJan Lentfer * 5996d49e1aeSJan Lentfer * This is used if the CA certificate for EAP-TLS is on a smartcard. 6006d49e1aeSJan Lentfer */ 6016d49e1aeSJan Lentfer char *ca_cert_id; 6026d49e1aeSJan Lentfer 6036d49e1aeSJan Lentfer /** 6046d49e1aeSJan Lentfer * key2_id - Key ID for OpenSSL engine (phase2) 6056d49e1aeSJan Lentfer * 6066d49e1aeSJan Lentfer * This is used if private key operations for EAP-TLS are performed 6076d49e1aeSJan Lentfer * using a smartcard. 6086d49e1aeSJan Lentfer */ 6096d49e1aeSJan Lentfer char *key2_id; 6106d49e1aeSJan Lentfer 6116d49e1aeSJan Lentfer /** 6126d49e1aeSJan Lentfer * cert2_id - Cert ID for OpenSSL engine (phase2) 6136d49e1aeSJan Lentfer * 6146d49e1aeSJan Lentfer * This is used if the certificate operations for EAP-TLS are performed 6156d49e1aeSJan Lentfer * using a smartcard. 6166d49e1aeSJan Lentfer */ 6176d49e1aeSJan Lentfer char *cert2_id; 6186d49e1aeSJan Lentfer 6196d49e1aeSJan Lentfer /** 6206d49e1aeSJan Lentfer * ca_cert2_id - CA Cert ID for OpenSSL engine (phase2) 6216d49e1aeSJan Lentfer * 6226d49e1aeSJan Lentfer * This is used if the CA certificate for EAP-TLS is on a smartcard. 6236d49e1aeSJan Lentfer */ 6246d49e1aeSJan Lentfer char *ca_cert2_id; 6256d49e1aeSJan Lentfer 6266d49e1aeSJan Lentfer /** 6276d49e1aeSJan Lentfer * otp - One-time-password 6286d49e1aeSJan Lentfer * 6296d49e1aeSJan Lentfer * This field should not be set in configuration step. It is only used 6306d49e1aeSJan Lentfer * internally when OTP is entered through the control interface. 6316d49e1aeSJan Lentfer */ 6326d49e1aeSJan Lentfer u8 *otp; 6336d49e1aeSJan Lentfer 6346d49e1aeSJan Lentfer /** 6356d49e1aeSJan Lentfer * otp_len - Length of the otp field 6366d49e1aeSJan Lentfer */ 6376d49e1aeSJan Lentfer size_t otp_len; 6386d49e1aeSJan Lentfer 6396d49e1aeSJan Lentfer /** 6406d49e1aeSJan Lentfer * pending_req_identity - Whether there is a pending identity request 6416d49e1aeSJan Lentfer * 6426d49e1aeSJan Lentfer * This field should not be set in configuration step. It is only used 6436d49e1aeSJan Lentfer * internally when control interface is used to request needed 6446d49e1aeSJan Lentfer * information. 6456d49e1aeSJan Lentfer */ 6466d49e1aeSJan Lentfer int pending_req_identity; 6476d49e1aeSJan Lentfer 6486d49e1aeSJan Lentfer /** 6496d49e1aeSJan Lentfer * pending_req_password - Whether there is a pending password request 6506d49e1aeSJan Lentfer * 6516d49e1aeSJan Lentfer * This field should not be set in configuration step. It is only used 6526d49e1aeSJan Lentfer * internally when control interface is used to request needed 6536d49e1aeSJan Lentfer * information. 6546d49e1aeSJan Lentfer */ 6556d49e1aeSJan Lentfer int pending_req_password; 6566d49e1aeSJan Lentfer 6576d49e1aeSJan Lentfer /** 6586d49e1aeSJan Lentfer * pending_req_pin - Whether there is a pending PIN request 6596d49e1aeSJan Lentfer * 6606d49e1aeSJan Lentfer * This field should not be set in configuration step. It is only used 6616d49e1aeSJan Lentfer * internally when control interface is used to request needed 6626d49e1aeSJan Lentfer * information. 6636d49e1aeSJan Lentfer */ 6646d49e1aeSJan Lentfer int pending_req_pin; 6656d49e1aeSJan Lentfer 6666d49e1aeSJan Lentfer /** 6676d49e1aeSJan Lentfer * pending_req_new_password - Pending password update request 6686d49e1aeSJan Lentfer * 6696d49e1aeSJan Lentfer * This field should not be set in configuration step. It is only used 6706d49e1aeSJan Lentfer * internally when control interface is used to request needed 6716d49e1aeSJan Lentfer * information. 6726d49e1aeSJan Lentfer */ 6736d49e1aeSJan Lentfer int pending_req_new_password; 6746d49e1aeSJan Lentfer 6756d49e1aeSJan Lentfer /** 6766d49e1aeSJan Lentfer * pending_req_passphrase - Pending passphrase request 6776d49e1aeSJan Lentfer * 6786d49e1aeSJan Lentfer * This field should not be set in configuration step. It is only used 6796d49e1aeSJan Lentfer * internally when control interface is used to request needed 6806d49e1aeSJan Lentfer * information. 6816d49e1aeSJan Lentfer */ 6826d49e1aeSJan Lentfer int pending_req_passphrase; 6836d49e1aeSJan Lentfer 6846d49e1aeSJan Lentfer /** 685*a1157835SDaniel Fojt * pending_req_sim - Pending SIM request 686*a1157835SDaniel Fojt * 687*a1157835SDaniel Fojt * This field should not be set in configuration step. It is only used 688*a1157835SDaniel Fojt * internally when control interface is used to request needed 689*a1157835SDaniel Fojt * information. 690*a1157835SDaniel Fojt */ 691*a1157835SDaniel Fojt int pending_req_sim; 692*a1157835SDaniel Fojt 693*a1157835SDaniel Fojt /** 6946d49e1aeSJan Lentfer * pending_req_otp - Whether there is a pending OTP request 6956d49e1aeSJan Lentfer * 6966d49e1aeSJan Lentfer * This field should not be set in configuration step. It is only used 6976d49e1aeSJan Lentfer * internally when control interface is used to request needed 6986d49e1aeSJan Lentfer * information. 6996d49e1aeSJan Lentfer */ 7006d49e1aeSJan Lentfer char *pending_req_otp; 7016d49e1aeSJan Lentfer 7026d49e1aeSJan Lentfer /** 7036d49e1aeSJan Lentfer * pending_req_otp_len - Length of the pending OTP request 7046d49e1aeSJan Lentfer */ 7056d49e1aeSJan Lentfer size_t pending_req_otp_len; 7066d49e1aeSJan Lentfer 7076d49e1aeSJan Lentfer /** 7086d49e1aeSJan Lentfer * pac_file - File path or blob name for the PAC entries (EAP-FAST) 7096d49e1aeSJan Lentfer * 7106d49e1aeSJan Lentfer * wpa_supplicant will need to be able to create this file and write 7116d49e1aeSJan Lentfer * updates to it when PAC is being provisioned or refreshed. Full path 7126d49e1aeSJan Lentfer * to the file should be used since working directory may change when 7136d49e1aeSJan Lentfer * wpa_supplicant is run in the background. 7146d49e1aeSJan Lentfer * Alternatively, a named configuration blob can be used by setting 7156d49e1aeSJan Lentfer * this to blob://blob_name. 7166d49e1aeSJan Lentfer */ 7176d49e1aeSJan Lentfer char *pac_file; 7186d49e1aeSJan Lentfer 7196d49e1aeSJan Lentfer /** 7206d49e1aeSJan Lentfer * mschapv2_retry - MSCHAPv2 retry in progress 7216d49e1aeSJan Lentfer * 7226d49e1aeSJan Lentfer * This field is used internally by EAP-MSCHAPv2 and should not be set 7236d49e1aeSJan Lentfer * as part of configuration. 7246d49e1aeSJan Lentfer */ 7256d49e1aeSJan Lentfer int mschapv2_retry; 7266d49e1aeSJan Lentfer 7276d49e1aeSJan Lentfer /** 7286d49e1aeSJan Lentfer * new_password - New password for password update 7296d49e1aeSJan Lentfer * 7306d49e1aeSJan Lentfer * This field is used during MSCHAPv2 password update. This is normally 7316d49e1aeSJan Lentfer * requested from the user through the control interface and not set 7326d49e1aeSJan Lentfer * from configuration. 7336d49e1aeSJan Lentfer */ 7346d49e1aeSJan Lentfer u8 *new_password; 7356d49e1aeSJan Lentfer 7366d49e1aeSJan Lentfer /** 7376d49e1aeSJan Lentfer * new_password_len - Length of new_password field 7386d49e1aeSJan Lentfer */ 7396d49e1aeSJan Lentfer size_t new_password_len; 7406d49e1aeSJan Lentfer 7416d49e1aeSJan Lentfer /** 7426d49e1aeSJan Lentfer * fragment_size - Maximum EAP fragment size in bytes (default 1398) 7436d49e1aeSJan Lentfer * 7446d49e1aeSJan Lentfer * This value limits the fragment size for EAP methods that support 7456d49e1aeSJan Lentfer * fragmentation (e.g., EAP-TLS and EAP-PEAP). This value should be set 7466d49e1aeSJan Lentfer * small enough to make the EAP messages fit in MTU of the network 7476d49e1aeSJan Lentfer * interface used for EAPOL. The default value is suitable for most 7486d49e1aeSJan Lentfer * cases. 7496d49e1aeSJan Lentfer */ 7506d49e1aeSJan Lentfer int fragment_size; 7516d49e1aeSJan Lentfer 7526d49e1aeSJan Lentfer #define EAP_CONFIG_FLAGS_PASSWORD_NTHASH BIT(0) 7533ff40c12SJohn Marino #define EAP_CONFIG_FLAGS_EXT_PASSWORD BIT(1) 7546d49e1aeSJan Lentfer /** 7556d49e1aeSJan Lentfer * flags - Network configuration flags (bitfield) 7566d49e1aeSJan Lentfer * 7576d49e1aeSJan Lentfer * This variable is used for internal flags to describe further details 7586d49e1aeSJan Lentfer * for the network parameters. 7596d49e1aeSJan Lentfer * bit 0 = password is represented as a 16-byte NtPasswordHash value 7606d49e1aeSJan Lentfer * instead of plaintext password 7613ff40c12SJohn Marino * bit 1 = password is stored in external storage; the value in the 7623ff40c12SJohn Marino * password field is the name of that external entry 7636d49e1aeSJan Lentfer */ 7646d49e1aeSJan Lentfer u32 flags; 7653ff40c12SJohn Marino 7663ff40c12SJohn Marino /** 7673ff40c12SJohn Marino * ocsp - Whether to use/require OCSP to check server certificate 7683ff40c12SJohn Marino * 7693ff40c12SJohn Marino * 0 = do not use OCSP stapling (TLS certificate status extension) 7703ff40c12SJohn Marino * 1 = try to use OCSP stapling, but not require response 7713ff40c12SJohn Marino * 2 = require valid OCSP stapling response 7723ff40c12SJohn Marino */ 7733ff40c12SJohn Marino int ocsp; 7743ff40c12SJohn Marino 7753ff40c12SJohn Marino /** 7763ff40c12SJohn Marino * external_sim_resp - Response from external SIM processing 7773ff40c12SJohn Marino * 7783ff40c12SJohn Marino * This field should not be set in configuration step. It is only used 7793ff40c12SJohn Marino * internally when control interface is used to request external 7803ff40c12SJohn Marino * SIM/USIM processing. 7813ff40c12SJohn Marino */ 7823ff40c12SJohn Marino char *external_sim_resp; 783*a1157835SDaniel Fojt 784*a1157835SDaniel Fojt /** 785*a1157835SDaniel Fojt * sim_num - User selected SIM identifier 786*a1157835SDaniel Fojt * 787*a1157835SDaniel Fojt * This variable is used for identifying which SIM is used if the system 788*a1157835SDaniel Fojt * has more than one. 789*a1157835SDaniel Fojt */ 790*a1157835SDaniel Fojt int sim_num; 791*a1157835SDaniel Fojt 792*a1157835SDaniel Fojt /** 793*a1157835SDaniel Fojt * openssl_ciphers - OpenSSL cipher string 794*a1157835SDaniel Fojt * 795*a1157835SDaniel Fojt * This is an OpenSSL specific configuration option for configuring the 796*a1157835SDaniel Fojt * ciphers for this connection. If not set, the default cipher suite 797*a1157835SDaniel Fojt * list is used. 798*a1157835SDaniel Fojt */ 799*a1157835SDaniel Fojt char *openssl_ciphers; 800*a1157835SDaniel Fojt 801*a1157835SDaniel Fojt /** 802*a1157835SDaniel Fojt * erp - Whether EAP Re-authentication Protocol (ERP) is enabled 803*a1157835SDaniel Fojt */ 804*a1157835SDaniel Fojt int erp; 805*a1157835SDaniel Fojt 806*a1157835SDaniel Fojt /** 807*a1157835SDaniel Fojt * pending_ext_cert_check - External server certificate check status 808*a1157835SDaniel Fojt * 809*a1157835SDaniel Fojt * This field should not be set in configuration step. It is only used 810*a1157835SDaniel Fojt * internally when control interface is used to request external 811*a1157835SDaniel Fojt * validation of server certificate chain. 812*a1157835SDaniel Fojt */ 813*a1157835SDaniel Fojt enum { 814*a1157835SDaniel Fojt NO_CHECK = 0, 815*a1157835SDaniel Fojt PENDING_CHECK, 816*a1157835SDaniel Fojt EXT_CERT_CHECK_GOOD, 817*a1157835SDaniel Fojt EXT_CERT_CHECK_BAD, 818*a1157835SDaniel Fojt } pending_ext_cert_check; 819*a1157835SDaniel Fojt 820*a1157835SDaniel Fojt int teap_anon_dh; 8216d49e1aeSJan Lentfer }; 8226d49e1aeSJan Lentfer 8236d49e1aeSJan Lentfer 8246d49e1aeSJan Lentfer /** 8256d49e1aeSJan Lentfer * struct wpa_config_blob - Named configuration blob 8266d49e1aeSJan Lentfer * 8276d49e1aeSJan Lentfer * This data structure is used to provide storage for binary objects to store 8286d49e1aeSJan Lentfer * abstract information like certificates and private keys inlined with the 8296d49e1aeSJan Lentfer * configuration data. 8306d49e1aeSJan Lentfer */ 8316d49e1aeSJan Lentfer struct wpa_config_blob { 8326d49e1aeSJan Lentfer /** 8336d49e1aeSJan Lentfer * name - Blob name 8346d49e1aeSJan Lentfer */ 8356d49e1aeSJan Lentfer char *name; 8366d49e1aeSJan Lentfer 8376d49e1aeSJan Lentfer /** 8386d49e1aeSJan Lentfer * data - Pointer to binary data 8396d49e1aeSJan Lentfer */ 8406d49e1aeSJan Lentfer u8 *data; 8416d49e1aeSJan Lentfer 8426d49e1aeSJan Lentfer /** 8436d49e1aeSJan Lentfer * len - Length of binary data 8446d49e1aeSJan Lentfer */ 8456d49e1aeSJan Lentfer size_t len; 8466d49e1aeSJan Lentfer 8476d49e1aeSJan Lentfer /** 8486d49e1aeSJan Lentfer * next - Pointer to next blob in the configuration 8496d49e1aeSJan Lentfer */ 8506d49e1aeSJan Lentfer struct wpa_config_blob *next; 8516d49e1aeSJan Lentfer }; 8526d49e1aeSJan Lentfer 8536d49e1aeSJan Lentfer #endif /* EAP_CONFIG_H */ 854