aboutsummaryrefslogtreecommitdiffstats
path: root/include/gpg/GpgGenKeyInfo.h
diff options
context:
space:
mode:
authorSaturneric <[email protected]>2021-05-13 19:11:40 +0000
committerSaturneric <[email protected]>2021-05-13 19:11:40 +0000
commit738d1fefa058081cfc849b4900f837790adcba44 (patch)
treeeba5b6840cc7439d69ea3526f2a1e5e5b6e810f1 /include/gpg/GpgGenKeyInfo.h
parentFile Structure Modified. (diff)
downloadGpgFrontend-738d1fefa058081cfc849b4900f837790adcba44.tar.gz
GpgFrontend-738d1fefa058081cfc849b4900f837790adcba44.zip
Support more Key Generating Algo.
Support GPG2 now. Change GPGME Key Generation API to newer one. Statically link GPGME into the program.
Diffstat (limited to 'include/gpg/GpgGenKeyInfo.h')
-rw-r--r--include/gpg/GpgGenKeyInfo.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/include/gpg/GpgGenKeyInfo.h b/include/gpg/GpgGenKeyInfo.h
new file mode 100644
index 00000000..397123d9
--- /dev/null
+++ b/include/gpg/GpgGenKeyInfo.h
@@ -0,0 +1,23 @@
+//
+// Created by eric on 2021/5/13.
+//
+
+#ifndef GPG4USB_GPGGENKEYINFO_H
+#define GPG4USB_GPGGENKEYINFO_H
+
+#include <QString>
+#include <QTime>
+
+struct GenKeyInfo {
+ bool isSubKey = false;
+ QString userid;
+ QString algo;
+ int keySize;
+ QDateTime expired;
+ bool nonExpired = false;
+ bool allowSigning = true;
+ bool allowEncryption = true;
+ QString passPhrase;
+};
+
+#endif //GPG4USB_GPGGENKEYINFO_H