You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix TPM corruption test workflow for old version compatibility
Changes requested by user:
1. Remove C_Finalize and unload_library calls from corruption test
- These could cause metadata to fix itself upon closing
- Use _exit(0) instead to avoid cleanup handlers
2. Update both test programs to use C_GetSlotList instead of hardcoded slot 1
- More robust and portable across different CI environments
3. Update access_test expectations to properly handle migration
- Treat CKR_USER_PIN_NOT_INITIALIZED (0x00000102) as migration bug
- Provide clear error messages distinguishing migration vs corruption issues
- Expect login to succeed after proper migration is implemented
These changes prepare the workflow for the upcoming migration/repair function
that will detect old-format tokens and set WP11_TOKEN_STATE_INITIALIZED flag.
Co-Authored-By: [email protected] <[email protected]>
0 commit comments