-
Notifications
You must be signed in to change notification settings - Fork 45
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Auto flush #398
Auto flush #398
Conversation
Codecov Report
@@ Coverage Diff @@
## master #398 +/- ##
==========================================
+ Coverage 88.17% 88.19% +0.01%
==========================================
Files 18 18
Lines 6630 6708 +78
Branches 972 991 +19
==========================================
+ Hits 5846 5916 +70
- Misses 639 643 +4
- Partials 145 149 +4
📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
c789557
to
695d417
Compare
self.assertEqual(len(handles), 1) | ||
|
||
session_copy = ESYS_TR(session) | ||
session.__del__() |
Check warning
Code scanning / CodeQL
`__del__` is called explicitly
handles += list(data.data.handles) | ||
self.assertEqual(len(handles), 1) | ||
|
||
session_copy.__del__() |
Check warning
Code scanning / CodeQL
`__del__` is called explicitly
handles += list(data.data.handles) | ||
self.assertEqual(len(handles), 1) | ||
|
||
session.__del__() |
Check warning
Code scanning / CodeQL
`__del__` is called explicitly
Convinient property to get handle type instead of doing bitwise operations. Signed-off-by: Erik Larsson <who+github@cnackers.org>
Signed-off-by: Erik Larsson <who+github@cnackers.org>
This commit adds the following functionality: * Flush transient/session handles when the ESAPI context is closed if flush_on_close is True (default is True) * Flush transient/session handles when the destructor is called on a ESYS_TR if flush_on_close is True Signed-off-by: Erik Larsson <who+github@cnackers.org>
72bed68
to
6806d4c
Compare
This PR adds the following functionality:
Also added ESAPI.trsess_get_attributes and type property to TPM2_HANDLE as they are needed for keeping track of if a session has TPMA_SESSION.CONTINUESESSION set and if a handle is a transient object/session
Fixes #372