diff options
Diffstat (limited to 'comphelper')
-rw-r--r-- | comphelper/source/misc/storagehelper.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/comphelper/source/misc/storagehelper.cxx b/comphelper/source/misc/storagehelper.cxx index aeebf53e4015..689c1c98d870 100644 --- a/comphelper/source/misc/storagehelper.cxx +++ b/comphelper/source/misc/storagehelper.cxx @@ -500,11 +500,12 @@ uno::Sequence< beans::NamedValue > OStorageHelper::CreateGpgPackageEncryptionDat if (cert.is()) aKeyID = cert->getSHA1Thumbprint(); - std::vector<GpgME::Key> keys; - keys.push_back( + std::vector<GpgME::Key> keys + { ctx->key( reinterpret_cast<const char*>(aKeyID.getConstArray()), - err, false)); + err, false) + }; // ctx is setup now, let's encrypt the lot! GpgME::Data plain( |