Skip to content

Commit

Permalink
Fix SimulateHwMechanism in GetMechanismInfoHandler (#15)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jemmy1228 authored Nov 18, 2024
1 parent 9ed82b4 commit 0b878b8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public async ValueTask<GetMechanismInfoEnvelope> Handle(GetMechanismInfoRequest
MechanismType = request.MechanismType,
MinKeySize = mechanismInfo.MinKeySize,
MaxKeySize = mechanismInfo.MaxKeySize,
Flags = (uint)((slot.Token.SimulateHwMechanism) ? mechanismInfo.Flags : mechanismInfo.Flags | MechanismCkf.CKF_HW)
Flags = (uint)(slot.Token.SimulateHwMechanism ? (mechanismInfo.Flags | MechanismCkf.CKF_HW) : mechanismInfo.Flags)
}
};
}
Expand All @@ -49,4 +49,4 @@ public async ValueTask<GetMechanismInfoEnvelope> Handle(GetMechanismInfoRequest
};
}
}
}
}

0 comments on commit 0b878b8

Please sign in to comment.