Skip to content

Commit

Permalink
Add logs for C_Finalize.
Browse files Browse the repository at this point in the history
  • Loading branch information
harrison314 committed Mar 30, 2023
1 parent 2f781d2 commit 05e236f
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions src/Src/BouncyHsm.Core/Services/P11Handlers/FinalizeHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,14 @@ public ValueTask<FinalizeEnvelope> Handle(FinalizeRequest request, CancellationT
string key = DataTransform.GetApplicationKey(request.AppId);
this.clientApplicationContext.ReleaseMemorySession(key);

FinalizeEnvelope envelope = new FinalizeEnvelope()
this.logger.LogInformation("Successfully finalize memory session for application {appName} pid {pid} and nonce {appNonce}.",
request.AppId.AppName,
request.AppId.Pid,
request.AppId.AppNonce);

return new ValueTask<FinalizeEnvelope>(new FinalizeEnvelope()
{
Rv = (uint)CKR.CKR_OK
};

return new ValueTask<FinalizeEnvelope>(envelope);
});
}
}

0 comments on commit 05e236f

Please sign in to comment.