OpenBSD support (#3381)

* Implement OpenBSD support.
This commit is contained in:
Andris Raugulis 2025-02-04 00:39:50 +02:00 committed by GitHub
parent d3457ff3c1
commit d4c5a6f4a9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 13 additions and 0 deletions

View file

@ -45,6 +45,7 @@
- Chris Olstrom (colstrom) - Chris Olstrom (colstrom)
- Christopher-Robin (cebbinghaus) - Christopher-Robin (cebbinghaus)
- Fabian Kammel (datosh) - Fabian Kammel (datosh)
- Andris Raugulis (arthepsy)
## Acknowledgements ## Acknowledgements

View file

@ -3,6 +3,9 @@ use std::fs::Metadata;
#[cfg(target_os = "freebsd")] #[cfg(target_os = "freebsd")]
use std::os::freebsd::fs::MetadataExt; use std::os::freebsd::fs::MetadataExt;
#[cfg(target_os = "openbsd")]
use std::os::openbsd::fs::MetadataExt;
#[cfg(target_os = "linux")] #[cfg(target_os = "linux")]
use std::os::linux::fs::MetadataExt; use std::os::linux::fs::MetadataExt;

View file

@ -93,6 +93,10 @@ features = ["mozilla"]
workspace = true workspace = true
features = ["mozilla"] features = ["mozilla"]
[target."cfg(target_os = \"openbsd\")".dependencies.webauthn-authenticator-rs]
workspace = true
features = ["mozilla"]
## Debian packaging ## Debian packaging
[package.metadata.deb] [package.metadata.deb]
name = "kanidm" name = "kanidm"

View file

@ -13,6 +13,11 @@ mod mozilla;
#[cfg(target_os = "freebsd")] #[cfg(target_os = "freebsd")]
use mozilla::get_authenticator_backend; use mozilla::get_authenticator_backend;
#[cfg(target_os = "openbsd")]
mod mozilla;
#[cfg(target_os = "openbsd")]
use mozilla::get_authenticator_backend;
#[cfg(target_os = "windows")] #[cfg(target_os = "windows")]
mod win10; mod win10;
#[cfg(target_os = "windows")] #[cfg(target_os = "windows")]