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