X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/546b7396244452dba8f9cb917e904028ab01dda5..9a6d835cfe7761f6a85f84233d9d93722efe6ecc:/h/netsec.h diff --git a/h/netsec.h b/h/netsec.h index 5372714c..27d29382 100644 --- a/h/netsec.h +++ b/h/netsec.h @@ -74,6 +74,20 @@ int netsec_get_snoop(netsec_context *ns_context); void netsec_set_snoop(netsec_context *ns_context, int snoop); +/* + * A callback designed to handle the snoop output; it can be used by + * a protocol to massage the data in a more user-friendly way. + * + * Arguments: + * + * ns_context - Network security context + * string - String to output + * len - Length of string + */ + +typedef void (*netsec_snoop_callback)(netsec_context *ns_context, + const char *string, size_t len); + /* * Set the read timeout for this connection. *