You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/// * [NCryptUnprotectSecret function (ncryptprotect.h)](https://learn.microsoft.com/en-us/windows/win32/api/ncryptprotect/nf-ncryptprotect-ncryptunprotectsecret).
309
+
#[instrument(err)]
309
310
pubfnn_crypt_unprotect_secret(
310
311
blob:&[u8],
311
312
server:&str,
312
313
username:&str,
313
314
password:Secret<String>,
314
315
client_computer_name:Option<String>,
315
-
) -> Result<Vec<u8>>{
316
+
) -> Result<Secret<Vec<u8>>>{
316
317
let dpapi_blob = DpapiBlob::decode(blob)?;
317
318
let target_sd = dpapi_blob.protection_descriptor.get_target_sd()?;
/// * [NCryptProtectSecret function (`ncryptprotect.h`)](https://learn.microsoft.com/en-us/windows/win32/api/ncryptprotect/nf-ncryptprotect-ncryptprotectsecret).
0 commit comments