diff options
author | Gerald Combs <gerald@wireshark.org> | 2012-10-16 18:14:16 +0000 |
---|---|---|
committer | Gerald Combs <gerald@wireshark.org> | 2012-10-16 18:14:16 +0000 |
commit | 403e6dc86a55a12f1cf586093d4b6a8fa62f91ba (patch) | |
tree | e5155f0cc0e573dda3d6055122dcd16b39440083 /ui/ssl_key_export.h | |
parent | 5bcb56b21c1c102001a2b50651ed3e6c9815dc64 (diff) | |
download | wireshark-403e6dc86a55a12f1cf586093d4b6a8fa62f91ba.tar.gz |
Move common SSL key export routines to ui/ssl_key_export.[ch]. Make the
exported keys a gchar *. Implement SSL key exports in the Qt UI. Remove
some no-longer-necessary packet-ssl*.h includes.
Change lastOpenDir().absolutePath() to .canonicalPath(). Get rid of the
"Export As PostScript" action.
svn path=/trunk/; revision=45589
Diffstat (limited to 'ui/ssl_key_export.h')
-rw-r--r-- | ui/ssl_key_export.h | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/ui/ssl_key_export.h b/ui/ssl_key_export.h new file mode 100644 index 0000000000..a782dd9ace --- /dev/null +++ b/ui/ssl_key_export.h @@ -0,0 +1,51 @@ +/* export_sslkeys.h + * + * $Id$ + * + * SSL session key utilities. Copied from ui/gkt/export_sslkeys.c + * by Sake Blok <sake@euronet.nl> (20110526) + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef __SSL_KEY_EXPORT_H__ +#define __SSL_KEY_EXPORT_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/** Return the number of available SSL session keys. + * + * @return The number of available SSL session keys. + */ +extern int ssl_session_key_count(); + +/** Dump our SSL Session Keys to a string + * + * @return A string containing all the SSL Session Keys. Must be freed with + * g_free(). + */ +extern gchar* ssl_export_sessions(); + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __SSL_KEY_EXPORT_H__ */ |