Home
last modified time | relevance | path

Searched refs:in_decrypted (Results 1 – 19 of 19) sorted by relevance

/external/wpa_supplicant_8/src/eap_peer/
Deap_peap.c762 struct wpabuf *in_decrypted = NULL; in eap_peap_decrypt() local
776 in_decrypted = data->pending_phase2_req; in eap_peap_decrypt()
801 res = eap_peer_tls_decrypt(sm, &data->ssl, in_data, &in_decrypted); in eap_peap_decrypt()
807 in_decrypted); in eap_peap_decrypt()
809 hdr = wpabuf_mhead(in_decrypted); in eap_peap_decrypt()
810 if (wpabuf_len(in_decrypted) == 5 && hdr->code == EAP_CODE_REQUEST && in eap_peap_decrypt()
812 eap_get_type(in_decrypted) == EAP_TYPE_IDENTITY) { in eap_peap_decrypt()
817 if (wpabuf_len(in_decrypted) >= 5 && hdr->code == EAP_CODE_REQUEST && in eap_peap_decrypt()
818 eap_get_type(in_decrypted) == EAP_TYPE_TLV) { in eap_peap_decrypt()
825 wpabuf_len(in_decrypted)); in eap_peap_decrypt()
[all …]
Deap_ttls.c1184 static int eap_ttls_parse_avps(struct wpabuf *in_decrypted, in eap_ttls_parse_avps() argument
1191 pos = wpabuf_mhead(in_decrypted); in eap_ttls_parse_avps()
1192 left = wpabuf_len(in_decrypted); in eap_ttls_parse_avps()
1428 struct wpabuf *in_decrypted, in eap_ttls_process_decrypted() argument
1489 data->pending_phase2_req = wpabuf_dup(in_decrypted); in eap_ttls_process_decrypted()
1587 struct wpabuf *in_decrypted = NULL; in eap_ttls_decrypt() local
1603 in_decrypted = data->pending_phase2_req; in eap_ttls_decrypt()
1605 if (wpabuf_len(in_decrypted) == 0) { in eap_ttls_decrypt()
1606 wpabuf_free(in_decrypted); in eap_ttls_decrypt()
1626 retval = eap_peer_tls_decrypt(sm, &data->ssl, in_data, &in_decrypted); in eap_ttls_decrypt()
[all …]
Deap_fast.c1258 struct wpabuf *in_decrypted; in eap_fast_decrypt() local
1270 in_decrypted = data->pending_phase2_req; in eap_fast_decrypt()
1282 res = eap_peer_tls_decrypt(sm, &data->ssl, in_data, &in_decrypted); in eap_fast_decrypt()
1288 in_decrypted); in eap_fast_decrypt()
1290 if (wpabuf_len(in_decrypted) < 4) { in eap_fast_decrypt()
1293 (unsigned long) wpabuf_len(in_decrypted)); in eap_fast_decrypt()
1294 wpabuf_free(in_decrypted); in eap_fast_decrypt()
1299 in_decrypted, out_data); in eap_fast_decrypt()
1301 wpabuf_free(in_decrypted); in eap_fast_decrypt()
Deap_tls_common.h114 struct wpabuf **in_decrypted);
Deap_tls_common.c850 struct wpabuf **in_decrypted) in eap_peer_tls_decrypt() argument
859 *in_decrypted = tls_connection_decrypt(sm->ssl_ctx, data->conn, msg); in eap_peer_tls_decrypt()
861 if (*in_decrypted == NULL) { in eap_peer_tls_decrypt()
/external/wpa_supplicant_6/wpa_supplicant/src/eap_peer/
Deap_peap.c762 struct wpabuf *in_decrypted = NULL; in eap_peap_decrypt() local
776 in_decrypted = data->pending_phase2_req; in eap_peap_decrypt()
801 res = eap_peer_tls_decrypt(sm, &data->ssl, in_data, &in_decrypted); in eap_peap_decrypt()
807 in_decrypted); in eap_peap_decrypt()
809 hdr = wpabuf_mhead(in_decrypted); in eap_peap_decrypt()
810 if (wpabuf_len(in_decrypted) == 5 && hdr->code == EAP_CODE_REQUEST && in eap_peap_decrypt()
812 eap_get_type(in_decrypted) == EAP_TYPE_IDENTITY) { in eap_peap_decrypt()
817 if (wpabuf_len(in_decrypted) >= 5 && hdr->code == EAP_CODE_REQUEST && in eap_peap_decrypt()
818 eap_get_type(in_decrypted) == EAP_TYPE_TLV) { in eap_peap_decrypt()
825 wpabuf_len(in_decrypted)); in eap_peap_decrypt()
[all …]
Deap_ttls.c1181 static int eap_ttls_parse_avps(struct wpabuf *in_decrypted, in eap_ttls_parse_avps() argument
1188 pos = wpabuf_mhead(in_decrypted); in eap_ttls_parse_avps()
1189 left = wpabuf_len(in_decrypted); in eap_ttls_parse_avps()
1425 struct wpabuf *in_decrypted, in eap_ttls_process_decrypted() argument
1486 data->pending_phase2_req = wpabuf_dup(in_decrypted); in eap_ttls_process_decrypted()
1584 struct wpabuf *in_decrypted = NULL; in eap_ttls_decrypt() local
1600 in_decrypted = data->pending_phase2_req; in eap_ttls_decrypt()
1602 if (wpabuf_len(in_decrypted) == 0) { in eap_ttls_decrypt()
1603 wpabuf_free(in_decrypted); in eap_ttls_decrypt()
1623 retval = eap_peer_tls_decrypt(sm, &data->ssl, in_data, &in_decrypted); in eap_ttls_decrypt()
[all …]
Deap_tls_common.c856 struct wpabuf **in_decrypted) in eap_peer_tls_decrypt() argument
880 *in_decrypted = wpabuf_alloc(buf_len ? buf_len : 1); in eap_peer_tls_decrypt()
881 if (*in_decrypted == NULL) { in eap_peer_tls_decrypt()
889 wpabuf_mhead(*in_decrypted), buf_len); in eap_peer_tls_decrypt()
895 wpabuf_put(*in_decrypted, res); in eap_peer_tls_decrypt()
Deap_fast.c1258 struct wpabuf *in_decrypted; in eap_fast_decrypt() local
1270 in_decrypted = data->pending_phase2_req; in eap_fast_decrypt()
1282 res = eap_peer_tls_decrypt(sm, &data->ssl, in_data, &in_decrypted); in eap_fast_decrypt()
1288 in_decrypted); in eap_fast_decrypt()
1290 if (wpabuf_len(in_decrypted) < 4) { in eap_fast_decrypt()
1293 (unsigned long) wpabuf_len(in_decrypted)); in eap_fast_decrypt()
1294 wpabuf_free(in_decrypted); in eap_fast_decrypt()
1299 in_decrypted, out_data); in eap_fast_decrypt()
1301 wpabuf_free(in_decrypted); in eap_fast_decrypt()
Deap_tls_common.h127 struct wpabuf **in_decrypted);
/external/wpa_supplicant_6/wpa_supplicant/src/eap_server/
Deap_peap.c1031 struct wpabuf *in_decrypted; in eap_peap_process_phase2() local
1063 in_decrypted = wpabuf_alloc(buf_len); in eap_peap_process_phase2()
1064 if (in_decrypted == NULL) { in eap_peap_process_phase2()
1072 wpabuf_mhead(in_decrypted), in eap_peap_process_phase2()
1077 wpabuf_free(in_decrypted); in eap_peap_process_phase2()
1081 wpabuf_put(in_decrypted, len_decrypted); in eap_peap_process_phase2()
1084 in_decrypted); in eap_peap_process_phase2()
1086 hdr = wpabuf_head(in_decrypted); in eap_peap_process_phase2()
1093 wpabuf_len(in_decrypted)); in eap_peap_process_phase2()
1095 wpabuf_free(in_decrypted); in eap_peap_process_phase2()
[all …]
Deap_ttls.c1129 u8 *in_decrypted; in eap_ttls_process_phase2() local
1162 in_decrypted = os_malloc(buf_len); in eap_ttls_process_phase2()
1163 if (in_decrypted == NULL) { in eap_ttls_process_phase2()
1171 in_decrypted, buf_len); in eap_ttls_process_phase2()
1175 os_free(in_decrypted); in eap_ttls_process_phase2()
1193 os_free(in_decrypted); in eap_ttls_process_phase2()
1198 in_decrypted, len_decrypted); in eap_ttls_process_phase2()
1200 if (eap_ttls_avp_parse(in_decrypted, len_decrypted, &parse) < 0) { in eap_ttls_process_phase2()
1202 os_free(in_decrypted); in eap_ttls_process_phase2()
1260 os_free(in_decrypted); in eap_ttls_process_phase2()
Deap_fast.c1376 u8 *in_decrypted; in eap_fast_process_phase2() local
1408 in_decrypted = os_malloc(buf_len); in eap_fast_process_phase2()
1409 if (in_decrypted == NULL) { in eap_fast_process_phase2()
1417 in_decrypted, buf_len); in eap_fast_process_phase2()
1421 os_free(in_decrypted); in eap_fast_process_phase2()
1427 in_decrypted, len_decrypted); in eap_fast_process_phase2()
1429 eap_fast_process_phase2_tlvs(sm, data, in_decrypted, len_decrypted); in eap_fast_process_phase2()
1435 data->pending_phase2_resp = wpabuf_alloc_copy(in_decrypted, in eap_fast_process_phase2()
1439 os_free(in_decrypted); in eap_fast_process_phase2()
/external/wpa_supplicant/
Deap_peap.c397 u8 *in_decrypted; in eap_peap_decrypt() local
418 in_decrypted = data->pending_phase2_req; in eap_peap_decrypt()
446 in_decrypted = os_malloc(buf_len); in eap_peap_decrypt()
447 if (in_decrypted == NULL) { in eap_peap_decrypt()
457 msg, msg_len, in_decrypted, buf_len); in eap_peap_decrypt()
464 os_free(in_decrypted); in eap_peap_decrypt()
470 wpa_hexdump(MSG_DEBUG, "EAP-PEAP: Decrypted Phase 2 EAP", in_decrypted, in eap_peap_decrypt()
473 hdr = (struct eap_hdr *) in_decrypted; in eap_peap_decrypt()
476 in_decrypted[4] == EAP_TYPE_IDENTITY) { in eap_peap_decrypt()
482 in_decrypted[4] == EAP_TYPE_TLV) { in eap_peap_decrypt()
[all …]
Deap_fast.c1527 u8 *in_decrypted, *pos, *end; in eap_fast_decrypt() local
1553 in_decrypted = os_malloc(buf_len); in eap_fast_decrypt()
1554 if (in_decrypted == NULL) { in eap_fast_decrypt()
1565 in_decrypted, buf_len); in eap_fast_decrypt()
1572 os_free(in_decrypted); in eap_fast_decrypt()
1577 in_decrypted, len_decrypted); in eap_fast_decrypt()
1580 os_free(in_decrypted); in eap_fast_decrypt()
1586 pos = in_decrypted; in eap_fast_decrypt()
1587 end = in_decrypted + len_decrypted; in eap_fast_decrypt()
1596 os_free(in_decrypted); in eap_fast_decrypt()
[all …]
Deap_ttls.c1079 u8 *in_decrypted = NULL, *pos; in eap_ttls_decrypt() local
1105 in_decrypted = data->pending_phase2_req; in eap_ttls_decrypt()
1109 os_free(in_decrypted); in eap_ttls_decrypt()
1110 in_decrypted = NULL; in eap_ttls_decrypt()
1139 in_decrypted = os_malloc(buf_len); in eap_ttls_decrypt()
1140 if (in_decrypted == NULL) { in eap_ttls_decrypt()
1146 hdr = (struct eap_hdr *) in_decrypted; in eap_ttls_decrypt()
1150 in_decrypted[sizeof(*hdr)] = EAP_TYPE_IDENTITY; in eap_ttls_decrypt()
1162 in_decrypted = os_malloc(buf_len); in eap_ttls_decrypt()
1163 if (in_decrypted == NULL) { in eap_ttls_decrypt()
[all …]
/external/wpa_supplicant_8/src/eap_server/
Deap_server_peap.c1034 struct wpabuf *in_decrypted; in eap_peap_process_phase2() local
1051 in_decrypted = tls_connection_decrypt(sm->ssl_ctx, data->ssl.conn, in eap_peap_process_phase2()
1053 if (in_decrypted == NULL) { in eap_peap_process_phase2()
1061 in_decrypted); in eap_peap_process_phase2()
1063 hdr = wpabuf_head(in_decrypted); in eap_peap_process_phase2()
1070 wpabuf_len(in_decrypted)); in eap_peap_process_phase2()
1072 wpabuf_free(in_decrypted); in eap_peap_process_phase2()
1081 wpabuf_len(in_decrypted)); in eap_peap_process_phase2()
1082 wpabuf_put_buf(nbuf, in_decrypted); in eap_peap_process_phase2()
1083 wpabuf_free(in_decrypted); in eap_peap_process_phase2()
[all …]
Deap_server_ttls.c1107 struct wpabuf *in_decrypted; in eap_ttls_process_phase2() local
1124 in_decrypted = tls_connection_decrypt(sm->ssl_ctx, data->ssl.conn, in eap_ttls_process_phase2()
1126 if (in_decrypted == NULL) { in eap_ttls_process_phase2()
1134 if (wpabuf_len(in_decrypted) == 0 && in eap_ttls_process_phase2()
1146 wpabuf_free(in_decrypted); in eap_ttls_process_phase2()
1151 in_decrypted); in eap_ttls_process_phase2()
1153 if (eap_ttls_avp_parse(in_decrypted, &parse) < 0) { in eap_ttls_process_phase2()
1155 wpabuf_free(in_decrypted); in eap_ttls_process_phase2()
1213 wpabuf_free(in_decrypted); in eap_ttls_process_phase2()
Deap_server_fast.c1381 struct wpabuf *in_decrypted; in eap_fast_process_phase2() local
1396 in_decrypted = tls_connection_decrypt(sm->ssl_ctx, data->ssl.conn, in eap_fast_process_phase2()
1398 if (in_decrypted == NULL) { in eap_fast_process_phase2()
1406 in_decrypted); in eap_fast_process_phase2()
1408 eap_fast_process_phase2_tlvs(sm, data, in_decrypted); in eap_fast_process_phase2()
1414 data->pending_phase2_resp = in_decrypted; in eap_fast_process_phase2()
1418 wpabuf_free(in_decrypted); in eap_fast_process_phase2()