1 /* 2 * EAP peer configuration data 3 * Copyright (c) 2003-2019, Jouni Malinen <j@w1.fi> 4 * 5 * This software may be distributed under the terms of the BSD license. 6 * See README for more details. 7 */ 8 9 #ifndef EAP_CONFIG_H 10 #define EAP_CONFIG_H 11 12 /** 13 * struct eap_peer_cert_config - EAP peer certificate configuration/credential 14 */ 15 struct eap_peer_cert_config { 16 /** 17 * ca_cert - File path to CA certificate file (PEM/DER) 18 * 19 * This file can have one or more trusted CA certificates. If ca_cert 20 * and ca_path are not included, server certificate will not be 21 * verified. This is insecure and a trusted CA certificate should 22 * always be configured when using EAP-TLS/TTLS/PEAP. Full path to the 23 * file should be used since working directory may change when 24 * wpa_supplicant is run in the background. 25 * 26 * Alternatively, a named configuration blob can be used by setting 27 * this to blob://blob_name. 28 * 29 * Alternatively, this can be used to only perform matching of the 30 * server certificate (SHA-256 hash of the DER encoded X.509 31 * certificate). In this case, the possible CA certificates in the 32 * server certificate chain are ignored and only the server certificate 33 * is verified. This is configured with the following format: 34 * hash:://server/sha256/cert_hash_in_hex 35 * For example: "hash://server/sha256/ 36 * 5a1bc1296205e6fdbe3979728efe3920798885c1c4590b5f90f43222d239ca6a" 37 * 38 * On Windows, trusted CA certificates can be loaded from the system 39 * certificate store by setting this to cert_store://name, e.g., 40 * ca_cert="cert_store://CA" or ca_cert="cert_store://ROOT". 41 * Note that when running wpa_supplicant as an application, the user 42 * certificate store (My user account) is used, whereas computer store 43 * (Computer account) is used when running wpasvc as a service. 44 */ 45 char *ca_cert; 46 47 /** 48 * ca_path - Directory path for CA certificate files (PEM) 49 * 50 * This path may contain multiple CA certificates in OpenSSL format. 51 * Common use for this is to point to system trusted CA list which is 52 * often installed into directory like /etc/ssl/certs. If configured, 53 * these certificates are added to the list of trusted CAs. ca_cert 54 * may also be included in that case, but it is not required. 55 */ 56 char *ca_path; 57 58 /** 59 * client_cert - File path to client certificate file (PEM/DER) 60 * 61 * This field is used with EAP method that use TLS authentication. 62 * Usually, this is only configured for EAP-TLS, even though this could 63 * in theory be used with EAP-TTLS and EAP-PEAP, too. Full path to the 64 * file should be used since working directory may change when 65 * wpa_supplicant is run in the background. 66 * 67 * Alternatively, a named configuration blob can be used by setting 68 * this to blob://blob_name. 69 */ 70 char *client_cert; 71 72 /** 73 * private_key - File path to client private key file (PEM/DER/PFX) 74 * 75 * When PKCS#12/PFX file (.p12/.pfx) is used, client_cert should be 76 * commented out. Both the private key and certificate will be read 77 * from the PKCS#12 file in this case. Full path to the file should be 78 * used since working directory may change when wpa_supplicant is run 79 * in the background. 80 * 81 * Windows certificate store can be used by leaving client_cert out and 82 * configuring private_key in one of the following formats: 83 * 84 * cert://substring_to_match 85 * 86 * hash://certificate_thumbprint_in_hex 87 * 88 * For example: private_key="hash://63093aa9c47f56ae88334c7b65a4" 89 * 90 * Note that when running wpa_supplicant as an application, the user 91 * certificate store (My user account) is used, whereas computer store 92 * (Computer account) is used when running wpasvc as a service. 93 * 94 * Alternatively, a named configuration blob can be used by setting 95 * this to blob://blob_name. 96 */ 97 char *private_key; 98 99 /** 100 * private_key_passwd - Password for private key file 101 * 102 * If left out, this will be asked through control interface. 103 */ 104 char *private_key_passwd; 105 106 /** 107 * subject_match - Constraint for server certificate subject 108 * 109 * This substring is matched against the subject of the authentication 110 * server certificate. If this string is set, the server certificate is 111 * only accepted if it contains this string in the subject. The subject 112 * string is in following format: 113 * 114 * /C=US/ST=CA/L=San Francisco/CN=Test AS/emailAddress=as@n.example.com 115 * 116 * Note: Since this is a substring match, this cannot be used securely 117 * to do a suffix match against a possible domain name in the CN entry. 118 * For such a use case, domain_suffix_match should be used instead. 119 */ 120 char *subject_match; 121 122 /** 123 * check_cert_subject - Constraint for server certificate subject fields 124 * 125 * If check_cert_subject is set, the value of every field will be 126 * checked against the DN of the subject in the authentication server 127 * certificate. If the values do not match, the certificate verification 128 * will fail, rejecting the server. This option allows wpa_supplicant to 129 * match every individual field in the right order against the DN of the 130 * subject in the server certificate. 131 * 132 * For example, check_cert_subject=C=US/O=XX/OU=ABC/OU=XYZ/CN=1234 will 133 * check every individual DN field of the subject in the server 134 * certificate. If OU=XYZ comes first in terms of the order in the 135 * server certificate (DN field of server certificate 136 * C=US/O=XX/OU=XYZ/OU=ABC/CN=1234), wpa_supplicant will reject the 137 * server because the order of 'OU' is not matching the specified string 138 * in check_cert_subject. 139 * 140 * This option also allows '*' as a wildcard. This option has some 141 * limitation. 142 * It can only be used as per the following example. 143 * 144 * For example, check_cert_subject=C=US/O=XX/OU=Production* and we have 145 * two servers and DN of the subject in the first server certificate is 146 * (C=US/O=XX/OU=Production Unit) and DN of the subject in the second 147 * server is (C=US/O=XX/OU=Production Factory). In this case, 148 * wpa_supplicant will allow both servers because the value of 'OU' 149 * field in both server certificates matches 'OU' value in 150 * 'check_cert_subject' up to 'wildcard'. 151 * 152 * (Allow all servers, e.g., check_cert_subject=*) 153 */ 154 char *check_cert_subject; 155 156 /** 157 * altsubject_match - Constraint for server certificate alt. subject 158 * 159 * Semicolon separated string of entries to be matched against the 160 * alternative subject name of the authentication server certificate. 161 * If this string is set, the server certificate is only accepted if it 162 * contains one of the entries in an alternative subject name 163 * extension. 164 * 165 * altSubjectName string is in following format: TYPE:VALUE 166 * 167 * Example: EMAIL:server@example.com 168 * Example: DNS:server.example.com;DNS:server2.example.com 169 * 170 * Following types are supported: EMAIL, DNS, URI 171 */ 172 char *altsubject_match; 173 174 /** 175 * domain_suffix_match - Constraint for server domain name 176 * 177 * If set, this semicolon deliminated list of FQDNs is used as suffix 178 * match requirements for the server certificate in SubjectAltName 179 * dNSName element(s). If a matching dNSName is found against any of the 180 * specified values, this constraint is met. If no dNSName values are 181 * present, this constraint is matched against SubjectName CN using same 182 * suffix match comparison. Suffix match here means that the host/domain 183 * name is compared case-insentively one label at a time starting from 184 * the top-level domain and all the labels in domain_suffix_match shall 185 * be included in the certificate. The certificate may include 186 * additional sub-level labels in addition to the required labels. 187 * 188 * For example, domain_suffix_match=example.com would match 189 * test.example.com but would not match test-example.com. Multiple 190 * match options can be specified in following manner: 191 * example.org;example.com. 192 */ 193 char *domain_suffix_match; 194 195 /** 196 * domain_match - Constraint for server domain name 197 * 198 * If set, this FQDN is used as a full match requirement for the 199 * server certificate in SubjectAltName dNSName element(s). If a 200 * matching dNSName is found, this constraint is met. If no dNSName 201 * values are present, this constraint is matched against SubjectName CN 202 * using same full match comparison. This behavior is similar to 203 * domain_suffix_match, but has the requirement of a full match, i.e., 204 * no subdomains or wildcard matches are allowed. Case-insensitive 205 * comparison is used, so "Example.com" matches "example.com", but would 206 * not match "test.Example.com". 207 * 208 * More than one match string can be provided by using semicolons to 209 * separate the strings (e.g., example.org;example.com). When multiple 210 * strings are specified, a match with any one of the values is 211 * considered a sufficient match for the certificate, i.e., the 212 * conditions are ORed together. 213 */ 214 char *domain_match; 215 216 /** 217 * pin - PIN for USIM, GSM SIM, and smartcards 218 * 219 * This field is used to configure PIN for SIM and smartcards for 220 * EAP-SIM and EAP-AKA. In addition, this is used with EAP-TLS if a 221 * smartcard is used for private key operations. 222 * 223 * If left out, this will be asked through control interface. 224 */ 225 char *pin; 226 227 /** 228 * engine - Enable OpenSSL engine (e.g., for smartcard access) 229 * 230 * This is used if private key operations for EAP-TLS are performed 231 * using a smartcard. 232 */ 233 int engine; 234 235 /** 236 * engine_id - Engine ID for OpenSSL engine 237 * 238 * "opensc" to select OpenSC engine or "pkcs11" to select PKCS#11 239 * engine. 240 * 241 * This is used if private key operations for EAP-TLS are performed 242 * using a smartcard. 243 */ 244 char *engine_id; 245 246 247 /** 248 * key_id - Key ID for OpenSSL engine 249 * 250 * This is used if private key operations for EAP-TLS are performed 251 * using a smartcard. 252 */ 253 char *key_id; 254 255 /** 256 * cert_id - Cert ID for OpenSSL engine 257 * 258 * This is used if the certificate operations for EAP-TLS are performed 259 * using a smartcard. 260 */ 261 char *cert_id; 262 263 /** 264 * ca_cert_id - CA Cert ID for OpenSSL engine 265 * 266 * This is used if the CA certificate for EAP-TLS is on a smartcard. 267 */ 268 char *ca_cert_id; 269 270 /** 271 * ocsp - Whether to use/require OCSP to check server certificate 272 * 273 * 0 = do not use OCSP stapling (TLS certificate status extension) 274 * 1 = try to use OCSP stapling, but not require response 275 * 2 = require valid OCSP stapling response 276 */ 277 int ocsp; 278 }; 279 280 /** 281 * struct eap_peer_config - EAP peer configuration/credentials 282 */ 283 struct eap_peer_config { 284 /** 285 * identity - EAP Identity 286 * 287 * This field is used to set the real user identity or NAI (for 288 * EAP-PSK/PAX/SAKE/GPSK). 289 */ 290 u8 *identity; 291 292 /** 293 * identity_len - EAP Identity length 294 */ 295 size_t identity_len; 296 297 /** 298 * anonymous_identity - Anonymous EAP Identity 299 * 300 * This field is used for unencrypted use with EAP types that support 301 * different tunnelled identity, e.g., EAP-TTLS, in order to reveal the 302 * real identity (identity field) only to the authentication server. 303 * 304 * If not set, the identity field will be used for both unencrypted and 305 * protected fields. 306 * 307 * This field can also be used with EAP-SIM/AKA/AKA' to store the 308 * pseudonym identity. 309 */ 310 u8 *anonymous_identity; 311 312 /** 313 * anonymous_identity_len - Length of anonymous_identity 314 */ 315 size_t anonymous_identity_len; 316 317 u8 *imsi_identity; 318 size_t imsi_identity_len; 319 320 /** 321 * imsi_privacy_cert - IMSI privacy certificate 322 * 323 * This field is used with EAP-SIM/AKA/AKA' to encrypt the permanent 324 * identity (IMSI) to improve privacy. The referenced PEM-encoded 325 * X.509v3 certificate needs to include a 2048-bit RSA public key and 326 * this is from the operator who authenticates the SIM/USIM. 327 */ 328 char *imsi_privacy_cert; 329 330 /** 331 * imsi_privacy_attr - IMSI privacy attribute 332 * 333 * This field is used to help the EAP-SIM/AKA/AKA' server to identify 334 * the used certificate (and as such, the matching private key). This 335 * is set to an attribute in name=value format if the operator needs 336 * this information. 337 */ 338 char *imsi_privacy_attr; 339 340 /** 341 * strict_conservative_peer_mode - Whether the strict conservative peer 342 * mode is enabled or not 343 * 344 * This field is used to handle the reponse of AT_PERMANENT_ID_REQ 345 * for EAP-SIM/AKA/AKA', in conservative peer mode, a client error would 346 * be sent to the server, but it allows to send the permanent identity 347 * in some special cases according to 4.6.2 of RFC 4187; With the strict 348 * mode, it never sends the permanent identity to server for privacy concern. 349 */ 350 int strict_conservative_peer_mode; 351 352 /** 353 * machine_identity - EAP Identity for machine credential 354 * 355 * This field is used to set the machine identity or NAI for cases where 356 * and explicit machine credential (instead of or in addition to a user 357 * credential (from %identity) is needed. 358 */ 359 u8 *machine_identity; 360 361 /** 362 * machine_identity_len - EAP Identity length for machine credential 363 */ 364 size_t machine_identity_len; 365 366 /** 367 * password - Password string for EAP 368 * 369 * This field can include either the plaintext password (default 370 * option) or a NtPasswordHash (16-byte MD4 hash of the unicode 371 * presentation of the password) if flags field has 372 * EAP_CONFIG_FLAGS_PASSWORD_NTHASH bit set to 1. NtPasswordHash can 373 * only be used with authentication mechanism that use this hash as the 374 * starting point for operation: MSCHAP and MSCHAPv2 (EAP-MSCHAPv2, 375 * EAP-TTLS/MSCHAPv2, EAP-TTLS/MSCHAP, LEAP). 376 * 377 * In addition, this field is used to configure a pre-shared key for 378 * EAP-PSK/PAX/SAKE/GPSK. The length of the PSK must be 16 for EAP-PSK 379 * and EAP-PAX and 32 for EAP-SAKE. EAP-GPSK can use a variable length 380 * PSK. 381 */ 382 u8 *password; 383 384 /** 385 * password_len - Length of password field 386 */ 387 size_t password_len; 388 389 /** 390 * machine_password - Password string for EAP machine credential 391 * 392 * This field is used when machine credential based on username/password 393 * is needed instead of a user credential (from %password). See 394 * %password for more details on the format. 395 */ 396 u8 *machine_password; 397 398 /** 399 * machine_password_len - Length of machine credential password field 400 */ 401 size_t machine_password_len; 402 403 /** 404 * cert - Certificate parameters for Phase 1 405 */ 406 struct eap_peer_cert_config cert; 407 408 /** 409 * phase2_cert - Certificate parameters for Phase 2 410 * 411 * This is like cert, but used for Phase 2 (inside 412 * EAP-TTLS/PEAP/FAST/TEAP tunnel) authentication. 413 */ 414 struct eap_peer_cert_config phase2_cert; 415 416 /** 417 * machine_cert - Certificate parameters for Phase 2 machine credential 418 * 419 * This is like cert, but used for Phase 2 (inside EAP-TEAP tunnel) 420 * authentication with machine credentials (while phase2_cert is used 421 * for user credentials). 422 */ 423 struct eap_peer_cert_config machine_cert; 424 425 /** 426 * eap_methods - Allowed EAP methods 427 * 428 * (vendor=EAP_VENDOR_IETF,method=EAP_TYPE_NONE) terminated list of 429 * allowed EAP methods or %NULL if all methods are accepted. 430 */ 431 struct eap_method_type *eap_methods; 432 433 /** 434 * phase1 - Phase 1 (outer authentication) parameters 435 * 436 * String with field-value pairs, e.g., "peapver=0" or 437 * "peapver=1 peaplabel=1". 438 * 439 * 'peapver' can be used to force which PEAP version (0 or 1) is used. 440 * 441 * 'peaplabel=1' can be used to force new label, "client PEAP 442 * encryption", to be used during key derivation when PEAPv1 or newer. 443 * 444 * Most existing PEAPv1 implementation seem to be using the old label, 445 * "client EAP encryption", and wpa_supplicant is now using that as the 446 * default value. 447 * 448 * Some servers, e.g., Radiator, may require peaplabel=1 configuration 449 * to interoperate with PEAPv1; see eap_testing.txt for more details. 450 * 451 * 'peap_outer_success=0' can be used to terminate PEAP authentication 452 * on tunneled EAP-Success. This is required with some RADIUS servers 453 * that implement draft-josefsson-pppext-eap-tls-eap-05.txt (e.g., 454 * Lucent NavisRadius v4.4.0 with PEAP in "IETF Draft 5" mode). 455 * 456 * include_tls_length=1 can be used to force wpa_supplicant to include 457 * TLS Message Length field in all TLS messages even if they are not 458 * fragmented. 459 * 460 * sim_min_num_chal=3 can be used to configure EAP-SIM to require three 461 * challenges (by default, it accepts 2 or 3). 462 * 463 * result_ind=1 can be used to enable EAP-SIM and EAP-AKA to use 464 * protected result indication. 465 * 466 * fast_provisioning option can be used to enable in-line provisioning 467 * of EAP-FAST credentials (PAC): 468 * 0 = disabled, 469 * 1 = allow unauthenticated provisioning, 470 * 2 = allow authenticated provisioning, 471 * 3 = allow both unauthenticated and authenticated provisioning 472 * 473 * fast_max_pac_list_len=num option can be used to set the maximum 474 * number of PAC entries to store in a PAC list (default: 10). 475 * 476 * fast_pac_format=binary option can be used to select binary format 477 * for storing PAC entries in order to save some space (the default 478 * text format uses about 2.5 times the size of minimal binary format). 479 * 480 * crypto_binding option can be used to control PEAPv0 cryptobinding 481 * behavior: 482 * 0 = do not use cryptobinding (default) 483 * 1 = use cryptobinding if server supports it 484 * 2 = require cryptobinding 485 * 486 * phase2_auth option can be used to control Phase 2 (i.e., within TLS 487 * tunnel) behavior for PEAP: 488 * 0 = do not require Phase 2 authentication 489 * 1 = require Phase 2 authentication when client certificate 490 * (private_key/client_cert) is not used and TLS session resumption was 491 * not used (default) 492 * 2 = require Phase 2 authentication in all cases 493 * 494 * EAP-WSC (WPS) uses following options: pin=Device_Password and 495 * uuid=Device_UUID 496 * 497 * For wired IEEE 802.1X authentication, "allow_canned_success=1" can be 498 * used to configure a mode that allows EAP-Success (and EAP-Failure) 499 * without going through authentication step. Some switches use such 500 * sequence when forcing the port to be authorized/unauthorized or as a 501 * fallback option if the authentication server is unreachable. By 502 * default, wpa_supplicant discards such frames to protect against 503 * potential attacks by rogue devices, but this option can be used to 504 * disable that protection for cases where the server/authenticator does 505 * not need to be authenticated. 506 */ 507 char *phase1; 508 509 /** 510 * phase2 - Phase2 (inner authentication with TLS tunnel) parameters 511 * 512 * String with field-value pairs, e.g., "auth=MSCHAPV2" for EAP-PEAP or 513 * "autheap=MSCHAPV2 autheap=MD5" for EAP-TTLS. "mschapv2_retry=0" can 514 * be used to disable MSCHAPv2 password retry in authentication failure 515 * cases. 516 */ 517 char *phase2; 518 519 /** 520 * machine_phase2 - Phase2 parameters for machine credentials 521 * 522 * See phase2 for more details. 523 */ 524 char *machine_phase2; 525 526 /** 527 * pcsc - Parameters for PC/SC smartcard interface for USIM and GSM SIM 528 * 529 * This field is used to configure PC/SC smartcard interface. 530 * Currently, the only configuration is whether this field is %NULL (do 531 * not use PC/SC) or non-NULL (e.g., "") to enable PC/SC. 532 * 533 * This field is used for EAP-SIM and EAP-AKA. 534 */ 535 char *pcsc; 536 537 /** 538 * otp - One-time-password 539 * 540 * This field should not be set in configuration step. It is only used 541 * internally when OTP is entered through the control interface. 542 */ 543 u8 *otp; 544 545 /** 546 * otp_len - Length of the otp field 547 */ 548 size_t otp_len; 549 550 /** 551 * pending_req_identity - Whether there is a pending identity request 552 * 553 * This field should not be set in configuration step. It is only used 554 * internally when control interface is used to request needed 555 * information. 556 */ 557 int pending_req_identity; 558 559 /** 560 * pending_req_password - Whether there is a pending password request 561 * 562 * This field should not be set in configuration step. It is only used 563 * internally when control interface is used to request needed 564 * information. 565 */ 566 int pending_req_password; 567 568 /** 569 * pending_req_pin - Whether there is a pending PIN request 570 * 571 * This field should not be set in configuration step. It is only used 572 * internally when control interface is used to request needed 573 * information. 574 */ 575 int pending_req_pin; 576 577 /** 578 * pending_req_new_password - Pending password update request 579 * 580 * This field should not be set in configuration step. It is only used 581 * internally when control interface is used to request needed 582 * information. 583 */ 584 int pending_req_new_password; 585 586 /** 587 * pending_req_passphrase - Pending passphrase request 588 * 589 * This field should not be set in configuration step. It is only used 590 * internally when control interface is used to request needed 591 * information. 592 */ 593 int pending_req_passphrase; 594 595 /** 596 * pending_req_sim - Pending SIM request 597 * 598 * This field should not be set in configuration step. It is only used 599 * internally when control interface is used to request needed 600 * information. 601 */ 602 int pending_req_sim; 603 604 /** 605 * pending_req_otp - Whether there is a pending OTP request 606 * 607 * This field should not be set in configuration step. It is only used 608 * internally when control interface is used to request needed 609 * information. 610 */ 611 char *pending_req_otp; 612 613 /** 614 * pending_req_otp_len - Length of the pending OTP request 615 */ 616 size_t pending_req_otp_len; 617 618 /** 619 * pac_file - File path or blob name for the PAC entries (EAP-FAST) 620 * 621 * wpa_supplicant will need to be able to create this file and write 622 * updates to it when PAC is being provisioned or refreshed. Full path 623 * to the file should be used since working directory may change when 624 * wpa_supplicant is run in the background. 625 * Alternatively, a named configuration blob can be used by setting 626 * this to blob://blob_name. 627 */ 628 char *pac_file; 629 630 /** 631 * mschapv2_retry - MSCHAPv2 retry in progress 632 * 633 * This field is used internally by EAP-MSCHAPv2 and should not be set 634 * as part of configuration. 635 */ 636 int mschapv2_retry; 637 638 /** 639 * new_password - New password for password update 640 * 641 * This field is used during MSCHAPv2 password update. This is normally 642 * requested from the user through the control interface and not set 643 * from configuration. 644 */ 645 u8 *new_password; 646 647 /** 648 * new_password_len - Length of new_password field 649 */ 650 size_t new_password_len; 651 652 /** 653 * fragment_size - Maximum EAP fragment size in bytes (default 1398) 654 * 655 * This value limits the fragment size for EAP methods that support 656 * fragmentation (e.g., EAP-TLS and EAP-PEAP). This value should be set 657 * small enough to make the EAP messages fit in MTU of the network 658 * interface used for EAPOL. The default value is suitable for most 659 * cases. 660 */ 661 int fragment_size; 662 663 #define EAP_CONFIG_FLAGS_PASSWORD_NTHASH BIT(0) 664 #define EAP_CONFIG_FLAGS_EXT_PASSWORD BIT(1) 665 #define EAP_CONFIG_FLAGS_MACHINE_PASSWORD_NTHASH BIT(2) 666 #define EAP_CONFIG_FLAGS_EXT_MACHINE_PASSWORD BIT(3) 667 /** 668 * flags - Network configuration flags (bitfield) 669 * 670 * This variable is used for internal flags to describe further details 671 * for the network parameters. 672 * bit 0 = password is represented as a 16-byte NtPasswordHash value 673 * instead of plaintext password 674 * bit 1 = password is stored in external storage; the value in the 675 * password field is the name of that external entry 676 * bit 2 = machine password is represented as a 16-byte NtPasswordHash 677 * value instead of plaintext password 678 * bit 3 = machine password is stored in external storage; the value in 679 * the password field is the name of that external entry 680 */ 681 u32 flags; 682 683 /** 684 * external_sim_resp - Response from external SIM processing 685 * 686 * This field should not be set in configuration step. It is only used 687 * internally when control interface is used to request external 688 * SIM/USIM processing. 689 */ 690 char *external_sim_resp; 691 692 /** 693 * sim_num - User selected SIM identifier 694 * 695 * This variable is used for identifying which SIM is used if the system 696 * has more than one. 697 */ 698 int sim_num; 699 700 /** 701 * openssl_ciphers - OpenSSL cipher string 702 * 703 * This is an OpenSSL specific configuration option for configuring the 704 * ciphers for this connection. If not set, the default cipher suite 705 * list is used. 706 */ 707 char *openssl_ciphers; 708 709 /** 710 * erp - Whether EAP Re-authentication Protocol (ERP) is enabled 711 */ 712 int erp; 713 714 /** 715 * pending_ext_cert_check - External server certificate check status 716 * 717 * This field should not be set in configuration step. It is only used 718 * internally when control interface is used to request external 719 * validation of server certificate chain. 720 */ 721 enum { 722 NO_CHECK = 0, 723 PENDING_CHECK, 724 EXT_CERT_CHECK_GOOD, 725 EXT_CERT_CHECK_BAD, 726 } pending_ext_cert_check; 727 728 int teap_anon_dh; 729 }; 730 731 732 /** 733 * struct wpa_config_blob - Named configuration blob 734 * 735 * This data structure is used to provide storage for binary objects to store 736 * abstract information like certificates and private keys inlined with the 737 * configuration data. 738 */ 739 struct wpa_config_blob { 740 /** 741 * name - Blob name 742 */ 743 char *name; 744 745 /** 746 * data - Pointer to binary data 747 */ 748 u8 *data; 749 750 /** 751 * len - Length of binary data 752 */ 753 size_t len; 754 755 /** 756 * next - Pointer to next blob in the configuration 757 */ 758 struct wpa_config_blob *next; 759 }; 760 761 #endif /* EAP_CONFIG_H */ 762