wpa_supplicant / hostapd  2.5
 All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
ikev2.h
Go to the documentation of this file.
1 
5 #ifndef IKEV2_H
6 #define IKEV2_H
7 
9 
11  u8 proposal_num;
12  int integ;
13  int prf;
14  int encr;
15  int dh;
16 };
17 
18 
20  enum { SA_INIT, SA_AUTH, CHILD_SA, NOTIFY, IKEV2_DONE, IKEV2_FAILED }
21  state;
22  u8 i_spi[IKEV2_SPI_LEN];
23  u8 r_spi[IKEV2_SPI_LEN];
24  u8 i_nonce[IKEV2_NONCE_MAX_LEN];
25  size_t i_nonce_len;
26  u8 r_nonce[IKEV2_NONCE_MAX_LEN];
27  size_t r_nonce_len;
28  struct wpabuf *i_dh_public;
29  struct wpabuf *r_dh_private;
30  struct ikev2_proposal_data proposal;
31  const struct dh_group *dh;
32  struct ikev2_keys keys;
33  u8 *IDi;
34  size_t IDi_len;
35  u8 IDi_type;
36  u8 *IDr;
37  size_t IDr_len;
38  struct wpabuf *r_sign_msg;
39  struct wpabuf *i_sign_msg;
40  u8 *shared_secret;
41  size_t shared_secret_len;
42  enum { PEER_AUTH_CERT, PEER_AUTH_SECRET } peer_auth;
43  u8 *key_pad;
44  size_t key_pad_len;
45  u16 error_type;
46  enum { LAST_MSG_SA_INIT, LAST_MSG_SA_AUTH } last_msg;
47 };
48 
49 
50 void ikev2_responder_deinit(struct ikev2_responder_data *data);
51 int ikev2_responder_process(struct ikev2_responder_data *data,
52  const struct wpabuf *buf);
53 struct wpabuf * ikev2_responder_build(struct ikev2_responder_data *data);
54 
55 #endif /* IKEV2_H */
IKEv2 definitions.
Definition: wpabuf.h:16
Definition: dh_groups.h:8
Definition: ikev2_common.h:235
Definition: ikev2.h:10
Definition: ikev2.h:19