aboutsummaryrefslogtreecommitdiffstats
path: root/src/gpg/UID.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/gpg/UID.cpp')
-rw-r--r--src/gpg/UID.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gpg/UID.cpp b/src/gpg/UID.cpp
new file mode 100644
index 00000000..a1147eec
--- /dev/null
+++ b/src/gpg/UID.cpp
@@ -0,0 +1,16 @@
+//
+// Created by eric on 2021/5/22.
+//
+
+#include "gpg/UID.h"
+
+UID::UID(gpgme_user_id_t user_id) :
+ uid(user_id->uid), name(user_id->name), email(user_id->email), comment(user_id->comment) {
+
+ auto sig = user_id->signatures;
+
+ while (sig != nullptr) {
+ signatures.push_back(Signature(sig));
+ }
+
+} \ No newline at end of file