Bug 1400066 - Gracefully handle unsupported platforms for U2F HID support r?ttaubert draft
authorJ.C. Jones <jjones@mozilla.com>
Thu, 14 Sep 2017 18:11:47 -0700
changeset 665192 9db74b12ea3b19883befebbc53ae8f9714f2f516
parent 665191 aca18d5ec8efca82f3e94db8f31cff578e69fa10
child 731679 c7bea9276575df63ba96afa3da938f291e21114b
push id79957
push userbmo:jjones@mozilla.com
push dateFri, 15 Sep 2017 01:12:41 +0000
reviewersttaubert
bugs1400066
milestone57.0a1
Bug 1400066 - Gracefully handle unsupported platforms for U2F HID support r?ttaubert FreeBSD isn't currently support for FIDO U2F support, similar to Android, so this patch [1] from Jan Beich <jbeich@FreeBSD.org> treats Android and FreeBSD the same. With luck, someone will add in the platform support for both, soon! [1] https://github.com/jcjones/u2f-hid-rs/pull/44 MozReview-Commit-ID: DU7Rco2NLb3
dom/webauthn/u2f-hid-rs/src/android/mod.rs
dom/webauthn/u2f-hid-rs/src/lib.rs
dom/webauthn/u2f-hid-rs/src/stub/mod.rs
--- a/dom/webauthn/u2f-hid-rs/src/lib.rs
+++ b/dom/webauthn/u2f-hid-rs/src/lib.rs
@@ -18,18 +18,18 @@ extern crate core_foundation_sys;
 #[cfg(any(target_os = "macos"))]
 #[path = "macos/mod.rs"]
 pub mod platform;
 
 #[cfg(any(target_os = "windows"))]
 #[path = "windows/mod.rs"]
 pub mod platform;
 
-#[cfg(any(target_os = "android"))]
-#[path = "android/mod.rs"]
+#[cfg(not(any(target_os = "linux", target_os = "macos", target_os = "windows")))]
+#[path = "stub/mod.rs"]
 pub mod platform;
 
 #[macro_use]
 extern crate log;
 extern crate rand;
 extern crate libc;
 extern crate boxfnonce;
 
rename from dom/webauthn/u2f-hid-rs/src/android/mod.rs
rename to dom/webauthn/u2f-hid-rs/src/stub/mod.rs