summaryrefslogtreecommitdiffstats
path: root/ipc/src/gnupg.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ipc/src/gnupg.rs')
-rw-r--r--ipc/src/gnupg.rs18
1 files changed, 18 insertions, 0 deletions
diff --git a/ipc/src/gnupg.rs b/ipc/src/gnupg.rs
index 629e19e1..3a84c93b 100644
--- a/ipc/src/gnupg.rs
+++ b/ipc/src/gnupg.rs
@@ -503,6 +503,24 @@ impl Agent {
r.reverse();
r
}
+
+ /// Start tracing the data that is sent to the server.
+ ///
+ /// Note: if a tracing function is already registered, this
+ /// replaces it.
+ pub fn trace_data_sent(&mut self, fun: Box<dyn Fn(&[u8]) + Send + Sync>)
+ {
+ self.c.trace_data_sent(fun);
+ }
+
+ /// Start tracing the data that is received from the server.
+ ///
+ /// Note: if a tracing function is already registered, this
+ /// replaces it.
+ pub fn trace_data_received(&mut self, fun: Box<dyn Fn(&[u8]) + Send + Sync>)
+ {
+ self.c.trace_data_received(fun);
+ }
}
/// A cryptographic key pair.