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)
- Christopher-Robin (cebbinghaus)
- Fabian Kammel (datosh)
- Andris Raugulis (arthepsy)
## Acknowledgements

View file

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

View file

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

View file

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