diff options
author | saturneric <[email protected]> | 2025-04-17 15:28:04 +0000 |
---|---|---|
committer | saturneric <[email protected]> | 2025-04-17 15:28:04 +0000 |
commit | e276f9e86b161362d6f379ab790476936a0e6208 (patch) | |
tree | 65c27e3efcbf113a052bc053e1c2739f4a351217 /src/core/function/gpg/GpgKeyImportExporter.cpp | |
parent | fix: compiler issues on CI (diff) | |
download | GpgFrontend-e276f9e86b161362d6f379ab790476936a0e6208.tar.gz GpgFrontend-e276f9e86b161362d6f379ab790476936a0e6208.zip |
feat: generate cark keys
Diffstat (limited to 'src/core/function/gpg/GpgKeyImportExporter.cpp')
-rw-r--r-- | src/core/function/gpg/GpgKeyImportExporter.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/function/gpg/GpgKeyImportExporter.cpp b/src/core/function/gpg/GpgKeyImportExporter.cpp index f42c84ce..eda36273 100644 --- a/src/core/function/gpg/GpgKeyImportExporter.cpp +++ b/src/core/function/gpg/GpgKeyImportExporter.cpp @@ -45,7 +45,7 @@ GpgKeyImportExporter::GpgKeyImportExporter(int channel) * @return Import information */ auto GpgKeyImportExporter::ImportKey(const GFBuffer& in_buffer) - -> std::shared_ptr<GpgImportInformation> { + -> QSharedPointer<GpgImportInformation> { if (in_buffer.Empty()) return {}; GpgData data_in(in_buffer); @@ -55,7 +55,8 @@ auto GpgKeyImportExporter::ImportKey(const GFBuffer& in_buffer) gpgme_import_result_t result; result = gpgme_op_import_result(ctx_.BinaryContext()); gpgme_import_status_t status = result->imports; - auto import_info = SecureCreateSharedObject<GpgImportInformation>(result); + + auto import_info = QSharedPointer<GpgImportInformation>::create(result); while (status != nullptr) { GpgImportInformation::GpgImportedKey key; key.import_status = static_cast<int>(status->status); |