We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 42bf3a1 commit 9075491Copy full SHA for 9075491
crates/extensions/tedge-p11-server/src/pkcs11.rs
@@ -29,13 +29,23 @@ use std::sync::Mutex;
29
use tracing::debug;
30
use tracing::warn;
31
32
-#[derive(Debug, Clone)]
+#[derive(Clone)]
33
pub struct CryptokiConfigDirect {
34
pub module_path: Utf8PathBuf,
35
pub pin: AuthPin,
36
pub serial: Option<Arc<str>>,
37
}
38
39
+impl Debug for CryptokiConfigDirect {
40
+ fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
41
+ f.debug_struct("CryptokiConfigDirect")
42
+ .field("module_path", &self.module_path)
43
+ .field("pin", &"[REDACTED]")
44
+ .field("serial", &self.serial)
45
+ .finish()
46
+ }
47
+}
48
+
49
#[derive(Debug)]
50
pub enum Pkcs11SigningKey {
51
Rsa(RSASigningKey),
0 commit comments