/dragonfly/contrib/wpa_supplicant/wpa_supplicant/ |
H A D | p2p_supplicant_sd.c | 196 wpabuf_put_u8(resp, status); in wpas_sd_add_empty() 240 if (wpabuf_tailroom(resp) < in wpas_sd_all_bonjour() 254 wpabuf_put_buf(resp, bsrv->resp); /* Value */ in wpas_sd_all_bonjour() 334 wpabuf_put_buf(resp, bsrv->resp); /* Value */ in wpas_sd_req_bonjour() 452 wpabuf_put_u8(resp, ','); in wpas_sd_req_upnp() 697 struct wpabuf *resp; in wpas_sd_request() local 722 if (resp == NULL) in wpas_sd_request() 732 wpabuf_free(resp); in wpas_sd_request() 810 wpabuf_free(resp); in wpas_sd_request() 1131 wpabuf_free(bsrv->resp); in wpas_p2p_srv_bonjour_free() [all …]
|
/dragonfly/contrib/wpa_supplicant/src/common/ |
H A D | gas_server.c | 37 struct wpabuf *resp; member 67 response->resp = NULL; in gas_server_response_timeout() 92 struct wpabuf *resp; in gas_server_send_resp() local 123 if (!resp) { in gas_server_send_resp() 152 wpabuf_free(resp); in gas_server_send_resp() 167 struct wpabuf *resp; in gas_server_rx_initial_req() local 225 resp); in gas_server_rx_initial_req() 227 resp); in gas_server_rx_initial_req() 245 struct wpabuf *resp; in gas_server_handle_rx_comeback_req() local 262 if (!resp) { in gas_server_handle_rx_comeback_req() [all …]
|
/dragonfly/contrib/wpa_supplicant/src/eap_peer/ |
H A D | eap_eke.c | 199 struct wpabuf *resp; in eap_eke_build_fail() local 205 if (resp) in eap_eke_build_fail() 216 return resp; in eap_eke_build_fail() 226 struct wpabuf *resp; in eap_eke_process_id() local 324 if (resp == NULL) { in eap_eke_process_id() 339 wpabuf_free(resp); in eap_eke_process_id() 348 return resp; in eap_eke_process_id() 444 if (resp == NULL) { in eap_eke_process_commit() 495 return resp; in eap_eke_process_commit() 622 return resp; in eap_eke_process_confirm() [all …]
|
H A D | eap_sake.c | 148 struct wpabuf *resp; in eap_sake_process_identity() local 170 if (resp == NULL) in eap_sake_process_identity() 179 return resp; in eap_sake_process_identity() 252 if (resp == NULL) in eap_sake_process_challenge() 272 wpabuf_head(resp), wpabuf_len(resp), rpos, in eap_sake_process_challenge() 275 wpabuf_free(resp); in eap_sake_process_challenge() 281 return resp; in eap_sake_process_challenge() 344 if (resp == NULL) in eap_sake_process_confirm() 354 wpabuf_head(resp), wpabuf_len(resp), rpos, in eap_sake_process_confirm() 366 return resp; in eap_sake_process_confirm() [all …]
|
H A D | eap_gpsk.c | 303 if (resp == NULL) in eap_gpsk_process_gpsk_1() 308 return resp; in eap_gpsk_process_gpsk_1() 331 if (resp == NULL) in eap_gpsk_send_gpsk_2() 349 wpabuf_free(resp); in eap_gpsk_send_gpsk_2() 374 wpabuf_free(resp); in eap_gpsk_send_gpsk_2() 405 return resp; in eap_gpsk_send_gpsk_2() 616 if (resp == NULL) in eap_gpsk_process_gpsk_3() 623 return resp; in eap_gpsk_process_gpsk_3() 640 if (resp == NULL) in eap_gpsk_send_gpsk_4() 658 return resp; in eap_gpsk_send_gpsk_4() [all …]
|
H A D | eap_teap.c | 565 if (!resp) in eap_teap_process_basic_auth_req() 1244 resp = wpabuf_concat(resp, tmp); in eap_teap_process_decrypted() 1251 resp = wpabuf_concat(resp, tmp); in eap_teap_process_decrypted() 1258 resp = wpabuf_concat(resp, tmp); in eap_teap_process_decrypted() 1281 resp = wpabuf_concat(resp, tmp); in eap_teap_process_decrypted() 1303 resp = wpabuf_concat(resp, tmp); in eap_teap_process_decrypted() 1328 resp = wpabuf_concat(resp, tmp); in eap_teap_process_decrypted() 1334 resp = wpabuf_concat(tmp, resp); in eap_teap_process_decrypted() 1338 resp = wpabuf_concat(tmp, resp); in eap_teap_process_decrypted() 1345 resp = wpabuf_concat(tmp, resp); in eap_teap_process_decrypted() [all …]
|
H A D | eap_pax.c | 96 struct wpabuf *resp; in eap_pax_alloc_resp() local 101 if (resp == NULL) in eap_pax_alloc_resp() 111 return resp; in eap_pax_alloc_resp() 120 struct wpabuf *resp; in eap_pax_process_std_1() local 192 if (resp == NULL) in eap_pax_process_std_1() 218 wpabuf_head(resp), wpabuf_len(resp) - EAP_PAX_ICV_LEN, in eap_pax_process_std_1() 227 return resp; in eap_pax_process_std_1() 309 if (resp == NULL) in eap_pax_process_std_3() 316 wpabuf_head(resp), wpabuf_len(resp) - EAP_PAX_ICV_LEN, in eap_pax_process_std_3() 328 return resp; in eap_pax_process_std_3() [all …]
|
H A D | eap_ttls.c | 252 *resp = NULL; in eap_ttls_avp_encapsulate() 258 os_memcpy(pos, wpabuf_head(*resp), wpabuf_len(*resp)); in eap_ttls_avp_encapsulate() 263 *resp = msg; in eap_ttls_avp_encapsulate() 471 *resp); in eap_ttls_phase2_request_eap() 560 *resp = msg; in eap_ttls_phase2_request_mschapv2() 662 *resp = msg; in eap_ttls_phase2_request_mschap() 717 *resp = msg; in eap_ttls_phase2_request_pap() 797 *resp = msg; in eap_ttls_phase2_request_chap() 1072 resp); in eap_ttls_encrypt_response() 1293 if (resp) { in eap_ttls_process_decrypted() [all …]
|
H A D | eap_gtc.c | 49 struct wpabuf *resp; in eap_gtc_process() local 72 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_GTC, in eap_gtc_process() 74 return resp; in eap_gtc_process() 104 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_GTC, plen, in eap_gtc_process() 106 if (resp == NULL) in eap_gtc_process() 109 wpabuf_put_data(resp, "RESPONSE=", 9); in eap_gtc_process() 110 wpabuf_put_data(resp, identity, identity_len); in eap_gtc_process() 111 wpabuf_put_u8(resp, '\0'); in eap_gtc_process() 113 wpabuf_put_data(resp, password, password_len); in eap_gtc_process() 115 wpabuf_head_u8(resp) + sizeof(struct eap_hdr) + in eap_gtc_process() [all …]
|
H A D | eap_tnc.c | 91 struct wpabuf *resp; in eap_tnc_build_msg() local 115 if (resp == NULL) in eap_tnc_build_msg() 144 return resp; in eap_tnc_build_msg() 206 struct wpabuf *resp; in eap_tnc_process() local 356 if (resp == NULL) in eap_tnc_process() 362 return resp; in eap_tnc_process() 379 resp = wpabuf_alloc(rlen); in eap_tnc_process() 380 if (resp == NULL) { in eap_tnc_process() 389 rpos1 = wpabuf_put(resp, 0); in eap_tnc_process() 397 wpabuf_head(resp), wpabuf_len(resp)); in eap_tnc_process() [all …]
|
H A D | eap_leap.c | 64 struct wpabuf *resp; in eap_leap_process_request() local 112 if (resp == NULL) in eap_leap_process_request() 114 wpabuf_put_u8(resp, LEAP_VERSION); in eap_leap_process_request() 115 wpabuf_put_u8(resp, 0); /* unused */ in eap_leap_process_request() 123 wpabuf_free(resp); in eap_leap_process_request() 133 return resp; in eap_leap_process_request() 142 struct wpabuf *resp; in eap_leap_process_success() local 163 if (resp == NULL) in eap_leap_process_success() 165 wpabuf_put_u8(resp, LEAP_VERSION); in eap_leap_process_success() 172 wpabuf_free(resp); in eap_leap_process_success() [all …]
|
H A D | eap_fast.c | 827 return resp; in eap_fast_process_crypto_binding() 1146 resp); in eap_fast_encrypt_response() 1190 if (resp) in eap_fast_process_decrypted() 1213 resp = wpabuf_concat(resp, tmp); in eap_fast_process_decrypted() 1219 resp = wpabuf_concat(resp, tmp); in eap_fast_process_decrypted() 1226 resp = wpabuf_concat(resp, tmp); in eap_fast_process_decrypted() 1236 resp = wpabuf_concat(resp, tmp); in eap_fast_process_decrypted() 1249 resp = wpabuf_concat(resp, tmp); in eap_fast_process_decrypted() 1254 resp = wpabuf_concat(tmp, resp); in eap_fast_process_decrypted() 1257 resp = wpabuf_concat(tmp, resp); in eap_fast_process_decrypted() [all …]
|
H A D | eap_peap.c | 857 &resp)) { in eap_peap_decrypt() 896 if (resp) { in eap_peap_decrypt() 921 if (resp) { in eap_peap_decrypt() 936 if (resp) { in eap_peap_decrypt() 947 rmsg = resp; in eap_peap_decrypt() 1012 resp = NULL; in eap_peap_process() 1027 return resp; in eap_peap_process() 1048 &resp); in eap_peap_process() 1055 return resp; in eap_peap_process() 1146 resp = NULL; in eap_peap_process() [all …]
|
H A D | eap_mschapv2.c | 149 struct wpabuf *resp; in eap_mschapv2_challenge_reply() local 168 if (resp == NULL) in eap_mschapv2_challenge_reply() 196 wpabuf_free(resp); in eap_mschapv2_challenge_reply() 211 wpabuf_free(resp); in eap_mschapv2_challenge_reply() 222 return resp; in eap_mschapv2_challenge_reply() 394 return resp; in eap_mschapv2_success() 542 if (resp == NULL) in eap_mschapv2_change_password() 629 return resp; in eap_mschapv2_change_password() 632 wpabuf_free(resp); in eap_mschapv2_change_password() 699 if (resp == NULL) in eap_mschapv2_failure() [all …]
|
H A D | eap_md5.c | 33 struct wpabuf *resp; in eap_md5_process() local 76 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_MD5, 1 + CHAP_MD5_LEN, in eap_md5_process() 78 if (resp == NULL) in eap_md5_process() 85 wpabuf_put_u8(resp, CHAP_MD5_LEN); in eap_md5_process() 87 id = eap_get_id(resp); in eap_md5_process() 88 rpos = wpabuf_put(resp, CHAP_MD5_LEN); in eap_md5_process() 93 wpabuf_free(resp); in eap_md5_process() 98 return resp; in eap_md5_process()
|
/dragonfly/contrib/ldns/ |
H A D | update.c | 94 ldns_pkt *query, *resp; in ldns_update_soa_mname() local 109 if (!resp) { in ldns_update_soa_mname() 123 ldns_pkt_free(resp); in ldns_update_soa_mname() 137 ldns_pkt *query, *resp; in ldns_update_soa_zone_mname() local 160 if (!resp) { in ldns_update_soa_zone_mname() 173 ldns_pkt_free(resp); in ldns_update_soa_zone_mname() 191 if (!resp) { in ldns_update_soa_zone_mname() 196 ldns_pkt_free(resp); in ldns_update_soa_zone_mname() 228 ldns_pkt_free(resp); in ldns_update_soa_zone_mname() 250 if (!resp) { in ldns_update_soa_zone_mname() [all …]
|
/dragonfly/crypto/openssh/ |
H A D | ssh-sk-client.c | 147 struct sshbuf *req = NULL, *resp = NULL; in client_converse() local 170 if ((r = ssh_msg_recv(fd, resp)) != 0) { in client_converse() 218 *respp = resp; in client_converse() 219 resp = NULL; in client_converse() 222 sshbuf_free(resp); in client_converse() 272 if (sshbuf_len(resp) != 0) { in sshsk_sign() 288 sshbuf_free(resp); in sshsk_sign() 342 if (sshbuf_len(resp) != 0) { in sshsk_enroll() 366 sshbuf_free(resp); in sshsk_enroll() 427 while (sshbuf_len(resp) != 0) { in sshsk_load_resident() [all …]
|
/dragonfly/contrib/wpa_supplicant/src/eap_server/ |
H A D | eap_server_pax.c | 202 struct eap_pax_hdr *resp; in eap_pax_check() local 219 resp->op_code, resp->flags, resp->mac_id, resp->dh_group_id, in eap_pax_check() 220 resp->public_key_id); in eap_pax_check() 222 (u8 *) (resp + 1), len - sizeof(*resp) - EAP_PAX_ICV_LEN); in eap_pax_check() 241 resp->op_code); in eap_pax_check() 253 resp->dh_group_id); in eap_pax_check() 260 resp->public_key_id); in eap_pax_check() 307 struct eap_pax_hdr *resp; in eap_pax_process_std_2() local 323 pos = (u8 *) (resp + 1); in eap_pax_process_std_2() 488 struct eap_pax_hdr *resp; in eap_pax_process() local [all …]
|
H A D | eap_server_mschapv2.c | 242 struct eap_mschapv2_hdr *resp; in eap_mschapv2_check() local 253 resp = (struct eap_mschapv2_hdr *) pos; in eap_mschapv2_check() 257 "ignore op %d", resp->op_code); in eap_mschapv2_check() 272 "- ignore op %d", resp->op_code); in eap_mschapv2_check() 284 struct eap_mschapv2_hdr *resp; in eap_mschapv2_process_response() local 300 resp = (struct eap_mschapv2_hdr *) pos; in eap_mschapv2_process_response() 301 pos = (u8 *) (resp + 1); in eap_mschapv2_process_response() 303 if (len < sizeof(*resp) + 1 + 49 || in eap_mschapv2_process_response() 455 struct eap_mschapv2_hdr *resp; in eap_mschapv2_process_success_resp() local 464 resp = (struct eap_mschapv2_hdr *) pos; in eap_mschapv2_process_success_resp() [all …]
|
/dragonfly/contrib/pam_passwdqc/ |
H A D | pam_passwdqc.c | 189 struct pam_response **resp) in converse() argument 196 *resp = NULL; in converse() 218 struct pam_response *resp; in say() local 306 struct pam_response *resp; local 341 PROMPT_OLDPASS, &resp); 344 if (resp && resp->resp) { 346 PAM_OLDAUTHTOK, resp->resp); 476 if (status == PAM_SUCCESS && (!resp || !resp->resp)) 485 trypass = strdup(resp->resp); 520 if (resp && resp->resp) { [all …]
|
/dragonfly/usr.sbin/rmt/ |
H A D | rmt.c | 56 char resp[BUFSIZ]; variable 146 sprintf(resp, "A%d\n", rval); in main() 147 write(1, resp, strlen(resp)); in main() 172 sprintf(resp, "A%d\n", rval); in main() 173 write(1, resp, strlen(resp)); in main() 190 sprintf(resp, "A%d\n", rval); in main() 191 write(1, resp, strlen(resp)); in main() 238 snprintf(resp, sizeof(resp), "E%d\n%s\n", num, strerror(num)); in error() 239 write(1, resp, strlen(resp)); in error()
|
/dragonfly/contrib/wpa_supplicant/src/utils/ |
H A D | pcsc_funcs.c | 839 len = sizeof(resp); in _scard_select_file() 853 if (resp[0] == 0x98 && resp[1] == 0x04) { in _scard_select_file() 865 if (resp[0] != 0x6c && resp[0] != 0x9f && resp[0] != 0x61) { in _scard_select_file() 873 resp[1]); in _scard_select_file() 878 *buf_len = resp[1] < rlen ? resp[1] : rlen; in _scard_select_file() 1043 if (len != 2 || resp[0] != 0x90 || resp[1] != 0x00) { in scard_verify_pin() 1273 (len != 2 || resp[0] != 0x9f || resp[1] != 0x0c)) || in scard_gsm_auth() 1275 (len != 2 || resp[0] != 0x61 || resp[1] != 0x0e))) { in scard_gsm_auth() 1278 (long) len, resp[0], resp[1]); in scard_gsm_auth() 1376 if (len == 2 && resp[0] == 0x98 && resp[1] == 0x62) { in scard_umts_auth() [all …]
|
/dragonfly/contrib/openpam/lib/libpam/ |
H A D | pam_get_authtok.c | 75 char *resp, *resp2; in pam_get_authtok() local 138 r = pam_prompt(pamh, style, &resp, "%s", prompt); in pam_get_authtok() 144 strlset(resp, 0, PAM_MAX_RESP_SIZE); in pam_get_authtok() 145 FREE(resp); in pam_get_authtok() 148 if (strcmp(resp, resp2) != 0) { in pam_get_authtok() 149 strlset(resp, 0, PAM_MAX_RESP_SIZE); in pam_get_authtok() 150 FREE(resp); in pam_get_authtok() 155 if (resp == NULL) in pam_get_authtok() 157 r = pam_set_item(pamh, item, resp); in pam_get_authtok() 158 strlset(resp, 0, PAM_MAX_RESP_SIZE); in pam_get_authtok() [all …]
|
/dragonfly/lib/libc/resolv/ |
H A D | res_findzonecut.c | 289 if (resp == NULL) in get_soa() 381 free(resp); in get_soa() 402 if (resp != NULL) in get_soa() 403 free(resp); in get_soa() 411 u_char *resp; in get_ns() local 424 free(resp); in get_ns() 432 free(resp); in get_ns() 436 free(resp); in get_ns() 443 u_char *resp; in get_glue() local 507 free(resp); in get_glue() [all …]
|
/dragonfly/libexec/ypxfr/ |
H A D | ypxfr_misc.c | 151 ypresp_master *resp; in ypxfr_get_master() local 163 if ((resp = ypproc_master_2(&req, clnt)) == NULL) { in ypxfr_get_master() 171 if (resp->stat != YP_TRUE) { in ypxfr_get_master() 172 switch (resp->stat) { in ypxfr_get_master() 186 snprintf(mastername, sizeof(mastername), "%s", resp->peer); in ypxfr_get_master() 216 ypresp_order *resp; in ypxfr_get_order() local 227 if ((resp = ypproc_order_2(&req, clnt)) == NULL) { in ypxfr_get_order() 235 if (resp->stat != YP_TRUE) { in ypxfr_get_order() 236 switch (resp->stat) { in ypxfr_get_order() 250 return(resp->ordernum); in ypxfr_get_order()
|