Lines Matching refs:NULL
76 static struct eap_method *eap_methods = NULL;
86 return NULL; in eap_peer_get_eap_method()
116 if (config == NULL || config->eap_methods == NULL) in eap_config_allowed_method()
187 if (methods == NULL) in eap_get_phase2_types()
188 return NULL; in eap_get_phase2_types()
191 if (buf == NULL) in eap_get_phase2_types()
192 return NULL; in eap_get_phase2_types()
200 config->private_key2 == NULL) in eap_get_phase2_types()
216 if (eap == NULL) in eap_peer_method_alloc()
217 return NULL; in eap_peer_method_alloc()
231 struct eap_method *m, *last = NULL; in eap_peer_method_register()
233 if (method == NULL || method->name == NULL) in eap_peer_method_register()
319 if (sm->m == NULL || sm->eap_method_priv == NULL) in eap_deinit_prev_method()
322 sm->eap_method_priv = NULL; in eap_deinit_prev_method()
323 sm->m = NULL; in eap_deinit_prev_method()
357 if (config == NULL) { in eap_sm_buildIdentity()
360 return NULL; in eap_sm_buildIdentity()
365 &identity_len)) != NULL) { in eap_sm_buildIdentity()
380 if (identity == NULL) { in eap_sm_buildIdentity()
385 return NULL; in eap_sm_buildIdentity()
392 return NULL; in eap_sm_buildIdentity()
396 return NULL; in eap_sm_buildIdentity()
401 if (resp == NULL) in eap_sm_buildIdentity()
402 return NULL; in eap_sm_buildIdentity()
414 struct wpabuf *eap_buf = NULL; in eap_sm_build_identity_resp()
417 if (config == NULL) { in eap_sm_build_identity_resp()
419 return NULL; in eap_sm_build_identity_resp()
434 if (identity == NULL) { in eap_sm_build_identity_resp()
436 return NULL; in eap_sm_build_identity_resp()
442 return NULL; in eap_sm_build_identity_resp()
457 if (methods == NULL) in eap_sm_build_nak()
458 return NULL; in eap_sm_build_nak()
464 if (resp == NULL) in eap_sm_build_nak()
465 return NULL; in eap_sm_build_nak()
472 if (resp == NULL) in eap_sm_build_nak()
473 return NULL; in eap_sm_build_nak()
485 if (config == NULL || config->private_key == 0 || config->client_cert == 0) in eap_sm_build_nak()
517 sm->config.anonymous_identity = NULL; in eap_peer_config_init()
518 sm->config.identity = NULL; in eap_peer_config_init()
519 sm->config.password = NULL; in eap_peer_config_init()
520 sm->config.new_password = NULL; in eap_peer_config_init()
526 sm->config.ca_path = NULL; in eap_peer_config_init()
536 if (sm->config.anonymous_identity == NULL) in eap_peer_config_init()
545 if (sm->config.identity == NULL) { in eap_peer_config_init()
554 if (sm->config.password == NULL) in eap_peer_config_init()
562 if (sm->config.new_password == NULL) in eap_peer_config_init()
596 if (methods == NULL) { in eap_peer_config_init()
603 if (config_methods == NULL) { in eap_peer_config_init()
649 config_methods = NULL; in eap_peer_config_deinit()
661 if (sm->blob[0].name == NULL) { in eap_peer_blob_init()
672 if (sm->blob[1].name == NULL) { in eap_peer_blob_init()
683 if (sm->blob[2].name == NULL) { in eap_peer_blob_init()
694 if (sm->blob[3].name == NULL) { in eap_peer_blob_init()
708 sm->blob[i].name = NULL; in eap_peer_blob_init()
722 if (sm == NULL) in eap_sm_request()
725 if (config == NULL) in eap_sm_request()
755 if (sm->m == NULL) in eap_sm_get_method_name()
772 eap_sm_request(sm, WPA_CTRL_REQ_EAP_IDENTITY, NULL, 0); in eap_sm_request_identity()
787 eap_sm_request(sm, WPA_CTRL_REQ_EAP_PASSWORD, NULL, 0); in eap_sm_request_password()
802 eap_sm_request(sm, WPA_CTRL_REQ_EAP_NEW_PASSWORD, NULL, 0); in eap_sm_request_new_password()
812 sm->blob[i].name = NULL; in eap_peer_blob_deinit()
817 sm->config.client_cert = NULL; in eap_peer_blob_deinit()
818 sm->config.private_key = NULL; in eap_peer_blob_deinit()
819 sm->config.ca_cert = NULL; in eap_peer_blob_deinit()
820 sm->config.pac_file = NULL; in eap_peer_blob_deinit()
826 sm->lastRespData = NULL; in eap_sm_abort()
854 if (config == NULL) in eap_get_config_identity()
855 return NULL; in eap_get_config_identity()
870 if (config == NULL) in eap_get_config_password()
871 return NULL; in eap_get_config_password()
889 if (config == NULL) in eap_get_config_password2()
890 return NULL; in eap_get_config_password2()
908 if (config == NULL) in eap_get_config_new_password()
909 return NULL; in eap_get_config_new_password()
920 if (*dst == NULL) in eap_copy_buf()
959 return NULL; in eap_get_config_blob()
962 if (sm->blob[i].name == NULL) in eap_get_config_blob()
968 return NULL; in eap_get_config_blob()