teleport icon indicating copy to clipboard operation
teleport copied to clipboard

Test `scard.rs`

Open ibeckermayer opened this issue 2 years ago • 0 comments

Adds tests for all of the IoctlCodes we handle during smartcard initialization.

The lingering raw vec![...]'s in the tests are due to DeviceControlResponse's output_buffer being a Vec<u8>, when really it should be a &dyn Encode or Box<dyn Encode> https://github.com/gravitational/teleport/blob/93dfe4eea4f6361517b45dc81a8a1bad093de47c/lib/srv/desktop/rdp/rdpclient/src/rdpdr.rs#L2277-L2281

I'm considering that beyond the scope of this PR and will change it in an upcoming one.

ibeckermayer avatar Sep 21 '22 19:09 ibeckermayer