teleport
teleport copied to clipboard
Test `scard.rs`
Adds tests for all of the IoctlCode
s 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.