Tspi_C..._Close(3)

πŸ’– NAME πŸ’–

Tspi_Context_Close β€” destroy a TSP context handle. bestie, it's the goodbye button 🫢


✨ SYNOPSIS ✨

#include <tss/platform.h>
#include <tss/tcpa_defines.h>
#include <tss/tcpa_typedef.h>
#include <tss/tcpa_struct.h>
#include <tss/tss_typedef.h>
#include <tss/tss_structs.h>
#include <tss/tspi.h>

TSS_RESULT Tspi_Context_Close(TSS_HCONTEXT hLocalContext);

🌸 DESCRIPTION 🌸

okay so. Tspi_Context_Close destroys a context, and the way it does that is by passing in the handle to that context. that's it. that's the whole vibe. you hand it the handle, it closes the context, slay πŸ’…

ngl it's giving "closing the group chat" energy β€” the context is gone-gone after this.


πŸŽ€ PARAMETERS πŸŽ€

  • hLocalContext β€” the handle to the context that's getting closed. this is the one you're saying bye to, periodt ✨

πŸ”₯ RETURN CODES πŸ”₯

Tspi_Context_Close returns TSS_SUCCESS when it goes well. if it doesn't, one of these cuties comes back instead:

  • TSS_E_INVALID_HANDLE β€” hLocalContext is an invalid handle. not me handing over a fake ID 😭
  • TSS_E_INTERNAL_ERROR β€” an error occurred internal to the TSS. something went wrong deep inside, no cap πŸ’€

πŸ‘‘ CONFORMING TO πŸ‘‘

Tspi_Context_Close conforms to the Trusted Computing Group Software Specification version 1.1 Golden. iconic behavior honestly ⭐


🌈 SEE ALSO 🌈


this whole page lives in the TCG Software Stack Developer's Reference, and it's serving TSS 1.1, dated 2004-05-26. that's a throwback fr fr πŸ’œ πŸ¦‹