Home
last modified time | relevance | path

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

/hostap-latest/src/eap_peer/
Deap_peap.c798 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) >= 5 && hdr->code == EAP_CODE_REQUEST && in eap_peap_decrypt()
[all …]
Deap_ttls.c1055 static int eap_ttls_parse_avps(struct wpabuf *in_decrypted, in eap_ttls_parse_avps() argument
1062 pos = wpabuf_mhead(in_decrypted); in eap_ttls_parse_avps()
1063 left = wpabuf_len(in_decrypted); in eap_ttls_parse_avps()
1295 struct wpabuf *in_decrypted, in eap_ttls_process_decrypted() argument
1357 data->pending_phase2_req = wpabuf_dup(in_decrypted); in eap_ttls_process_decrypted()
1453 struct wpabuf *in_decrypted = NULL; in eap_ttls_decrypt() local
1469 in_decrypted = data->pending_phase2_req; in eap_ttls_decrypt()
1471 if (wpabuf_len(in_decrypted) == 0) { in eap_ttls_decrypt()
1472 wpabuf_clear_free(in_decrypted); in eap_ttls_decrypt()
1493 retval = eap_peer_tls_decrypt(sm, &data->ssl, in_data, &in_decrypted); in eap_ttls_decrypt()
[all …]
Deap_fast.c1305 struct wpabuf *in_decrypted; in eap_fast_decrypt() local
1317 in_decrypted = data->pending_phase2_req; in eap_fast_decrypt()
1329 res = eap_peer_tls_decrypt(sm, &data->ssl, in_data, &in_decrypted); in eap_fast_decrypt()
1335 in_decrypted); in eap_fast_decrypt()
1337 if (wpabuf_len(in_decrypted) < 4) { in eap_fast_decrypt()
1340 (unsigned long) wpabuf_len(in_decrypted)); in eap_fast_decrypt()
1341 wpabuf_clear_free(in_decrypted); in eap_fast_decrypt()
1346 in_decrypted, out_data); in eap_fast_decrypt()
1348 wpabuf_clear_free(in_decrypted); in eap_fast_decrypt()
Deap_teap.c1506 struct wpabuf *in_decrypted; in eap_teap_decrypt() local
1519 in_decrypted = data->pending_phase2_req; in eap_teap_decrypt()
1540 res = eap_peer_tls_decrypt(sm, &data->ssl, in_data, &in_decrypted); in eap_teap_decrypt()
1546 in_decrypted); in eap_teap_decrypt()
1548 if (wpabuf_len(in_decrypted) < 4) { in eap_teap_decrypt()
1551 (unsigned long) wpabuf_len(in_decrypted)); in eap_teap_decrypt()
1552 wpabuf_free(in_decrypted); in eap_teap_decrypt()
1557 in_decrypted, out_data); in eap_teap_decrypt()
1559 wpabuf_free(in_decrypted); in eap_teap_decrypt()
Deap_tls_common.h133 struct wpabuf **in_decrypted);
Deap_tls_common.c1040 struct wpabuf **in_decrypted) in eap_peer_tls_decrypt() argument
1049 *in_decrypted = tls_connection_decrypt(data->ssl_ctx, data->conn, msg); in eap_peer_tls_decrypt()
1051 if (*in_decrypted == NULL) { in eap_peer_tls_decrypt()
/hostap-latest/src/eap_server/
Deap_server_peap.c1112 struct wpabuf *in_decrypted; in eap_peap_process_phase2() local
1129 in_decrypted = tls_connection_decrypt(sm->cfg->ssl_ctx, data->ssl.conn, in eap_peap_process_phase2()
1131 if (in_decrypted == NULL) { in eap_peap_process_phase2()
1139 in_decrypted); in eap_peap_process_phase2()
1146 wpabuf_len(in_decrypted)); in eap_peap_process_phase2()
1148 wpabuf_free(in_decrypted); in eap_peap_process_phase2()
1157 wpabuf_len(in_decrypted)); in eap_peap_process_phase2()
1158 wpabuf_put_buf(nbuf, in_decrypted); in eap_peap_process_phase2()
1159 wpabuf_free(in_decrypted); in eap_peap_process_phase2()
1161 in_decrypted = nbuf; in eap_peap_process_phase2()
[all …]
Deap_server_ttls.c1017 struct wpabuf *in_decrypted; in eap_ttls_process_phase2() local
1034 in_decrypted = tls_connection_decrypt(sm->cfg->ssl_ctx, data->ssl.conn, in eap_ttls_process_phase2()
1036 if (in_decrypted == NULL) { in eap_ttls_process_phase2()
1044 in_decrypted); in eap_ttls_process_phase2()
1046 if (eap_ttls_avp_parse(in_decrypted, &parse) < 0) { in eap_ttls_process_phase2()
1048 wpabuf_free(in_decrypted); in eap_ttls_process_phase2()
1116 wpabuf_free(in_decrypted); in eap_ttls_process_phase2()
Deap_server_fast.c1389 struct wpabuf *in_decrypted; in eap_fast_process_phase2() local
1404 in_decrypted = tls_connection_decrypt(sm->cfg->ssl_ctx, data->ssl.conn, in eap_fast_process_phase2()
1406 if (in_decrypted == NULL) { in eap_fast_process_phase2()
1414 in_decrypted); in eap_fast_process_phase2()
1416 eap_fast_process_phase2_tlvs(sm, data, in_decrypted); in eap_fast_process_phase2()
1422 data->pending_phase2_resp = in_decrypted; in eap_fast_process_phase2()
1426 wpabuf_free(in_decrypted); in eap_fast_process_phase2()
Deap_server_teap.c1715 struct wpabuf *in_decrypted; in eap_teap_process_phase2() local
1731 in_decrypted = tls_connection_decrypt(sm->cfg->ssl_ctx, data->ssl.conn, in eap_teap_process_phase2()
1733 if (!in_decrypted) { in eap_teap_process_phase2()
1741 in_decrypted); in eap_teap_process_phase2()
1743 eap_teap_process_phase2_tlvs(sm, data, in_decrypted); in eap_teap_process_phase2()
1749 data->pending_phase2_resp = in_decrypted; in eap_teap_process_phase2()
1753 wpabuf_free(in_decrypted); in eap_teap_process_phase2()