update epan/dissectors/pidl/drsuapi/drsuapi.idl from samba
[wireshark-sm.git] / ui / ssl_key_export.h
blob945e4c5aef9c20b32b956136dc10cc00152bfebf
1 /** @file
3 * SSL session key utilities. Copied from ui/gkt/export_sslkeys.c
4 * by Sake Blok <sake@euronet.nl> (20110526)
6 * Wireshark - Network traffic analyzer
7 * By Gerald Combs <gerald@wireshark.org>
8 * Copyright 1998 Gerald Combs
10 * SPDX-License-Identifier: GPL-2.0-or-later
13 #ifndef __SSL_KEY_EXPORT_H__
14 #define __SSL_KEY_EXPORT_H__
16 #include "cfile.h"
18 #ifdef __cplusplus
19 extern "C" {
20 #endif /* __cplusplus */
22 /** Return the number of available SSL session keys.
24 * @return The number of available SSL session keys.
26 extern int ssl_session_key_count(void);
28 /** Dump our SSL Session Keys to a string
30 * @param[out] length Length of returned string.
32 * @return A string containing all the SSL Session Keys. Must be freed with
33 * g_free().
35 extern char* ssl_export_sessions(size_t *length);
37 /** Add a DSB with the used TLS secrets to a capture file.
39 * @param cf The capture file
41 extern void tls_export_dsb(capture_file *cf);
43 #ifdef __cplusplus
45 #endif /* __cplusplus */
47 #endif /* __SSL_KEY_EXPORT_H__ */