mirror of
https://github.com/bitwarden/browser.git
synced 2025-01-07 19:07:45 +01:00
39 lines
970 B
Rust
39 lines
970 B
Rust
use anyhow::{bail, Result};
|
|
|
|
use crate::biometrics::{KeyMaterial, OsDerivedKey};
|
|
|
|
/// The MacOS implementation of the biometric trait.
|
|
pub struct Biometric {}
|
|
|
|
impl super::BiometricTrait for Biometric {
|
|
fn prompt(_hwnd: Vec<u8>, _message: String) -> Result<bool> {
|
|
bail!("platform not supported");
|
|
}
|
|
|
|
fn available() -> Result<bool> {
|
|
bail!("platform not supported");
|
|
}
|
|
|
|
fn derive_key_material(_iv_str: Option<&str>) -> Result<OsDerivedKey> {
|
|
bail!("platform not supported");
|
|
}
|
|
|
|
fn get_biometric_secret(
|
|
_service: &str,
|
|
_account: &str,
|
|
_key_material: Option<KeyMaterial>,
|
|
) -> Result<String> {
|
|
bail!("platform not supported");
|
|
}
|
|
|
|
fn set_biometric_secret(
|
|
_service: &str,
|
|
_account: &str,
|
|
_secret: &str,
|
|
_key_material: Option<super::KeyMaterial>,
|
|
_iv_b64: &str,
|
|
) -> Result<String> {
|
|
bail!("platform not supported");
|
|
}
|
|
}
|