Skip to content
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

ESYS: Add reference counting for Esys_TR_FromTPMPublic #2707

Commits on Nov 16, 2023

  1. ESYS: Add reference counting for Esys_TR_FromTPMPublic.

    For every call of Esys_TR_FromTPMPublic the reference counter is incremented
    to ensure that the created esys object is only freed by Esys_Close if
    the reference count will be zero or decreased to zero.
    Fixes: tpm2-software#2693
    
    Signed-off-by: Juergen Repp <juergen_repp@web.de>
    JuergenReppSIT committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    bce272a View commit details
    Browse the repository at this point in the history
  2. ESYS TEST: Check reference counting for Esys_TR_FromTPMPublic.

    The test esys-tr-fromTpmPublic-key is extended.
    It is tested whether an esys object can be still used after
    two calls of Esys_TR_FromTPMPublic and one Esys_Close for this object.
    
    Signed-off-by: Juergen Repp <juergen_repp@web.de>
    JuergenReppSIT committed Nov 16, 2023
    Configuration menu
    Copy the full SHA
    31f1770 View commit details
    Browse the repository at this point in the history