Tspi_Policy_FlushSecret(3)
π Tspi_Policy_FlushSecret(3) π
okay bestie, so this one's from the Library Functions Manual (that's the manual name, keep it in your notes π) and it's genuinely such a little cutie. short page, big "clean up your mess" energy. let's go β¨
β¨ NAME β¨
Tspi_Policy_FlushSecret β flush a cached secret π
πΈ 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_Policy_FlushSecret(TSS_HPOLICY hPolicy);
like yes, that's a LOT of #include lines, but you literally just copy-paste them and vibe. the whole API lives in tss/tspi.h land, and all seven of these headers are coming along for the ride. π¦
π DESCRIPTION π
Tspi_Policy_FlushSecret tells the TSS to flush a secret that it had cached for a user.
that's it. that's the whole plot. π«Ά the TSS was holding onto a secret for a user, and this function is you going "okay bestie, we're done here, let it go". not me being emotional about a cache invalidation function π
π PARAMETERS π
hPolicy
the hPolicy parameter is the handle of the policy object to be flushed. that's the one you're sending to the void. π
β RETURN CODES β
Tspi_Policy_FlushSecret returns TSS_SUCCESS on success β slay, that's the good ending π β otherwise one of the following values is returned:
TSS_E_INVALID_HANDLEβhPolicyis not a valid handle. like, this handle is giving nothing, it's not real, we cannot work with this πTSS_E_INTERNAL_ERRORβ an internal SW error has been detected. not your fault, something inside the stack simply woke up and chose chaos π
π₯ CONFORMING TO π₯
Tspi_Policy_FlushSecret conforms to the Trusted Computing Group Software Specification version 1.1 Golden. so it's officially official, no cap. β¨
π¦ SEE ALSO π¦
go read those next, bestie, the lore is connected iykyk π
ok real talk for one sec: this page only documents the two error returns above, so if you see anything else come back, that's outside what's written here. don't be out here guessing, fr fr. π
and that's the whole page!! mwah π this was TSS 1.1, dated 2004-05-25, and honestly? iconic. periodt. ππ§ββοΈπ
π¦ where this page comes from
- debian bookworm: libtspi-dev 0.3.15-0.3 Β· BSD-3-Clause
- debian trixie: libtspi-dev 0.3.15-0.4 Β· BSD-3-Clause
- epel 10: trousers-devel 0.3.15-11.el10_0 Β· BSD
- epel 9: trousers-devel 0.3.15-5.el9 Β· BSD
- fedora 43: trousers-devel 0.3.15-15.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-15.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-16.fc43 Β· LicenseRef-Callaway-BSD
- fedora 43: trousers-devel 0.3.15-16.fc43 Β· LicenseRef-Callaway-BSD
- fedora 44: trousers-devel 0.3.15-17.fc44 Β· LicenseRef-Callaway-BSD
- fedora 44: trousers-devel 0.3.15-17.fc44 Β· LicenseRef-Callaway-BSD
- nixos 26.05: trousers 0.3.15
- nixpkgs unstable: netbsd-source 11.0
- nixpkgs unstable: trousers 0.3.15
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- opensuse-leap 16.0: trousers-devel 0.3.15-160000.2.2 Β· BSD-3-Clause
- ubuntu jammy: libtspi-dev 0.3.15-0.2 Β· BSD-3-Clause
- ubuntu noble: libtspi-dev 0.3.15-0.3build2 Β· BSD-3-Clause
- ubuntu questing: libtspi-dev 0.3.15-0.4
- ubuntu resolute: libtspi-dev 0.3.15-1 Β· BSD-3-Clause
- ubuntu stonking: libtspi-dev 0.3.15-1ubuntu2 Β· BSD-3-Clause
- Copyright (C) 2004 International Business Machines Corporation
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms