aboutsummaryrefslogtreecommitdiffstats
path: root/src/ui/dialog/key_generate/SubkeyGenerateDialog.h
diff options
context:
space:
mode:
authorsaturneric <[email protected]>2023-12-03 12:28:46 +0000
committersaturneric <[email protected]>2023-12-03 12:28:46 +0000
commit883db05d54510e76b6548e107593187e1306117d (patch)
treea4de9d60d3bfeb69ba443129d208feef65250b2c /src/ui/dialog/key_generate/SubkeyGenerateDialog.h
parentfeat: improve memory security of function framework (diff)
downloadGpgFrontend-883db05d54510e76b6548e107593187e1306117d.tar.gz
GpgFrontend-883db05d54510e76b6548e107593187e1306117d.zip
feat: general improvements of aync execution and memory security
Diffstat (limited to 'src/ui/dialog/key_generate/SubkeyGenerateDialog.h')
-rw-r--r--src/ui/dialog/key_generate/SubkeyGenerateDialog.h16
1 files changed, 5 insertions, 11 deletions
diff --git a/src/ui/dialog/key_generate/SubkeyGenerateDialog.h b/src/ui/dialog/key_generate/SubkeyGenerateDialog.h
index 9a121286..be39669c 100644
--- a/src/ui/dialog/key_generate/SubkeyGenerateDialog.h
+++ b/src/ui/dialog/key_generate/SubkeyGenerateDialog.h
@@ -28,10 +28,13 @@
#pragma once
+#include <memory>
+
#include "core/function/gpg/GpgContext.h"
#include "core/model/GpgGenKeyInfo.h"
#include "core/model/GpgKey.h"
#include "core/typedef/GpgTypedef.h"
+#include "core/utils/MemoryUtils.h"
#include "ui/GpgFrontendUI.h"
#include "ui/dialog/GeneralDialog.h"
@@ -52,18 +55,11 @@ class SubkeyGenerateDialog : public GeneralDialog {
*/
explicit SubkeyGenerateDialog(const KeyId& key_id, QWidget* parent);
- signals:
- /**
- * @brief
- *
- */
- void SignalSubKeyGenerated();
-
private:
GpgKey key_; ///<
- std::unique_ptr<GenKeyInfo> gen_key_info_ =
- std::make_unique<GenKeyInfo>(true); ///<
+ std::shared_ptr<GenKeyInfo> gen_key_info_ =
+ SecureCreateSharedObject<GenKeyInfo>(true); ///<
QGroupBox* key_usage_group_box_{};
QDialogButtonBox* button_box_; ///< Box for standard buttons
@@ -73,11 +69,9 @@ class SubkeyGenerateDialog : public GeneralDialog {
QDateTimeEdit* date_edit_{}; ///< Date edit for expiration date
QCheckBox* expire_check_box_{}; ///< Checkbox, if key should expire
QCheckBox* no_pass_phrase_check_box_{}; ///< Checkbox, if key should expire
- QLineEdit* passphrase_edit_{};
std::vector<QCheckBox*> key_usage_check_boxes_; ///< ENCR, SIGN, CERT, AUTH
QDateTime max_date_time_; ///<
- bool use_pinentry_ = false;
/**
* @brief Create a key usage group box object