Skip to main content

wasi_crypto/
secrets_manager.rs

1use crate::error::*;
2use crate::handles::*;
3use crate::version::Version;
4use crate::CryptoCtx;
5
6#[derive(Clone, Debug)]
7pub struct SecretsManager {}
8
9impl CryptoCtx {
10    pub fn secrets_manager_open(&self, _options: Option<Handle>) -> Result<Handle, CryptoError> {
11        bail!(CryptoError::UnsupportedFeature)
12    }
13
14    pub fn secrets_manager_close(
15        &self,
16        _secrets_manager_handle: Handle,
17    ) -> Result<(), CryptoError> {
18        bail!(CryptoError::UnsupportedFeature)
19    }
20
21    pub fn secrets_manager_invalidate(
22        &self,
23        _secrets_manager_handle: Handle,
24        _key_id: &[u8],
25        _key_version: Version,
26    ) -> Result<(), CryptoError> {
27        bail!(CryptoError::UnsupportedFeature)
28    }
29}