TSPI_CHANGEAUTH(3)
π Tspi_Change_Auth(3) π
okay bestie, welcome to the TCG Software Stack Developer's Reference β¨ this one's a lil glow-up page for your objects, fr fr.
πΈ NAME πΈ
Tspi_ChangeAuth β change the authorization data of an entity.
likeβ¦ the secret password thing? yeah. we're swapping it. π
β¨ 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_ChangeAuth(TSS_HOBJECT hObjectToChange, TSS_HOBJECT hParentObject,
TSS_HPOLICY hNewPolicy );
look at all those includes. she's prepared. she's got the whole TSS closet unpacked π
π¦ DESCRIPTION π¦
so Tspi_ChangeAuth changes the authorization data (that's the secret, the lil password vibe) of an entity β and yes, an entity is an object here, keep up bestie π β and then it assigns the object to the policy object.
and the tea? all classes using secrets provide this method for changing their authorization data. every single one. it's giving universal. it's giving main character energy for every secret-holding class out there π
π PARAMETERS π
hObjectToChange
handle of the object you wanna change authorization for. the glow-up target π«Ά
hParentObject
handle of the parent object β the one wrapping the object addressed by hObjectToChange. so like, your object has a parent. we respect that. we go through the parent. π
hNewPolicy
handle of the policy object that's providing the new authorization data. this is the new secret. the new era. the rebrand. β¨
π₯ RETURN CODES π₯
Tspi_ChangeAuth returns TSS_SUCCESS on success β slay, we love a win π β otherwise one of these lil guys comes back at you:
TSS_E_INVALID_HANDLEβ eitherhObjectToChange, orhParentObjectare not a valid handle. πTSS_E_INTERNAL_ERRORβ an error occurred internal to the TSS. not us, it's internal. it's their business. π
π CONFORMING TO π
Tspi_ChangeAuth conforms to the Trusted Computing Group Software Specification version 1.1 Golden β yes ma'am, certified, spec-compliant, iconic.
π SEE ALSO π
Tspi_ChangeAuthAsym(3)β the sibling. the asymmetric one. iykyk π
okay and for the sign-off, since you asked so nicely: this page is from TSS 1.1, dated 2004-05-26 β yeah she's vintage, but she still ate π β¨ bye bestie, go change some auth data responsibly π¦
π¦ 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