/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_peer/ |
H A D | eap_peap.c | 798 struct wpabuf *in_decrypted = NULL; in eap_peap_decrypt() local 812 in_decrypted = data->pending_phase2_req; in eap_peap_decrypt() 837 res = eap_peer_tls_decrypt(sm, &data->ssl, in_data, &in_decrypted); in eap_peap_decrypt() 840 if (wpabuf_len(in_decrypted) == 0) { in eap_peap_decrypt() 841 wpabuf_free(in_decrypted); in eap_peap_decrypt() 847 in_decrypted); in eap_peap_decrypt() 849 hdr = wpabuf_mhead(in_decrypted); in eap_peap_decrypt() 850 if (wpabuf_len(in_decrypted) == 5 && hdr->code == EAP_CODE_REQUEST && in eap_peap_decrypt() 852 eap_get_type(in_decrypted) == EAP_TYPE_IDENTITY) { in eap_peap_decrypt() 857 if (wpabuf_len(in_decrypted) > in eap_peap_decrypt() [all...] |
H A D | eap_ttls.c | 1030 static int eap_ttls_parse_avps(struct wpabuf *in_decrypted, in eap_ttls_parse_avps() argument 1037 pos = wpabuf_mhead(in_decrypted); in eap_ttls_parse_avps() 1038 left = wpabuf_len(in_decrypted); in eap_ttls_parse_avps() 1270 struct wpabuf *in_decrypted, in eap_ttls_process_decrypted() 1332 data->pending_phase2_req = wpabuf_dup(in_decrypted); in eap_ttls_process_decrypted() 1428 struct wpabuf *in_decrypted = NULL; in eap_ttls_decrypt() local 1444 in_decrypted = data->pending_phase2_req; in eap_ttls_decrypt() 1446 if (wpabuf_len(in_decrypted) == 0) { in eap_ttls_decrypt() 1447 wpabuf_clear_free(in_decrypted); in eap_ttls_decrypt() 1468 retval = eap_peer_tls_decrypt(sm, &data->ssl, in_data, &in_decrypted); in eap_ttls_decrypt() 1265 eap_ttls_process_decrypted(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, u8 identifier, struct ttls_parse_avp *parse, struct wpabuf *in_decrypted, struct wpabuf **out_data) eap_ttls_process_decrypted() argument [all...] |
H A D | eap_fast.c | 1315 struct wpabuf *in_decrypted; in eap_fast_decrypt() local 1327 in_decrypted = data->pending_phase2_req; in eap_fast_decrypt() 1339 res = eap_peer_tls_decrypt(sm, &data->ssl, in_data, &in_decrypted); in eap_fast_decrypt() 1345 in_decrypted); in eap_fast_decrypt() 1347 if (wpabuf_len(in_decrypted) < 4) { in eap_fast_decrypt() 1350 (unsigned long) wpabuf_len(in_decrypted)); in eap_fast_decrypt() 1351 wpabuf_clear_free(in_decrypted); in eap_fast_decrypt() 1356 in_decrypted, out_data); in eap_fast_decrypt() 1358 wpabuf_clear_free(in_decrypted); in eap_fast_decrypt()
|
H A D | eap_teap.c | 1499 struct wpabuf *in_decrypted; in eap_teap_decrypt() local 1512 in_decrypted = data->pending_phase2_req; in eap_teap_decrypt() 1533 res = eap_peer_tls_decrypt(sm, &data->ssl, in_data, &in_decrypted); in eap_teap_decrypt() 1539 in_decrypted); in eap_teap_decrypt() 1541 if (wpabuf_len(in_decrypted) < 4) { in eap_teap_decrypt() 1544 (unsigned long) wpabuf_len(in_decrypted)); in eap_teap_decrypt() 1545 wpabuf_free(in_decrypted); in eap_teap_decrypt() 1550 in_decrypted, out_data); in eap_teap_decrypt() 1552 wpabuf_free(in_decrypted); in eap_teap_decrypt()
|
H A D | eap_tls_common.h | 133 struct wpabuf **in_decrypted);
|
H A D | eap_tls_common.c | 1032 * @in_decrypted: Buffer for returning a pointer to the decrypted message 1037 struct wpabuf **in_decrypted) in eap_peer_tls_decrypt() 1046 *in_decrypted = tls_connection_decrypt(data->ssl_ctx, data->conn, msg); in eap_peer_tls_decrypt() 1048 if (*in_decrypted == NULL) { in eap_peer_tls_decrypt() 1035 eap_peer_tls_decrypt(struct eap_sm *sm, struct eap_ssl_data *data, const struct wpabuf *in_data, struct wpabuf **in_decrypted) eap_peer_tls_decrypt() argument
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_peer/ |
H A D | eap_peap.c | 748 struct wpabuf *in_decrypted = NULL; in eap_peap_decrypt() local 762 in_decrypted = data->pending_phase2_req; in eap_peap_decrypt() 787 res = eap_peer_tls_decrypt(sm, &data->ssl, in_data, &in_decrypted); in eap_peap_decrypt() 793 in_decrypted); in eap_peap_decrypt() 795 hdr = wpabuf_mhead(in_decrypted); in eap_peap_decrypt() 796 if (wpabuf_len(in_decrypted) == 5 && hdr->code == EAP_CODE_REQUEST && in eap_peap_decrypt() 798 eap_get_type(in_decrypted) == EAP_TYPE_IDENTITY) { in eap_peap_decrypt() 803 if (wpabuf_len(in_decrypted) >= 5 && hdr->code == EAP_CODE_REQUEST && in eap_peap_decrypt() 804 eap_get_type(in_decrypted) == EAP_TYPE_TLV) { in eap_peap_decrypt() 811 wpabuf_len(in_decrypted)); in eap_peap_decrypt() [all...] |
H A D | eap_ttls.c | 1001 static int eap_ttls_parse_avps(struct wpabuf *in_decrypted, in eap_ttls_parse_avps() argument 1008 pos = wpabuf_mhead(in_decrypted); in eap_ttls_parse_avps() 1009 left = wpabuf_len(in_decrypted); in eap_ttls_parse_avps() 1241 struct wpabuf *in_decrypted, in eap_ttls_process_decrypted() 1303 data->pending_phase2_req = wpabuf_dup(in_decrypted); in eap_ttls_process_decrypted() 1399 struct wpabuf *in_decrypted = NULL; in eap_ttls_decrypt() local 1415 in_decrypted = data->pending_phase2_req; in eap_ttls_decrypt() 1417 if (wpabuf_len(in_decrypted) == 0) { in eap_ttls_decrypt() 1418 wpabuf_clear_free(in_decrypted); in eap_ttls_decrypt() 1438 retval = eap_peer_tls_decrypt(sm, &data->ssl, in_data, &in_decrypted); in eap_ttls_decrypt() 1236 eap_ttls_process_decrypted(struct eap_sm *sm, struct eap_ttls_data *data, struct eap_method_ret *ret, u8 identifier, struct ttls_parse_avp *parse, struct wpabuf *in_decrypted, struct wpabuf **out_data) eap_ttls_process_decrypted() argument [all...] |
H A D | eap_fast.c | 1295 struct wpabuf *in_decrypted; in eap_fast_decrypt() local 1307 in_decrypted = data->pending_phase2_req; in eap_fast_decrypt() 1319 res = eap_peer_tls_decrypt(sm, &data->ssl, in_data, &in_decrypted); in eap_fast_decrypt() 1325 in_decrypted); in eap_fast_decrypt() 1327 if (wpabuf_len(in_decrypted) < 4) { in eap_fast_decrypt() 1330 (unsigned long) wpabuf_len(in_decrypted)); in eap_fast_decrypt() 1331 wpabuf_clear_free(in_decrypted); in eap_fast_decrypt() 1336 in_decrypted, out_data); in eap_fast_decrypt() 1338 wpabuf_clear_free(in_decrypted); in eap_fast_decrypt()
|
H A D | eap_teap.c | 1387 struct wpabuf *in_decrypted; in eap_teap_decrypt() local 1400 in_decrypted = data->pending_phase2_req; in eap_teap_decrypt() 1421 res = eap_peer_tls_decrypt(sm, &data->ssl, in_data, &in_decrypted); in eap_teap_decrypt() 1427 in_decrypted); in eap_teap_decrypt() 1429 if (wpabuf_len(in_decrypted) < 4) { in eap_teap_decrypt() 1432 (unsigned long) wpabuf_len(in_decrypted)); in eap_teap_decrypt() 1433 wpabuf_free(in_decrypted); in eap_teap_decrypt() 1438 in_decrypted, out_data); in eap_teap_decrypt() 1440 wpabuf_free(in_decrypted); in eap_teap_decrypt()
|
H A D | eap_tls_common.h | 128 struct wpabuf **in_decrypted);
|
H A D | eap_tls_common.c | 1023 * @in_decrypted: Buffer for returning a pointer to the decrypted message 1028 struct wpabuf **in_decrypted) in eap_peer_tls_decrypt() 1037 *in_decrypted = tls_connection_decrypt(data->ssl_ctx, data->conn, msg); in eap_peer_tls_decrypt() 1039 if (*in_decrypted == NULL) { in eap_peer_tls_decrypt() 1026 eap_peer_tls_decrypt(struct eap_sm *sm, struct eap_ssl_data *data, const struct wpabuf *in_data, struct wpabuf **in_decrypted) eap_peer_tls_decrypt() argument
|
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/eap_server/ |
H A D | eap_server_peap.c | 1063 struct wpabuf *in_decrypted; in eap_peap_process_phase2() local 1080 in_decrypted = tls_connection_decrypt(sm->ssl_ctx, data->ssl.conn, in eap_peap_process_phase2() 1082 if (in_decrypted == NULL) { in eap_peap_process_phase2() 1090 in_decrypted); in eap_peap_process_phase2() 1097 wpabuf_len(in_decrypted)); in eap_peap_process_phase2() 1099 wpabuf_free(in_decrypted); in eap_peap_process_phase2() 1108 wpabuf_len(in_decrypted)); in eap_peap_process_phase2() 1109 wpabuf_put_buf(nbuf, in_decrypted); in eap_peap_process_phase2() 1110 wpabuf_free(in_decrypted); in eap_peap_process_phase2() 1112 in_decrypted in eap_peap_process_phase2() [all...] |
H A D | eap_server_fast.c | 1385 struct wpabuf *in_decrypted; in eap_fast_process_phase2() local 1400 in_decrypted = tls_connection_decrypt(sm->ssl_ctx, data->ssl.conn, in eap_fast_process_phase2() 1402 if (in_decrypted == NULL) { in eap_fast_process_phase2() 1410 in_decrypted); in eap_fast_process_phase2() 1412 eap_fast_process_phase2_tlvs(sm, data, in_decrypted); in eap_fast_process_phase2() 1418 data->pending_phase2_resp = in_decrypted; in eap_fast_process_phase2() 1422 wpabuf_free(in_decrypted); in eap_fast_process_phase2()
|
H A D | eap_server_ttls.c | 1008 struct wpabuf *in_decrypted; in eap_ttls_process_phase2() local 1025 in_decrypted = tls_connection_decrypt(sm->ssl_ctx, data->ssl.conn, in eap_ttls_process_phase2() 1027 if (in_decrypted == NULL) { in eap_ttls_process_phase2() 1035 in_decrypted); in eap_ttls_process_phase2() 1037 if (eap_ttls_avp_parse(in_decrypted, &parse) < 0) { in eap_ttls_process_phase2() 1039 wpabuf_free(in_decrypted); in eap_ttls_process_phase2() 1107 wpabuf_free(in_decrypted); in eap_ttls_process_phase2()
|
H A D | eap_server_teap.c | 1531 struct wpabuf *in_decrypted; in eap_teap_process_phase2() local 1547 in_decrypted = tls_connection_decrypt(sm->ssl_ctx, data->ssl.conn, in eap_teap_process_phase2() 1549 if (!in_decrypted) { in eap_teap_process_phase2() 1557 in_decrypted); in eap_teap_process_phase2() 1559 eap_teap_process_phase2_tlvs(sm, data, in_decrypted); in eap_teap_process_phase2() 1565 data->pending_phase2_resp = in_decrypted; in eap_teap_process_phase2() 1569 wpabuf_free(in_decrypted); in eap_teap_process_phase2()
|
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/eap_server/ |
H A D | eap_server_peap.c | 1094 struct wpabuf *in_decrypted; in eap_peap_process_phase2() local 1111 in_decrypted = tls_connection_decrypt(sm->cfg->ssl_ctx, data->ssl.conn, in eap_peap_process_phase2() 1113 if (in_decrypted == NULL) { in eap_peap_process_phase2() 1121 in_decrypted); in eap_peap_process_phase2() 1128 wpabuf_len(in_decrypted)); in eap_peap_process_phase2() 1130 wpabuf_free(in_decrypted); in eap_peap_process_phase2() 1139 wpabuf_len(in_decrypted)); in eap_peap_process_phase2() 1140 wpabuf_put_buf(nbuf, in_decrypted); in eap_peap_process_phase2() 1141 wpabuf_free(in_decrypted); in eap_peap_process_phase2() 1143 in_decrypted in eap_peap_process_phase2() [all...] |
H A D | eap_server_fast.c | 1399 struct wpabuf *in_decrypted; in eap_fast_process_phase2() local 1414 in_decrypted = tls_connection_decrypt(sm->cfg->ssl_ctx, data->ssl.conn, in eap_fast_process_phase2() 1416 if (in_decrypted == NULL) { in eap_fast_process_phase2() 1424 in_decrypted); in eap_fast_process_phase2() 1426 eap_fast_process_phase2_tlvs(sm, data, in_decrypted); in eap_fast_process_phase2() 1432 data->pending_phase2_resp = in_decrypted; in eap_fast_process_phase2() 1436 wpabuf_free(in_decrypted); in eap_fast_process_phase2()
|
H A D | eap_server_ttls.c | 1016 struct wpabuf *in_decrypted; in eap_ttls_process_phase2() local 1033 in_decrypted = tls_connection_decrypt(sm->cfg->ssl_ctx, data->ssl.conn, in eap_ttls_process_phase2() 1035 if (in_decrypted == NULL) { in eap_ttls_process_phase2() 1043 in_decrypted); in eap_ttls_process_phase2() 1045 if (eap_ttls_avp_parse(in_decrypted, &parse) < 0) { in eap_ttls_process_phase2() 1047 wpabuf_free(in_decrypted); in eap_ttls_process_phase2() 1115 wpabuf_free(in_decrypted); in eap_ttls_process_phase2()
|
H A D | eap_server_teap.c | 1682 struct wpabuf *in_decrypted; in eap_teap_process_phase2() local 1698 in_decrypted = tls_connection_decrypt(sm->cfg->ssl_ctx, data->ssl.conn, in eap_teap_process_phase2() 1700 if (!in_decrypted) { in eap_teap_process_phase2() 1708 in_decrypted); in eap_teap_process_phase2() 1710 eap_teap_process_phase2_tlvs(sm, data, in_decrypted); in eap_teap_process_phase2() 1716 data->pending_phase2_resp = in_decrypted; in eap_teap_process_phase2() 1720 wpabuf_free(in_decrypted); in eap_teap_process_phase2()
|