Lines Matching refs:oiap_session
28 static struct session_data oiap_session = {0, }; variable
595 if (oiap_session.valid && oiap_session.handle == auth_handle) in tpm_terminate_auth_session()
596 oiap_session.valid = 0; in tpm_terminate_auth_session()
605 if (oiap_session.valid) in tpm_end_oiap()
606 err = tpm_terminate_auth_session(oiap_session.handle); in tpm_end_oiap()
623 if (oiap_session.valid) in tpm_oiap()
624 tpm_terminate_auth_session(oiap_session.handle); in tpm_oiap()
630 res_auth_handle_offset, &oiap_session.handle, in tpm_oiap()
631 res_nonce_even_offset, &oiap_session.nonce_even, in tpm_oiap()
634 oiap_session.valid = 1; in tpm_oiap()
636 *auth_handle = oiap_session.handle; in tpm_oiap()
659 if (!oiap_session.valid) { in tpm_load_key2_oiap()
675 &oiap_session, in tpm_load_key2_oiap()
683 oiap_session.valid = 0; in tpm_load_key2_oiap()
689 4, &oiap_session, in tpm_load_key2_oiap()
723 if (!oiap_session.valid) { in tpm_get_pub_key_oiap()
736 err = create_request_auth(request, sizeof(command), 4, &oiap_session, in tpm_get_pub_key_oiap()
743 oiap_session.valid = 0; in tpm_get_pub_key_oiap()
748 0, &oiap_session, in tpm_get_pub_key_oiap()