2023-05-11 16:10:38 -05:00
|
|
|
# Backport of https://github.com/mozilla/authenticator-rs/pull/246
|
2023-05-12 07:09:33 -05:00
|
|
|
# .cargo-checksum.json will probably break next release, hopefully the issue is fixed by then
|
|
|
|
--- a/third_party/rust/authenticator/.cargo-checksum.json
|
|
|
|
+++ b/third_party/rust/authenticator/.cargo-checksum.json
|
|
|
|
@@ -1 +1 @@
|
|
|
|
-{"files":{"Cargo.lock":"f6a8f0e824a9dd07278b7c38ba5992fbcd61476b6dfa9ab8f234b2eb1a6bb537","Cargo.toml":"bcdb92fcb05fe306a2c22500d924f71ba27090551405b62334af0cef5547b895","Cross.toml":"8d132da818d48492aa9f4b78a348f0df3adfae45d988d42ebd6be8a5adadb6c3","LICENSE":"e866c8f5864d4cacfe403820e722e9dc03fe3c7565efa5e4dad9051d827bb92a","README.md":"c87d9c7cc44f1dd4ef861a3a9f8cd2eb68aedd3814768871f5fb63c2070806cd","build.rs":"01092254718e4cd5d6bffcd64d55cc3240dc00e79f3d7344a5dc4abf6c27bca6","examples/ctap1.rs":"a2d1a830ae2b3e16088ebf51db271ccee3671b70d94ec4c29890bd76c04eaac0","examples/ctap2.rs":"b91219ee12149945fff57cdd32f5494df85734d0010493edc36516d71636c8d6","examples/ctap2_discoverable_creds.rs":"8b53c46d057b24f477369adb8bf57eaaf0e400aace871e48d56272fdca5c7b14","examples/main.rs":"896d2ffe0889c36852b7ec4d6ad97b61fedc2231432e39fa6c6d87b0147434dc","examples/reset.rs":"be4c29737f356a2a9644d1b5fff0717b6d64a4b6d20d976085b4b165ec2a2377","examples/set_pin.rs":"94e93f170dc232d8fca896b2aa4969afd108428e206db84db7e17f0697fcf837","examples/test_exclude_list.rs":"08a49c900de3fb51de5566e6c4a41b34c77854ad20b6a0e1baf54e625ba8e31b","rustfmt.toml":"ceb6615363d6fff16426eb56f5727f98a7f7ed459ba9af735b1d8b672e2c3b9b","src/authenticatorservice.rs":"35cfca6e3e8258bd012b5e18c79db84ebdfbc3d7a49616ec05eb1d381f7b9c2b","src/capi.rs":"10f574423e52df873558dad25be350d5f23a99d4949b7eadcf91737cd33e3c69","src/consts.rs":"d7b274ec55e56a8d2c150df28e23d72a7379e5bd7257d53d63c2a7b59ab90800","src/crypto/dummy.rs":"9cc6be0dc1e28c7328121e7a4bf435211ae8b1455784472b24993571c4009579","src/crypto/mod.rs":"9a5d66c3fbfb38c7bf05800762df121c14c9115f4b39c8a540d732273f6a7a96","src/crypto/nss.rs":"097f4607ba0c579e63afb424d608a916c1b9d17945d299e2cd931aff39a9a369","src/crypto/openssl.rs":"ef6e4dbcc7230137e505e3fc4ad37e102e6b26b37470afd0f4709a297b3aa546","src/ctap2-capi.h":"bed059ee94251d9f81ed20419f48ae74eae45bec476d28a9aa5bb26aad2d0e8b","src/ctap2/attestation.rs":"5e23b9895ae763ebdcdfd1f2417d5b1773609c7c60cfc27ce9eb34e55281918a","src/ctap2/client_data.rs":"26465221bdafc615beabdae62709aa6c193504aac3581d4c8f1d7914abe04465","src/ctap2/commands/client_pin.rs":"e4d257e4d4ebf59e7f10719537b34558dd569c07e3e6406730d8f3f55145bc7e","src/ctap2/commands/get_assertion.rs":"dd743f795ddd38fa1ed6efb38def7047c0686930889d591c63bb07ae381f9fda","src/ctap2/commands/get_info.rs":"e80b649994c33c19873cafcdf2daef3914c1a7ed74871e8ac569d44b15d1fcf3","src/ctap2/commands/get_next_assertion.rs":"1120b0301197ada11751c4c42fc0a4147368ec5427f62da3868347567d28ba3a","src/ctap2/commands/get_version.rs":"e7e2f83ead1c9d6d8611513120e1ac354109cff8e14dce5c3073a5c1fa677d71","src/ctap2/commands/make_credentials.rs":"2917bc6d032664f979a3a5ef3a6f19f65037c90ee5f972abd39c9abfba98dfdc","src/ctap2/commands/mod.rs":"a4e33876d58a61d6a5e33d81e77f6f0d97bbd89f86ae4cccc69178d8d0479c3f","src/ctap2/commands/reset.rs":"95dac8a400f66fb4725a3850a06d6b605ffc99bec4a90ca302a6e8f21deb48d8","src/ctap2/commands/selection.rs":"a2a4b2e30df1923c296f7ac3a8d38cfcac7c231669cfc39babcb7b02fac7cdee","src/ctap2/mod.rs":"672c581502ac6d1417d0fe42a92ef86b1f1d64799f48061b3d9ac026e35fb69d","src/ctap2/server.rs":"3be3678a0bed87bb78738757733a50ea36a93a65a7ce8d302189c30b50af6965","src/ctap2/utils.rs":"ad0aa36a0dbeb510b7f37789329f1957eab206eb529dc083e6176b142984e26e","src/ctap2_capi.rs":"aa116118fc2aa0020f196540b57bce2daf5741ebe9cbf773de0d2916d5c44828","src/errors.rs":"dd5c61fd7a77b6be3875120ae7708bbcf3f4daaf924ae17b67d256a49f326d29","src/lib.rs":"511c78d7c8f89fb56888f16c1517ee2124e58b1392dff7e88652ef4ea0ddab02","src/manager.rs":"2f02ab57fabc5bf47edae1afd357b4600f3f4ec1f556914014d6e562cbfdda0d","src/statecallback.rs":"6b16f97176db1ae3fc3851fe8394e4ffc324bc6fe59313845ac3a88132fd52f1","src/statemachine.rs":"8b189d0525e9401c1936ccb0533722302d223da62a41bc1de456cb7c22843f8f","src/status_update.rs":"dfa74e57838d25cb6eb594314ce3affaf633a377b462342f0dcb9c528413db1f","src/transport/device_selector.rs":"a3e07b555a2d7ed8ccc7fbc061448e13860bbe069232196bb9825a992378635a","src/transport/errors.rs":"5af7cb8d22ffa63bf4264d182a0f54b9b3a2cc9d19d832b3495857229f9a2875","src/transport/f
|
|
|
|
\ No newline at end of file
|
|
|
|
+{"files":{"Cargo.lock":"f6a8f0e824a9dd07278b7c38ba5992fbcd61476b6dfa9ab8f234b2eb1a6bb537","Cargo.toml":"bcdb92fcb05fe306a2c22500d924f71ba27090551405b62334af0cef5547b895","Cross.toml":"8d132da818d48492aa9f4b78a348f0df3adfae45d988d42ebd6be8a5adadb6c3","LICENSE":"e866c8f5864d4cacfe403820e722e9dc03fe3c7565efa5e4dad9051d827bb92a","README.md":"c87d9c7cc44f1dd4ef861a3a9f8cd2eb68aedd3814768871f5fb63c2070806cd","build.rs":"01092254718e4cd5d6bffcd64d55cc3240dc00e79f3d7344a5dc4abf6c27bca6","examples/ctap1.rs":"a2d1a830ae2b3e16088ebf51db271ccee3671b70d94ec4c29890bd76c04eaac0","examples/ctap2.rs":"b91219ee12149945fff57cdd32f5494df85734d0010493edc36516d71636c8d6","examples/ctap2_discoverable_creds.rs":"8b53c46d057b24f477369adb8bf57eaaf0e400aace871e48d56272fdca5c7b14","examples/main.rs":"896d2ffe0889c36852b7ec4d6ad97b61fedc2231432e39fa6c6d87b0147434dc","examples/reset.rs":"be4c29737f356a2a9644d1b5fff0717b6d64a4b6d20d976085b4b165ec2a2377","examples/set_pin.rs":"94e93f170dc232d8fca896b2aa4969afd108428e206db84db7e17f0697fcf837","examples/test_exclude_list.rs":"08a49c900de3fb51de5566e6c4a41b34c77854ad20b6a0e1baf54e625ba8e31b","rustfmt.toml":"ceb6615363d6fff16426eb56f5727f98a7f7ed459ba9af735b1d8b672e2c3b9b","src/authenticatorservice.rs":"35cfca6e3e8258bd012b5e18c79db84ebdfbc3d7a49616ec05eb1d381f7b9c2b","src/capi.rs":"10f574423e52df873558dad25be350d5f23a99d4949b7eadcf91737cd33e3c69","src/consts.rs":"d7b274ec55e56a8d2c150df28e23d72a7379e5bd7257d53d63c2a7b59ab90800","src/crypto/dummy.rs":"9cc6be0dc1e28c7328121e7a4bf435211ae8b1455784472b24993571c4009579","src/crypto/mod.rs":"9a5d66c3fbfb38c7bf05800762df121c14c9115f4b39c8a540d732273f6a7a96","src/crypto/nss.rs":"097f4607ba0c579e63afb424d608a916c1b9d17945d299e2cd931aff39a9a369","src/crypto/openssl.rs":"ef6e4dbcc7230137e505e3fc4ad37e102e6b26b37470afd0f4709a297b3aa546","src/ctap2-capi.h":"bed059ee94251d9f81ed20419f48ae74eae45bec476d28a9aa5bb26aad2d0e8b","src/ctap2/attestation.rs":"5e23b9895ae763ebdcdfd1f2417d5b1773609c7c60cfc27ce9eb34e55281918a","src/ctap2/client_data.rs":"26465221bdafc615beabdae62709aa6c193504aac3581d4c8f1d7914abe04465","src/ctap2/commands/client_pin.rs":"e4d257e4d4ebf59e7f10719537b34558dd569c07e3e6406730d8f3f55145bc7e","src/ctap2/commands/get_assertion.rs":"dd743f795ddd38fa1ed6efb38def7047c0686930889d591c63bb07ae381f9fda","src/ctap2/commands/get_info.rs":"e80b649994c33c19873cafcdf2daef3914c1a7ed74871e8ac569d44b15d1fcf3","src/ctap2/commands/get_next_assertion.rs":"1120b0301197ada11751c4c42fc0a4147368ec5427f62da3868347567d28ba3a","src/ctap2/commands/get_version.rs":"e7e2f83ead1c9d6d8611513120e1ac354109cff8e14dce5c3073a5c1fa677d71","src/ctap2/commands/make_credentials.rs":"2917bc6d032664f979a3a5ef3a6f19f65037c90ee5f972abd39c9abfba98dfdc","src/ctap2/commands/mod.rs":"a4e33876d58a61d6a5e33d81e77f6f0d97bbd89f86ae4cccc69178d8d0479c3f","src/ctap2/commands/reset.rs":"95dac8a400f66fb4725a3850a06d6b605ffc99bec4a90ca302a6e8f21deb48d8","src/ctap2/commands/selection.rs":"a2a4b2e30df1923c296f7ac3a8d38cfcac7c231669cfc39babcb7b02fac7cdee","src/ctap2/mod.rs":"672c581502ac6d1417d0fe42a92ef86b1f1d64799f48061b3d9ac026e35fb69d","src/ctap2/server.rs":"3be3678a0bed87bb78738757733a50ea36a93a65a7ce8d302189c30b50af6965","src/ctap2/utils.rs":"ad0aa36a0dbeb510b7f37789329f1957eab206eb529dc083e6176b142984e26e","src/ctap2_capi.rs":"aa116118fc2aa0020f196540b57bce2daf5741ebe9cbf773de0d2916d5c44828","src/errors.rs":"dd5c61fd7a77b6be3875120ae7708bbcf3f4daaf924ae17b67d256a49f326d29","src/lib.rs":"511c78d7c8f89fb56888f16c1517ee2124e58b1392dff7e88652ef4ea0ddab02","src/manager.rs":"2f02ab57fabc5bf47edae1afd357b4600f3f4ec1f556914014d6e562cbfdda0d","src/statecallback.rs":"6b16f97176db1ae3fc3851fe8394e4ffc324bc6fe59313845ac3a88132fd52f1","src/statemachine.rs":"8b189d0525e9401c1936ccb0533722302d223da62a41bc1de456cb7c22843f8f","src/status_update.rs":"dfa74e57838d25cb6eb594314ce3affaf633a377b462342f0dcb9c528413db1f","src/transport/device_selector.rs":"a3e07b555a2d7ed8ccc7fbc061448e13860bbe069232196bb9825a992378635a","src/transport/errors.rs":"5af7cb8d22ffa63bf4264d182a0f54b9b3a2cc9d19d832b3495857229f9a2875","src/transport/f
|
|
|
|
\ No newline at end of file
|
2023-05-11 16:10:38 -05:00
|
|
|
--- a/third_party/rust/authenticator/src/transport/windows/winapi.rs
|
|
|
|
+++ b/third_party/rust/authenticator/src/transport/windows/winapi.rs
|
2023-05-12 07:09:33 -05:00
|
|
|
@@ -216,7 +216,7 @@ impl DeviceInterfaceDetailData {
|
2023-05-11 16:10:38 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
fn path(&self) -> String {
|
|
|
|
- unsafe { from_wide_ptr((*self.data).DevicePath.as_ptr(), self.path_len - 2) }
|
|
|
|
+ unsafe { from_wide_ptr(ptr::addr_of!((*self.data).DevicePath[0]), self.path_len - 2) }
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|