зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1418242 - [u2f-hid-rs] Let stubs fail, instead of running until cancellation r=jcj
1b1d79e653
This commit is contained in:
Родитель
3a57a1a466
Коммит
e3b5379696
|
@ -7,7 +7,7 @@
|
||||||
|
|
||||||
#![allow(dead_code)]
|
#![allow(dead_code)]
|
||||||
|
|
||||||
use util::OnceCallback;
|
use util::{io_err, OnceCallback};
|
||||||
|
|
||||||
pub struct PlatformManager {}
|
pub struct PlatformManager {}
|
||||||
|
|
||||||
|
@ -24,7 +24,8 @@ impl PlatformManager {
|
||||||
key_handles: Vec<Vec<u8>>,
|
key_handles: Vec<Vec<u8>>,
|
||||||
callback: OnceCallback<Vec<u8>>,
|
callback: OnceCallback<Vec<u8>>,
|
||||||
) {
|
) {
|
||||||
// No-op on Android
|
// Not implemented.
|
||||||
|
callback.call(Err(io_err("not implemented")));
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn sign(
|
pub fn sign(
|
||||||
|
@ -35,11 +36,11 @@ impl PlatformManager {
|
||||||
key_handles: Vec<Vec<u8>>,
|
key_handles: Vec<Vec<u8>>,
|
||||||
callback: OnceCallback<(Vec<u8>, Vec<u8>)>,
|
callback: OnceCallback<(Vec<u8>, Vec<u8>)>,
|
||||||
) {
|
) {
|
||||||
// No-op on Android
|
// Not implemented.
|
||||||
|
callback.call(Err(io_err("not implemented")));
|
||||||
}
|
}
|
||||||
|
|
||||||
// This blocks.
|
|
||||||
pub fn cancel(&mut self) {
|
pub fn cancel(&mut self) {
|
||||||
// No-op on Android
|
// No-op.
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Загрузка…
Ссылка в новой задаче