Lines Matching refs:NULL

70 	if (wps->dh_privkey == NULL) {  in wps_derive_keys()
76 if (pubkey == NULL) { in wps_derive_keys()
85 wps->dh_ctx = NULL; in wps_derive_keys()
87 if (dh_shared == NULL) { in wps_derive_keys()
99 wps->dh_privkey = NULL; in wps_derive_keys()
121 wps_kdf(kdk, NULL, 0, "Wi-Fi Easy and Secure Key Derivation", in wps_derive_keys()
171 if (encr == NULL || encr_len < 2 * block_size || encr_len % block_size) in wps_decrypt_encr_settings()
174 return NULL; in wps_decrypt_encr_settings()
178 if (decrypted == NULL) in wps_decrypt_encr_settings()
179 return NULL; in wps_decrypt_encr_settings()
186 return NULL; in wps_decrypt_encr_settings()
197 return NULL; in wps_decrypt_encr_settings()
204 return NULL; in wps_decrypt_encr_settings()
283 if (wps->event_cb == NULL) in wps_fail_event()
299 if (wps->event_cb == NULL) in wps_success_event()
313 if (wps->event_cb == NULL) in wps_pwd_auth_fail_event()
326 if (wps->event_cb == NULL) in wps_pbc_overlap_event()
329 wps->event_cb(wps->cb_ctx, WPS_EV_PBC_OVERLAP, NULL); in wps_pbc_overlap_event()
335 if (wps->event_cb == NULL) in wps_selected_registrar_timeout_event()
338 wps->event_cb(wps->cb_ctx, WPS_EV_SELECTED_REGISTRAR_TIMEOUT, NULL); in wps_selected_registrar_timeout_event()
343 if (wps->event_cb == NULL) in wps_pbc_timeout_event()
346 wps->event_cb(wps->cb_ctx, WPS_EV_PBC_TIMEOUT, NULL); in wps_pbc_timeout_event()
352 if (wps->event_cb == NULL) in wps_pbc_active_event()
355 wps->event_cb(wps->cb_ctx, WPS_EV_PBC_ACTIVE, NULL); in wps_pbc_active_event()
361 if (wps->event_cb == NULL) in wps_pbc_disable_event()
364 wps->event_cb(wps->cb_ctx, WPS_EV_PBC_DISABLE, NULL); in wps_pbc_disable_event()
377 if (plain == NULL) { in wps_get_oob_cred()
380 return NULL; in wps_get_oob_cred()
391 wps_build_wfa_ext(plain, 0, NULL, 0, 0)) { in wps_get_oob_cred()
394 return NULL; in wps_get_oob_cred()
434 if (data == NULL) in wps_build_nfc_pw_token()
435 return NULL; in wps_build_nfc_pw_token()
439 wps_build_wfa_ext(data, 0, NULL, 0, 0)) { in wps_build_nfc_pw_token()
443 return NULL; in wps_build_nfc_pw_token()
485 if (pos == NULL) in wps_dev_type_str2bin()
491 if (pos == NULL) in wps_dev_type_str2bin()
510 return NULL; in wps_dev_type_bin2str()
548 if (str == NULL || str[0] == '\0') { in wps_config_methods_str2bin()
598 if (msg == NULL) in wps_build_wsc_ack()
599 return NULL; in wps_build_wsc_ack()
605 wps_build_wfa_ext(msg, 0, NULL, 0, 0)) { in wps_build_wsc_ack()
607 return NULL; in wps_build_wsc_ack()
621 if (msg == NULL) in wps_build_wsc_nack()
622 return NULL; in wps_build_wsc_nack()
629 wps_build_wfa_ext(msg, 0, NULL, 0, 0)) { in wps_build_wsc_nack()
631 return NULL; in wps_build_wsc_nack()
645 if (pubkey == NULL || dev_pw == NULL) in wps_nfc_token_build()
646 return NULL; in wps_nfc_token_build()
653 if (tmp == NULL) in wps_nfc_token_build()
654 return NULL; in wps_nfc_token_build()
664 struct wpabuf *priv = NULL, *pub = NULL; in wps_nfc_gen_dh()
668 if (dh_ctx == NULL) in wps_nfc_gen_dh()
671 if (pub == NULL) { in wps_nfc_gen_dh()
696 if (pw == NULL) in wps_nfc_token_gen()
697 return NULL; in wps_nfc_token_gen()
703 return NULL; in wps_nfc_token_gen()
708 return NULL; in wps_nfc_token_gen()
725 if (ctx == NULL) in wps_build_nfc_handover_req()
726 return NULL; in wps_build_nfc_handover_req()
731 if (nfc_dh_pubkey == NULL) { in wps_build_nfc_handover_req()
734 return NULL; in wps_build_nfc_handover_req()
738 if (msg == NULL) in wps_build_nfc_handover_req()
743 nfc_dh_pubkey, NULL, 0) || in wps_build_nfc_handover_req()
745 wps_build_wfa_ext(msg, 0, NULL, 0, 0)) { in wps_build_nfc_handover_req()
747 return NULL; in wps_build_nfc_handover_req()
806 if (ctx == NULL) in wps_build_nfc_handover_sel()
807 return NULL; in wps_build_nfc_handover_sel()
812 if (nfc_dh_pubkey == NULL) { in wps_build_nfc_handover_sel()
815 return NULL; in wps_build_nfc_handover_sel()
819 if (msg == NULL) in wps_build_nfc_handover_sel()
824 nfc_dh_pubkey, NULL, 0) || in wps_build_nfc_handover_sel()
828 wps_build_wfa_ext(msg, 0, NULL, 0, 0)) { in wps_build_nfc_handover_sel()
830 return NULL; in wps_build_nfc_handover_sel()
844 if (ctx == NULL) in wps_build_nfc_handover_req_p2p()
845 return NULL; in wps_build_nfc_handover_req_p2p()
850 if (nfc_dh_pubkey == NULL) { in wps_build_nfc_handover_req_p2p()
852 return NULL; in wps_build_nfc_handover_req_p2p()
856 if (msg == NULL) in wps_build_nfc_handover_req_p2p()
863 nfc_dh_pubkey, NULL, 0) || in wps_build_nfc_handover_req_p2p()
867 wps_build_wfa_ext(msg, 0, NULL, 0, 0)) { in wps_build_nfc_handover_req_p2p()
869 return NULL; in wps_build_nfc_handover_req_p2p()
885 if (ctx == NULL) in wps_build_nfc_handover_sel_p2p()
886 return NULL; in wps_build_nfc_handover_sel_p2p()
891 if (nfc_dh_pubkey == NULL || in wps_build_nfc_handover_sel_p2p()
893 nfc_dev_pw == NULL)) { in wps_build_nfc_handover_sel_p2p()
896 return NULL; in wps_build_nfc_handover_sel_p2p()
900 if (msg == NULL) in wps_build_nfc_handover_sel_p2p()
907 dev_pw = NULL; in wps_build_nfc_handover_sel_p2p()
919 wps_build_wfa_ext(msg, 0, NULL, 0, 0)) { in wps_build_nfc_handover_sel_p2p()
921 return NULL; in wps_build_nfc_handover_sel_p2p()