Home
last modified time | relevance | path

Searched refs:resp_len (Results 1 – 25 of 32) sorted by relevance

12

/third_party/wpa_supplicant/wpa_supplicant-2.9/hs20/client/
Dest.c126 size_t pkcs7_len, resp_len; in est_load_cacerts() local
154 resp = os_readfile("Cert/est-cacerts.txt", &resp_len); in est_load_cacerts()
161 pkcs7 = base64_decode((unsigned char *) resp, resp_len, &pkcs7_len); in est_load_cacerts()
162 if (pkcs7 && pkcs7_len < resp_len / 2) { in est_load_cacerts()
164 (unsigned int) pkcs7_len, (unsigned int) resp_len); in est_load_cacerts()
170 pkcs7 = os_malloc(resp_len); in est_load_cacerts()
172 os_memcpy(pkcs7, resp, resp_len); in est_load_cacerts()
173 pkcs7_len = resp_len; in est_load_cacerts()
630 size_t resp_len; in est_build_csr() local
636 resp = os_readfile("Cert/est-csrattrs.txt", &resp_len); in est_build_csr()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hs20/client/
Dest.c126 size_t pkcs7_len, resp_len; in est_load_cacerts() local
154 resp = os_readfile("Cert/est-cacerts.txt", &resp_len); in est_load_cacerts()
161 pkcs7 = base64_decode(resp, resp_len, &pkcs7_len); in est_load_cacerts()
162 if (pkcs7 && pkcs7_len < resp_len / 2) { in est_load_cacerts()
164 (unsigned int) pkcs7_len, (unsigned int) resp_len); in est_load_cacerts()
170 pkcs7 = os_malloc(resp_len); in est_load_cacerts()
172 os_memcpy(pkcs7, resp, resp_len); in est_load_cacerts()
173 pkcs7_len = resp_len; in est_load_cacerts()
630 size_t resp_len; in est_build_csr() local
636 resp = os_readfile("Cert/est-csrattrs.txt", &resp_len); in est_build_csr()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/hostapd/
Dhlr_auc_gw.c589 static int sim_req_auth(char *imsi, char *resp, size_t resp_len) in sim_req_auth() argument
608 rend = resp + resp_len; in sim_req_auth()
662 static int gsm_auth_req(char *imsi, char *resp, size_t resp_len) in gsm_auth_req() argument
675 rend = resp + resp_len; in gsm_auth_req()
734 static int aka_req_auth(char *imsi, char *resp, size_t resp_len) in aka_req_auth() argument
785 end = resp + resp_len; in aka_req_auth()
811 static int aka_auts(char *imsi, char *resp, size_t resp_len) in aka_auts() argument
866 static int process_cmd(char *cmd, char *resp, size_t resp_len) in process_cmd() argument
869 return sim_req_auth(cmd + 13, resp, resp_len); in process_cmd()
872 return gsm_auth_req(cmd + 13, resp, resp_len); in process_cmd()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/hostapd/
Dhlr_auc_gw.c589 static int sim_req_auth(char *imsi, char *resp, size_t resp_len) in sim_req_auth() argument
608 rend = resp + resp_len; in sim_req_auth()
662 static int gsm_auth_req(char *imsi, char *resp, size_t resp_len) in gsm_auth_req() argument
675 rend = resp + resp_len; in gsm_auth_req()
734 static int aka_req_auth(char *imsi, char *resp, size_t resp_len) in aka_req_auth() argument
785 end = resp + resp_len; in aka_req_auth()
811 static int aka_auts(char *imsi, char *resp, size_t resp_len) in aka_auts() argument
866 static int process_cmd(char *cmd, char *resp, size_t resp_len) in process_cmd() argument
869 return sim_req_auth(cmd + 13, resp, resp_len); in process_cmd()
872 return gsm_auth_req(cmd + 13, resp, resp_len); in process_cmd()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/wpa_supplicant/
Dctrl_iface.h32 char *buf, size_t *resp_len);
49 char *buf, size_t *resp_len);
Dgas_query.c524 u16 comeback_delay, resp_len; in gas_query_rx() local
626 resp_len = WPA_GET_LE16(pos); in gas_query_rx()
630 if (resp_len > left) { in gas_query_rx()
636 if (resp_len < left) { in gas_query_rx()
639 left - resp_len, MAC2STR(sa)); in gas_query_rx()
643 gas_query_rx_comeback(gas, query, adv_proto, pos, resp_len, in gas_query_rx()
646 gas_query_rx_initial(gas, query, adv_proto, pos, resp_len, in gas_query_rx()
Dctrl_iface.c7301 size_t resp_len, start, requested_len; in gas_response_get() local
7325 resp_len = wpabuf_len(resp); in gas_response_get()
7327 requested_len = resp_len; in gas_response_get()
7332 if (start > resp_len) in gas_response_get()
7339 if (start + requested_len > resp_len) in gas_response_get()
7349 if (start + requested_len == resp_len) { in gas_response_get()
9983 char *buf, size_t *resp_len) in wpa_supplicant_ctrl_iface_process() argument
10019 *resp_len = 1; in wpa_supplicant_ctrl_iface_process()
10850 *resp_len = reply_len; in wpa_supplicant_ctrl_iface_process()
11110 char *cmd, size_t *resp_len) in wpas_global_ctrl_iface_ifname() argument
[all …]
Dsme.c2475 u8 resp_len = 2 + WLAN_SA_QUERY_TR_ID_LEN; in sme_process_sa_query_request() local
2494 if (ocv_insert_extended_oci(&ci, resp + resp_len) < 0) in sme_process_sa_query_request()
2497 resp_len += OCV_OCI_EXTENDED_LEN; in sme_process_sa_query_request()
2503 resp, resp_len, 0) < 0) in sme_process_sa_query_request()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/wpa_supplicant/
Dctrl_iface.h36 char *buf, size_t *resp_len);
53 char *buf, size_t *resp_len);
Dgas_query.c515 u16 comeback_delay, resp_len; in gas_query_rx() local
617 resp_len = WPA_GET_LE16(pos); in gas_query_rx()
621 if (resp_len > left) { in gas_query_rx()
627 if (resp_len < left) { in gas_query_rx()
630 left - resp_len, MAC2STR(sa)); in gas_query_rx()
634 gas_query_rx_comeback(gas, query, adv_proto, pos, resp_len, in gas_query_rx()
637 gas_query_rx_initial(gas, query, adv_proto, pos, resp_len, in gas_query_rx()
Dctrl_iface.c7720 size_t resp_len, start, requested_len; in gas_response_get() local
7744 resp_len = wpabuf_len(resp); in gas_response_get()
7746 requested_len = resp_len; in gas_response_get()
7751 if (start > resp_len) in gas_response_get()
7758 if (start + requested_len > resp_len) in gas_response_get()
7768 if (start + requested_len == resp_len) { in gas_response_get()
11515 char *buf, size_t *resp_len) in wpa_supplicant_ctrl_iface_process() argument
11551 *resp_len = 1; in wpa_supplicant_ctrl_iface_process()
12477 *resp_len = reply_len; in wpa_supplicant_ctrl_iface_process()
12737 char *cmd, size_t *resp_len) in wpas_global_ctrl_iface_ifname() argument
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/ap/
Dgas_query_ap.c471 u16 comeback_delay, resp_len; in gas_query_ap_rx() local
573 resp_len = WPA_GET_LE16(pos); in gas_query_ap_rx()
577 if (resp_len > left) { in gas_query_ap_rx()
583 if (resp_len < left) { in gas_query_ap_rx()
586 left - resp_len, MAC2STR(sa)); in gas_query_ap_rx()
590 gas_query_rx_comeback(gas, query, adv_proto, pos, resp_len, in gas_query_ap_rx()
593 gas_query_rx_initial(gas, query, adv_proto, pos, resp_len, in gas_query_ap_rx()
Dbeacon.c370 int is_p2p, size_t *resp_len) in hostapd_gen_probe_resp() argument
568 *resp_len = pos - (u8 *) resp; in hostapd_gen_probe_resp()
738 size_t i, resp_len; in handle_probe_req() local
966 &resp_len); in handle_probe_req()
988 ret = hostapd_drv_send_mlme_csa(hapd, resp, resp_len, noack, in handle_probe_req()
1004 size_t *resp_len) in hostapd_probe_resp_offloads() argument
1035 return hostapd_gen_probe_resp(hapd, NULL, 0, resp_len); in hostapd_probe_resp_offloads()
1058 size_t resp_len = 0; in ieee802_11_build_ap_params() local
1289 resp = hostapd_probe_resp_offloads(hapd, &resp_len); in ieee802_11_build_ap_params()
1298 params->proberesp_len = resp_len; in ieee802_11_build_ap_params()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/ap/
Dgas_query_ap.c471 u16 comeback_delay, resp_len; in gas_query_ap_rx() local
573 resp_len = WPA_GET_LE16(pos); in gas_query_ap_rx()
577 if (resp_len > left) { in gas_query_ap_rx()
583 if (resp_len < left) { in gas_query_ap_rx()
586 left - resp_len, MAC2STR(sa)); in gas_query_ap_rx()
590 gas_query_rx_comeback(gas, query, adv_proto, pos, resp_len, in gas_query_ap_rx()
593 gas_query_rx_initial(gas, query, adv_proto, pos, resp_len, in gas_query_ap_rx()
Dbeacon.c433 int is_p2p, size_t *resp_len) in hostapd_gen_probe_resp() argument
637 *resp_len = pos - (u8 *) resp; in hostapd_gen_probe_resp()
848 size_t i, resp_len; in handle_probe_req() local
1081 &resp_len); in handle_probe_req()
1103 ret = hostapd_drv_send_mlme(hapd, resp, resp_len, noack, in handle_probe_req()
1119 size_t *resp_len) in hostapd_probe_resp_offloads() argument
1150 return hostapd_gen_probe_resp(hapd, NULL, 0, resp_len); in hostapd_probe_resp_offloads()
1431 size_t resp_len = 0; in ieee802_11_build_ap_params() local
1662 resp = hostapd_probe_resp_offloads(hapd, &resp_len); in ieee802_11_build_ap_params()
1671 params->proberesp_len = resp_len; in ieee802_11_build_ap_params()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/tls/
Dtlsv1_client_read.c894 u32 resp_len; in tls_process_certificate_status() local
911 resp_len = WPA_GET_BE24(pos); in tls_process_certificate_status()
913 if (end - pos < resp_len) { in tls_process_certificate_status()
916 resp_len); in tls_process_certificate_status()
920 end = pos + resp_len; in tls_process_certificate_status()
923 resp_len = WPA_GET_BE24(pos); in tls_process_certificate_status()
925 if (resp_len > end - pos) { in tls_process_certificate_status()
928 resp_len, (int) (end - pos)); in tls_process_certificate_status()
932 if (!resp_len) in tls_process_certificate_status()
935 conn, pos - 3, resp_len + 3); in tls_process_certificate_status()
[all …]
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/tls/
Dtlsv1_client_read.c902 u32 resp_len; in tls_process_certificate_status() local
919 resp_len = WPA_GET_BE24(pos); in tls_process_certificate_status()
921 if (end - pos < resp_len) { in tls_process_certificate_status()
924 resp_len); in tls_process_certificate_status()
928 end = pos + resp_len; in tls_process_certificate_status()
931 resp_len = WPA_GET_BE24(pos); in tls_process_certificate_status()
933 if (resp_len > end - pos) { in tls_process_certificate_status()
936 resp_len, (int) (end - pos)); in tls_process_certificate_status()
940 if (!resp_len) in tls_process_certificate_status()
943 conn, pos - 3, resp_len + 3); in tls_process_certificate_status()
[all …]
/third_party/f2fs-tools/tools/sg_write_buffer/include/
Dsg_cmds_basic.h230 int sg_mode_page_offset(const unsigned char * resp, int resp_len,
241 int sg_msense_calc_length(const unsigned char * resp, int resp_len,
/third_party/f2fs-tools/tools/sg_write_buffer/
Dsg_cmds_basic2.c585 sg_mode_page_offset(const unsigned char * resp, int resp_len, in sg_mode_page_offset() argument
591 if ((NULL == resp) || (resp_len < 4)) in sg_mode_page_offset()
598 if (resp_len < 8) in sg_mode_page_offset()
616 "too short\n", (mode_sense_6 ? 6 : 10), resp_len); in sg_mode_page_offset()
629 sg_msense_calc_length(const unsigned char * resp, int resp_len, in sg_msense_calc_length() argument
637 if (resp_len < 4) in sg_msense_calc_length()
641 if (resp_len < 8) in sg_msense_calc_length()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/crypto/
Dtls_openssl_ocsp.c490 size_t resp_len; in check_ocsp_resp() local
519 SSL_get0_ocsp_response(ssl, &resp_data, &resp_len); in check_ocsp_resp()
520 if (resp_data == NULL || resp_len == 0) { in check_ocsp_resp()
525 wpa_hexdump(MSG_DEBUG, "OpenSSL: OCSP response", resp_data, resp_len); in check_ocsp_resp()
527 resp = d2i_OCSPResponse(NULL, &resp_data, resp_len); in check_ocsp_resp()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/crypto/
Dtls_openssl_ocsp.c490 size_t resp_len; in check_ocsp_resp() local
519 SSL_get0_ocsp_response(ssl, &resp_data, &resp_len); in check_ocsp_resp()
520 if (resp_data == NULL || resp_len == 0) { in check_ocsp_resp()
525 wpa_hexdump(MSG_DEBUG, "OpenSSL: OCSP response", resp_data, resp_len); in check_ocsp_resp()
527 resp = d2i_OCSPResponse(NULL, &resp_data, resp_len); in check_ocsp_resp()
/third_party/wpa_supplicant/wpa_supplicant-2.9_standard/src/utils/
Dhttp-utils.h56 size_t *resp_len);
Dhttp_curl.c1685 size_t *resp_len) in http_post() argument
1735 if (resp_len) in http_post()
1736 *resp_len = ctx->curl_buf_len; in http_post()
/third_party/wpa_supplicant/wpa_supplicant-2.9/src/utils/
Dhttp-utils.h56 size_t *resp_len);
Dhttp_curl.c1685 size_t *resp_len) in http_post() argument
1735 if (resp_len) in http_post()
1736 *resp_len = ctx->curl_buf_len; in http_post()

12