wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
eap_config.h
Go to the documentation of this file.
1 
5 #ifndef EAP_CONFIG_H
6 #define EAP_CONFIG_H
7 
20  u8 *identity;
21 
26  size_t identity_len;
27 
43 
49 
67  u8 *password;
68 
73  size_t password_len;
74 
105  u8 *ca_cert;
106 
117  u8 *ca_path;
118 
133 
161 
169 
187  u8 *dh_file;
188 
205 
224 
243 
259 
277  u8 *ca_cert2;
278 
292  u8 *ca_path2;
293 
307 
321 
330 
343  u8 *dh_file2;
344 
353 
362 
371 
380 
389 
457  char *phase1;
458 
468  char *phase2;
469 
480  char *pcsc;
481 
492  char *pin;
493 
501  int engine;
502 
513  char *engine_id;
514 
525  int engine2;
526 
527 
541  char *pin2;
542 
556  char *engine2_id;
557 
558 
566  char *key_id;
567 
575  char *cert_id;
576 
583  char *ca_cert_id;
584 
592  char *key2_id;
593 
601  char *cert2_id;
602 
609  char *ca_cert2_id;
610 
618  u8 *otp;
619 
624  size_t otp_len;
625 
635 
645 
655 
665 
675 
685 
691 
703  char *pac_file;
704 
713 
723 
729 
741 
742 #define EAP_CONFIG_FLAGS_PASSWORD_NTHASH BIT(0)
743 #define EAP_CONFIG_FLAGS_EXT_PASSWORD BIT(1)
744 
755  u32 flags;
756 
765  int ocsp;
766 
776 
784  int sim_num;
785 
795 
800  int erp;
801 };
802 
803 
817  char *name;
818 
823  u8 *data;
824 
829  size_t len;
830 
836 };
837 
838 #endif /* EAP_CONFIG_H */
char * engine2_id
Engine ID for OpenSSL engine (Phase 2)
Definition: eap_config.h:556
u8 * altsubject_match2
Constraint for server certificate alt. subject.
Definition: eap_config.h:361
char * private_key2_passwd
Password for private key file.
Definition: eap_config.h:329
char * pending_req_otp
Whether there is a pending OTP request.
Definition: eap_config.h:684
size_t pending_req_otp_len
Length of the pending OTP request.
Definition: eap_config.h:690
char * pin2
PIN for USIM, GSM SIM, and smartcards (Phase 2)
Definition: eap_config.h:541
u8 * ca_path2
Directory path for CA certificate files (PEM) (Phase 2)
Definition: eap_config.h:292
size_t password_len
Length of password field.
Definition: eap_config.h:73
u8 * new_password
New password for password update.
Definition: eap_config.h:722
char * ca_cert2_id
CA Cert ID for OpenSSL engine (phase2)
Definition: eap_config.h:609
u8 * ca_path
Directory path for CA certificate files (PEM)
Definition: eap_config.h:117
u8 * private_key2
File path to client private key file.
Definition: eap_config.h:320
size_t identity_len
EAP Identity length.
Definition: eap_config.h:26
char * cert2_id
Cert ID for OpenSSL engine (phase2)
Definition: eap_config.h:601
int fragment_size
Maximum EAP fragment size in bytes (default 1398)
Definition: eap_config.h:740
char * key_id
Key ID for OpenSSL engine.
Definition: eap_config.h:566
u8 * ca_cert
File path to CA certificate file (PEM/DER)
Definition: eap_config.h:105
size_t new_password_len
Length of new_password field.
Definition: eap_config.h:728
char * ca_cert_id
CA Cert ID for OpenSSL engine.
Definition: eap_config.h:583
size_t otp_len
Length of the otp field.
Definition: eap_config.h:624
int ocsp
Whether to use/require OCSP to check server certificate.
Definition: eap_config.h:765
int erp
Whether EAP Re-authentication Protocol (ERP) is enabled.
Definition: eap_config.h:800
char * domain_suffix_match
Constraint for server domain name.
Definition: eap_config.h:242
u8 * subject_match
Constraint for server certificate subject.
Definition: eap_config.h:204
char * cert_id
Cert ID for OpenSSL engine.
Definition: eap_config.h:575
char * phase1
Phase 1 (outer authentication) parameters.
Definition: eap_config.h:457
struct wpa_config_blob * next
Pointer to next blob in the configuration.
Definition: eap_config.h:835
u8 * dh_file
File path to DH/DSA parameters file (in PEM format)
Definition: eap_config.h:187
int engine2
Enable OpenSSL engine (e.g., for smartcard) (Phase 2)
Definition: eap_config.h:525
u8 * private_key
File path to client private key file (PEM/DER/PFX)
Definition: eap_config.h:160
int mschapv2_retry
MSCHAPv2 retry in progress.
Definition: eap_config.h:712
int pending_req_password
Whether there is a pending password request.
Definition: eap_config.h:644
Definition: eap.h:16
u8 * client_cert
File path to client certificate file (PEM/DER)
Definition: eap_config.h:132
u8 * dh_file2
File path to DH/DSA parameters file (in PEM format)
Definition: eap_config.h:343
char * pac_file
File path or blob name for the PAC entries (EAP-FAST)
Definition: eap_config.h:703
int pending_req_new_password
Pending password update request.
Definition: eap_config.h:664
u8 * anonymous_identity
Anonymous EAP Identity.
Definition: eap_config.h:42
char * engine_id
Engine ID for OpenSSL engine.
Definition: eap_config.h:513
u8 * client_cert2
File path to client certificate file.
Definition: eap_config.h:306
char * domain_match2
Constraint for server domain name.
Definition: eap_config.h:379
struct eap_method_type * eap_methods
Allowed EAP methods.
Definition: eap_config.h:388
Named configuration blob.
Definition: eap_config.h:812
char * phase2
Phase2 (inner authentication with TLS tunnel) parameters.
Definition: eap_config.h:468
u8 * password
Password string for EAP.
Definition: eap_config.h:67
char * pin
PIN for USIM, GSM SIM, and smartcards.
Definition: eap_config.h:492
int pending_req_pin
Whether there is a pending PIN request.
Definition: eap_config.h:654
size_t len
Length of binary data.
Definition: eap_config.h:829
u8 * subject_match2
Constraint for server certificate subject.
Definition: eap_config.h:352
u8 * otp
One-time-password.
Definition: eap_config.h:618
u8 * altsubject_match
Constraint for server certificate alt. subject.
Definition: eap_config.h:223
u8 * ca_cert2
File path to CA certificate file (PEM/DER) (Phase 2)
Definition: eap_config.h:277
int sim_num
User selected SIM identifier.
Definition: eap_config.h:784
u8 * data
Pointer to binary data.
Definition: eap_config.h:823
u32 flags
Network configuration flags (bitfield)
Definition: eap_config.h:755
size_t anonymous_identity_len
Length of anonymous_identity.
Definition: eap_config.h:48
int pending_req_passphrase
Pending passphrase request.
Definition: eap_config.h:674
char * domain_suffix_match2
Constraint for server domain name.
Definition: eap_config.h:370
u8 * identity
EAP Identity.
Definition: eap_config.h:20
char * key2_id
Key ID for OpenSSL engine (phase2)
Definition: eap_config.h:592
char * domain_match
Constraint for server domain name.
Definition: eap_config.h:258
int engine
Enable OpenSSL engine (e.g., for smartcard access)
Definition: eap_config.h:501
int pending_req_identity
Whether there is a pending identity request.
Definition: eap_config.h:634
char * pcsc
Parameters for PC/SC smartcard interface for USIM and GSM SIM.
Definition: eap_config.h:480
char * external_sim_resp
Response from external SIM processing.
Definition: eap_config.h:775
EAP peer configuration/credentials.
Definition: eap_config.h:12
char * name
Blob name.
Definition: eap_config.h:817
char * openssl_ciphers
OpenSSL cipher string.
Definition: eap_config.h:794
char * private_key_passwd
Password for private key file.
Definition: eap_config.h:168