Skip to content

[Feature] KeyCollector not prompted with TouchRequest for PIV operation #229

@canton7

Description

@canton7

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

When using PIV, for example PivSession.Sign, the KeyCollector will never be called with TouchRequest, even when the operation requires a touch.

PivSession.PerformPrivateKeyOperation knows the touch policy, so it can work out whether a touch will be requested. However, it just doesn't contain any logic to prompt the user to touch the YubiKey.

Expected Behavior

Operations on PivSession which request a touch will call the KeyCollector with a TouchRequest`.

Steps To Reproduce

  1. Set a PivTouchPolicy of Once or Always
  2. Perform an operation which requires a touch
  3. Observe that the KeyCollector is not called with a request of TouchRequest

Version

1.13.0

Version

N/A

Anything else?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions