summaryrefslogtreecommitdiffstats
path: root/ui/qt/rsa_keys_frame.h
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-10 20:34:10 +0000
commite4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch)
tree68cb5ef9081156392f1dd62a00c6ccc1451b93df /ui/qt/rsa_keys_frame.h
parentInitial commit. (diff)
downloadwireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz
wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ui/qt/rsa_keys_frame.h')
-rw-r--r--ui/qt/rsa_keys_frame.h57
1 files changed, 57 insertions, 0 deletions
diff --git a/ui/qt/rsa_keys_frame.h b/ui/qt/rsa_keys_frame.h
new file mode 100644
index 00000000..fae40e2f
--- /dev/null
+++ b/ui/qt/rsa_keys_frame.h
@@ -0,0 +1,57 @@
+/** @file
+ *
+ * Copyright 2019 Peter Wu <peter@lekensteyn.nl>
+ *
+ * Wireshark - Network traffic analyzer
+ * By Gerald Combs <gerald@wireshark.org>
+ * Copyright 1998 Gerald Combs
+ *
+ * SPDX-License-Identifier: GPL-2.0-or-later
+ */
+
+#ifndef RSA_KEYS_FRAME_H
+#define RSA_KEYS_FRAME_H
+
+#include <config.h>
+
+#include <QFrame>
+
+#include <ui/qt/models/uat_model.h>
+
+namespace Ui {
+class RsaKeysFrame;
+}
+
+class RsaKeysFrame : public QFrame
+{
+ Q_OBJECT
+
+public:
+ explicit RsaKeysFrame(QWidget *parent = NULL);
+#ifdef HAVE_LIBGNUTLS
+ ~RsaKeysFrame();
+
+ void acceptChanges();
+ void rejectChanges();
+
+private:
+ Ui::RsaKeysFrame *ui;
+
+ UatModel *rsa_keys_model_;
+ UatModel *pkcs11_libs_model_;
+
+ gboolean verifyKey(const char *uri, const char *password, gboolean *need_password, QString &error);
+ void addKey(const QString &uri, const QString &password);
+
+private slots:
+ void keyCurrentChanged(const QModelIndex &current, const QModelIndex &previous);
+ void on_addFileButton_clicked();
+ void on_addItemButton_clicked();
+ void on_deleteItemButton_clicked();
+ void libCurrentChanged(const QModelIndex &current, const QModelIndex &previous);
+ void on_addLibraryButton_clicked();
+ void on_deleteLibraryButton_clicked();
+#endif /* HAVE_LIBGNUTLS */
+};
+
+#endif /* RSA_KEYS_FRAME_H */