| /dragonfly/contrib/wpa_supplicant/wpa_supplicant/ |
| HD | p2p_supplicant_sd.c | 183 static void wpas_sd_add_empty(struct wpabuf *resp, u8 srv_proto, in wpas_sd_add_empty() argument 188 if (wpabuf_tailroom(resp) < 5) in wpas_sd_add_empty() 192 len_pos = wpabuf_put(resp, 2); in wpas_sd_add_empty() 193 wpabuf_put_u8(resp, srv_proto); in wpas_sd_add_empty() 194 wpabuf_put_u8(resp, srv_trans_id); in wpas_sd_add_empty() 196 wpabuf_put_u8(resp, status); in wpas_sd_add_empty() 198 WPA_PUT_LE16(len_pos, (u8 *) wpabuf_put(resp, 0) - len_pos - 2); in wpas_sd_add_empty() 202 static void wpas_sd_add_proto_not_avail(struct wpabuf *resp, u8 srv_proto, in wpas_sd_add_proto_not_avail() argument 205 wpas_sd_add_empty(resp, srv_proto, srv_trans_id, in wpas_sd_add_proto_not_avail() 210 static void wpas_sd_add_bad_request(struct wpabuf *resp, u8 srv_proto, in wpas_sd_add_bad_request() argument [all …]
|
| /dragonfly/contrib/wpa_supplicant/src/common/ |
| HD | gas_server.c | 28 void (*status_cb)(void *ctx, struct wpabuf *resp, int ok); 37 struct wpabuf *resp; member 47 void (*tx)(void *ctx, int freq, const u8 *da, struct wpabuf *resp, 64 (unsigned long) wpabuf_len(response->resp)); in gas_server_response_timeout() 66 response->resp, 0); in gas_server_response_timeout() 67 response->resp = NULL; in gas_server_response_timeout() 79 wpabuf_free(response->resp); in gas_server_free_response() 92 struct wpabuf *resp; in gas_server_send_resp() local 119 resp = gas_build_initial_resp(dialog_token, WLAN_STATUS_SUCCESS, in gas_server_send_resp() 123 if (!resp) { in gas_server_send_resp() [all …]
|
| /dragonfly/contrib/wpa_supplicant/src/eap_peer/ |
| HD | eap_eke.c | 199 struct wpabuf *resp; in eap_eke_build_fail() local 204 resp = eap_eke_build_msg(data, id, 4, EAP_EKE_FAILURE); in eap_eke_build_fail() 205 if (resp) in eap_eke_build_fail() 206 wpabuf_put_be32(resp, failure_code); in eap_eke_build_fail() 216 return resp; in eap_eke_build_fail() 226 struct wpabuf *resp; in eap_eke_process_id() local 321 resp = eap_eke_build_msg(data, id, in eap_eke_process_id() 324 if (resp == NULL) { in eap_eke_process_id() 329 wpabuf_put_u8(resp, 1); /* NumProposals */ in eap_eke_process_id() 330 wpabuf_put_u8(resp, 0); /* Reserved */ in eap_eke_process_id() [all …]
|
| HD | eap_sake.c | 148 struct wpabuf *resp; in eap_sake_process_identity() local 168 resp = eap_sake_build_msg(data, id, 2 + data->peerid_len, in eap_sake_process_identity() 170 if (resp == NULL) in eap_sake_process_identity() 174 eap_sake_add_attr(resp, EAP_SAKE_AT_PEERID, in eap_sake_process_identity() 179 return resp; in eap_sake_process_identity() 191 struct wpabuf *resp; in eap_sake_process_challenge() local 251 resp = eap_sake_build_msg(data, id, rlen, EAP_SAKE_SUBTYPE_CHALLENGE); in eap_sake_process_challenge() 252 if (resp == NULL) in eap_sake_process_challenge() 256 eap_sake_add_attr(resp, EAP_SAKE_AT_RAND_P, in eap_sake_process_challenge() 261 eap_sake_add_attr(resp, EAP_SAKE_AT_PEERID, in eap_sake_process_challenge() [all …]
|
| HD | eap_gpsk.c | 280 struct wpabuf *resp; in eap_gpsk_process_gpsk_1() local 301 resp = eap_gpsk_send_gpsk_2(data, identifier, in eap_gpsk_process_gpsk_1() 303 if (resp == NULL) in eap_gpsk_process_gpsk_1() 308 return resp; in eap_gpsk_process_gpsk_1() 317 struct wpabuf *resp; in eap_gpsk_send_gpsk_2() local 329 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_GPSK, len, in eap_gpsk_send_gpsk_2() 331 if (resp == NULL) in eap_gpsk_send_gpsk_2() 334 wpabuf_put_u8(resp, EAP_GPSK_OPCODE_GPSK_2); in eap_gpsk_send_gpsk_2() 335 start = wpabuf_put(resp, 0); in eap_gpsk_send_gpsk_2() 339 wpabuf_put_be16(resp, data->id_peer_len); in eap_gpsk_send_gpsk_2() [all …]
|
| HD | eap_teap.c | 378 struct wpabuf **resp) in eap_teap_phase2_request() argument 395 *resp = eap_sm_buildIdentity(sm, hdr->identifier, 1); in eap_teap_phase2_request() 415 hdr, resp)) in eap_teap_phase2_request() 432 *resp = data->phase2_method->process(sm, data->phase2_priv, &iret, in eap_teap_phase2_request() 436 if (!(*resp) || in eap_teap_phase2_request() 448 if (!(*resp) && config && in eap_teap_phase2_request() 454 } else if (!(*resp)) in eap_teap_phase2_request() 509 struct wpabuf *resp = NULL; in eap_teap_process_eap_payload_tlv() local 532 if (eap_teap_phase2_request(sm, data, ret, hdr, &resp)) { in eap_teap_process_eap_payload_tlv() 538 return eap_teap_tlv_eap_payload(resp); in eap_teap_process_eap_payload_tlv() [all …]
|
| HD | eap_pax.c | 96 struct wpabuf *resp; in eap_pax_alloc_resp() local 99 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_PAX, in eap_pax_alloc_resp() 101 if (resp == NULL) in eap_pax_alloc_resp() 104 pax = wpabuf_put(resp, sizeof(*pax)); in eap_pax_alloc_resp() 111 return resp; in eap_pax_alloc_resp() 120 struct wpabuf *resp; in eap_pax_process_std_1() local 191 resp = eap_pax_alloc_resp(req, id, EAP_PAX_OP_STD_2, plen); in eap_pax_process_std_1() 192 if (resp == NULL) in eap_pax_process_std_1() 195 wpabuf_put_be16(resp, EAP_PAX_RAND_LEN); in eap_pax_process_std_1() 196 wpabuf_put_data(resp, data->rand.r.y, EAP_PAX_RAND_LEN); in eap_pax_process_std_1() [all …]
|
| HD | eap_ttls.c | 243 static int eap_ttls_avp_encapsulate(struct wpabuf **resp, u32 avp_code, in eap_ttls_avp_encapsulate() argument 249 msg = wpabuf_alloc(sizeof(struct ttls_avp) + wpabuf_len(*resp) + 4); in eap_ttls_avp_encapsulate() 251 wpabuf_clear_free(*resp); in eap_ttls_avp_encapsulate() 252 *resp = NULL; in eap_ttls_avp_encapsulate() 257 pos = eap_ttls_avp_hdr(avp, avp_code, 0, mandatory, wpabuf_len(*resp)); in eap_ttls_avp_encapsulate() 258 os_memcpy(pos, wpabuf_head(*resp), wpabuf_len(*resp)); in eap_ttls_avp_encapsulate() 259 pos += wpabuf_len(*resp); in eap_ttls_avp_encapsulate() 261 wpabuf_clear_free(*resp); in eap_ttls_avp_encapsulate() 263 *resp = msg; in eap_ttls_avp_encapsulate() 339 struct wpabuf **resp) in eap_ttls_phase2_eap_process() argument [all …]
|
| HD | 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 …]
|
| HD | eap_tnc.c | 91 struct wpabuf *resp; in eap_tnc_build_msg() local 113 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_TNC, plen, in eap_tnc_build_msg() 115 if (resp == NULL) in eap_tnc_build_msg() 118 wpabuf_put_u8(resp, flags); /* Flags */ in eap_tnc_build_msg() 120 wpabuf_put_be32(resp, wpabuf_len(data->out_buf)); in eap_tnc_build_msg() 122 wpabuf_put_data(resp, wpabuf_head_u8(data->out_buf) + data->out_used, in eap_tnc_build_msg() 144 return resp; in eap_tnc_build_msg() 206 struct wpabuf *resp; in eap_tnc_process() local 354 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_TNC, 1, in eap_tnc_process() 356 if (resp == NULL) in eap_tnc_process() [all …]
|
| HD | eap_leap.c | 64 struct wpabuf *resp; in eap_leap_process_request() local 109 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_LEAP, in eap_leap_process_request() 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() 116 wpabuf_put_u8(resp, LEAP_RESPONSE_LEN); in eap_leap_process_request() 117 rpos = wpabuf_put(resp, LEAP_RESPONSE_LEN); in eap_leap_process_request() 123 wpabuf_free(resp); in eap_leap_process_request() 129 wpabuf_put_data(resp, identity, identity_len); in eap_leap_process_request() 133 return resp; in eap_leap_process_request() [all …]
|
| HD | eap_fast.c | 418 struct wpabuf **resp) in eap_fast_phase2_request() argument 434 *resp = eap_sm_buildIdentity(sm, hdr->identifier, 1); in eap_fast_phase2_request() 454 hdr, resp)) in eap_fast_phase2_request() 471 *resp = data->phase2_method->process(sm, data->phase2_priv, &iret, in eap_fast_phase2_request() 473 if (*resp == NULL || in eap_fast_phase2_request() 485 if (*resp == NULL && config && in eap_fast_phase2_request() 491 } else if (*resp == NULL) in eap_fast_phase2_request() 563 struct wpabuf *resp = NULL; in eap_fast_process_eap_payload_tlv() local 585 if (eap_fast_phase2_request(sm, data, ret, hdr, &resp)) { in eap_fast_process_eap_payload_tlv() 591 return eap_fast_tlv_eap_payload(resp); in eap_fast_process_eap_payload_tlv() [all …]
|
| HD | eap_peap.c | 473 const struct wpabuf *req, struct wpabuf **resp, in eap_tlv_process() argument 517 *resp = eap_tlv_build_nak(eap_get_id(req), in eap_tlv_process() 519 return *resp == NULL ? -1 : 0; in eap_tlv_process() 587 *resp = eap_tlv_build_result(sm, data, crypto_tlv != NULL, in eap_tlv_process() 599 struct wpabuf **resp) in eap_peap_phase2_request() argument 616 *resp = eap_sm_buildIdentity(sm, hdr->identifier, 1); in eap_peap_phase2_request() 620 if (eap_tlv_process(sm, data, &iret, req, resp, in eap_peap_phase2_request() 649 *resp = eap_msg_alloc( in eap_peap_phase2_request() 654 if (*resp == NULL) { in eap_peap_phase2_request() 660 wpabuf_put_buf(*resp, buf); in eap_peap_phase2_request() [all …]
|
| HD | eap_mschapv2.c | 149 struct wpabuf *resp; in eap_mschapv2_challenge_reply() local 166 resp = eap_msg_alloc(EAP_VENDOR_IETF, EAP_TYPE_MSCHAPV2, ms_len, in eap_mschapv2_challenge_reply() 168 if (resp == NULL) in eap_mschapv2_challenge_reply() 171 ms = wpabuf_put(resp, sizeof(*ms)); in eap_mschapv2_challenge_reply() 185 wpabuf_put_u8(resp, sizeof(*r)); /* Value-Size */ in eap_mschapv2_challenge_reply() 188 r = wpabuf_put(resp, sizeof(*r)); in eap_mschapv2_challenge_reply() 196 wpabuf_free(resp); in eap_mschapv2_challenge_reply() 211 wpabuf_free(resp); in eap_mschapv2_challenge_reply() 219 wpabuf_put_data(resp, identity, identity_len); in eap_mschapv2_challenge_reply() 222 return resp; in eap_mschapv2_challenge_reply() [all …]
|
| HD | 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/ |
| HD | update.c | 94 ldns_pkt *query, *resp; in ldns_update_soa_mname() local 104 if (ldns_resolver_send_pkt(&resp, r, query) != LDNS_STATUS_OK) { in ldns_update_soa_mname() 109 if (!resp) { in ldns_update_soa_mname() 115 while ((soa_rr = ldns_rr_list_pop_rr(ldns_pkt_answer(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 155 if (ldns_resolver_send_pkt(&resp, r, query) != LDNS_STATUS_OK) { in ldns_update_soa_zone_mname() 160 if (!resp) { in ldns_update_soa_zone_mname() 165 while ((soa_rr = ldns_rr_list_pop_rr(ldns_pkt_authority(resp)))) { in ldns_update_soa_zone_mname() 173 ldns_pkt_free(resp); in ldns_update_soa_zone_mname() [all …]
|
| /dragonfly/crypto/openssh/ |
| HD | ssh-sk-client.c | 147 struct sshbuf *req = NULL, *resp = NULL; in client_converse() local 153 if ((req = sshbuf_new()) == NULL || (resp = sshbuf_new()) == NULL) { in client_converse() 170 if ((r = ssh_msg_recv(fd, resp)) != 0) { in client_converse() 174 if ((r = sshbuf_get_u8(resp, &version)) != 0) { in client_converse() 184 if ((r = sshbuf_get_u32(resp, &rtype)) != 0) { in client_converse() 189 if ((r = sshbuf_get_u32(resp, &rerr)) != 0) { in client_converse() 218 *respp = resp; in client_converse() 219 resp = NULL; in client_converse() 222 sshbuf_free(resp); in client_converse() 235 struct sshbuf *kbuf = NULL, *req = NULL, *resp = NULL; in sshsk_sign() local [all …]
|
| /dragonfly/contrib/wpa_supplicant/src/eap_server/ |
| HD | eap_server_pax.c | 202 struct eap_pax_hdr *resp; in eap_pax_check() local 208 if (pos == NULL || len < sizeof(*resp) + EAP_PAX_ICV_LEN) { in eap_pax_check() 214 resp = (struct eap_pax_hdr *) pos; in eap_pax_check() 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() 225 resp->op_code != EAP_PAX_OP_STD_2) { in eap_pax_check() 227 "ignore op %d", resp->op_code); in eap_pax_check() 232 resp->op_code != EAP_PAX_OP_ACK) { in eap_pax_check() 234 "ignore op %d", resp->op_code); in eap_pax_check() [all …]
|
| HD | 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() 255 resp->op_code != MSCHAPV2_OP_RESPONSE) { in eap_mschapv2_check() 257 "ignore op %d", resp->op_code); in eap_mschapv2_check() 262 resp->op_code != MSCHAPV2_OP_SUCCESS && in eap_mschapv2_check() 263 resp->op_code != MSCHAPV2_OP_FAILURE) { in eap_mschapv2_check() 265 "Failure - ignore op %d", resp->op_code); in eap_mschapv2_check() 270 resp->op_code != MSCHAPV2_OP_FAILURE) { 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 [all …]
|
| /dragonfly/contrib/pam_passwdqc/ |
| HD | pam_passwdqc.c | 189 struct pam_response **resp) in converse() argument 196 *resp = NULL; in converse() 206 return conv->conv(1, (lo_const struct pam_message **)&pmsg, resp, in converse() 218 struct pam_response *resp; in say() local 226 status = converse(pamh, style, buffer, &resp); in say() 227 pwqc_drop_pam_reply(resp, 1); in say() 306 struct pam_response *resp; local 341 PROMPT_OLDPASS, &resp); 344 if (resp && resp->resp) { 346 PAM_OLDAUTHTOK, resp->resp); [all …]
|
| /dragonfly/usr.sbin/rmt/ |
| HD | 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/ |
| HD | pcsc_funcs.c | 812 unsigned char resp[3]; in _scard_select_file() local 839 len = sizeof(resp); in _scard_select_file() 840 ret = scard_transmit(scard, cmd, cmdlen, resp, &len); in _scard_select_file() 853 if (resp[0] == 0x98 && resp[1] == 0x04) { in _scard_select_file() 860 if (resp[0] == 0x6e) { in _scard_select_file() 865 if (resp[0] != 0x6c && resp[0] != 0x9f && resp[0] != 0x61) { in _scard_select_file() 867 "(expected 0x61, 0x6c, or 0x9f)", resp[0]); in _scard_select_file() 871 get_resp[4] = resp[1]; in _scard_select_file() 873 resp[1]); in _scard_select_file() 878 *buf_len = resp[1] < rlen ? resp[1] : rlen; in _scard_select_file() [all …]
|
| /dragonfly/contrib/openpam/lib/libpam/ |
| HD | 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/ |
| HD | res_findzonecut.c | 273 u_char *resp = NULL; in get_soa() local 288 resp = malloc(NS_MAXMSG); in get_soa() 289 if (resp == NULL) in get_soa() 299 n = do_query(statp, dname, class, ns_t_soa, resp, &msg); in get_soa() 370 if (ns_name_uncompress(resp, ns_msg_end(msg), rdata, 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 415 resp = malloc(NS_MAXMSG); in get_ns() [all …]
|
| /dragonfly/libexec/ypxfr/ |
| HD | 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()
|