diff options
Diffstat (limited to 'package')
-rw-r--r-- | package/inc/PackageConstants.hxx | 10 | ||||
-rw-r--r-- | package/source/manifest/ManifestDefines.hxx | 120 | ||||
-rw-r--r-- | package/source/manifest/ManifestExport.cxx | 34 | ||||
-rw-r--r-- | package/source/zippackage/ZipPackageStream.cxx | 6 |
4 files changed, 85 insertions, 85 deletions
diff --git a/package/inc/PackageConstants.hxx b/package/inc/PackageConstants.hxx index 2e9f1527b0f7..31c0928e3c30 100644 --- a/package/inc/PackageConstants.hxx +++ b/package/inc/PackageConstants.hxx @@ -49,14 +49,14 @@ const sal_Int32 n_ConstDigestDecrypt = 1056; // 1024 + 32 #define PKG_SIZE_ENCR_MNFST 12 // the properties related constants -inline constexpr OUStringLiteral ENCRYPTION_KEY_PROPERTY = u"EncryptionKey"; -inline constexpr OUStringLiteral STORAGE_ENCRYPTION_KEYS_PROPERTY = u"StorageEncryptionKeys"; -inline constexpr OUStringLiteral ENCRYPTION_ALGORITHMS_PROPERTY = u"EncryptionAlgorithms"; -inline constexpr OUStringLiteral ENCRYPTION_GPG_PROPERTIES = u"EncryptionGpGProperties"; +inline constexpr OUString ENCRYPTION_KEY_PROPERTY = u"EncryptionKey"_ustr; +inline constexpr OUString STORAGE_ENCRYPTION_KEYS_PROPERTY = u"StorageEncryptionKeys"_ustr; +inline constexpr OUString ENCRYPTION_ALGORITHMS_PROPERTY = u"EncryptionAlgorithms"_ustr; +inline constexpr OUString ENCRYPTION_GPG_PROPERTIES = u"EncryptionGpGProperties"_ustr; #define HAS_ENCRYPTED_ENTRIES_PROPERTY "HasEncryptedEntries" #define HAS_NONENCRYPTED_ENTRIES_PROPERTY "HasNonEncryptedEntries" #define IS_INCONSISTENT_PROPERTY "IsInconsistent" -inline constexpr OUStringLiteral MEDIATYPE_FALLBACK_USED_PROPERTY = u"MediaTypeFallbackUsed"; +inline constexpr OUString MEDIATYPE_FALLBACK_USED_PROPERTY = u"MediaTypeFallbackUsed"_ustr; #endif diff --git a/package/source/manifest/ManifestDefines.hxx b/package/source/manifest/ManifestDefines.hxx index f491e4cb4cf4..48c06a362261 100644 --- a/package/source/manifest/ManifestDefines.hxx +++ b/package/source/manifest/ManifestDefines.hxx @@ -20,75 +20,75 @@ #include <rtl/ustring.hxx> -inline constexpr OUStringLiteral MANIFEST_NSPREFIX = u"manifest:"; -inline constexpr OUStringLiteral ELEMENT_MANIFEST = u"manifest:manifest"; -inline constexpr OUStringLiteral ATTRIBUTE_XMLNS = u"xmlns:manifest"; -inline constexpr OUStringLiteral ATTRIBUTE_XMLNS_LOEXT = u"xmlns:loext"; -inline constexpr OUStringLiteral MANIFEST_NAMESPACE = u"http://openoffice.org/2001/manifest"; -inline constexpr OUStringLiteral MANIFEST_OASIS_NAMESPACE = u"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0"; -inline constexpr OUStringLiteral MANIFEST_LOEXT_NAMESPACE = u"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0"; -inline constexpr OUStringLiteral MANIFEST_DOCTYPE = u"<!DOCTYPE manifest:manifest PUBLIC \"-//OpenOffice.org//DTD Manifest 1.0//EN\" \"Manifest.dtd\">"; +inline constexpr OUString MANIFEST_NSPREFIX = u"manifest:"_ustr; +inline constexpr OUString ELEMENT_MANIFEST = u"manifest:manifest"_ustr; +inline constexpr OUString ATTRIBUTE_XMLNS = u"xmlns:manifest"_ustr; +inline constexpr OUString ATTRIBUTE_XMLNS_LOEXT = u"xmlns:loext"_ustr; +inline constexpr OUString MANIFEST_NAMESPACE = u"http://openoffice.org/2001/manifest"_ustr; +inline constexpr OUString MANIFEST_OASIS_NAMESPACE = u"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0"_ustr; +inline constexpr OUString MANIFEST_LOEXT_NAMESPACE = u"urn:org:documentfoundation:names:experimental:office:xmlns:loext:1.0"_ustr; +inline constexpr OUString MANIFEST_DOCTYPE = u"<!DOCTYPE manifest:manifest PUBLIC \"-//OpenOffice.org//DTD Manifest 1.0//EN\" \"Manifest.dtd\">"_ustr; -inline constexpr OUStringLiteral ELEMENT_FILE_ENTRY = u"manifest:file-entry"; -inline constexpr OUStringLiteral ATTRIBUTE_FULL_PATH = u"manifest:full-path"; -inline constexpr OUStringLiteral ATTRIBUTE_VERSION = u"manifest:version"; -inline constexpr OUStringLiteral ATTRIBUTE_MEDIA_TYPE = u"manifest:media-type"; -inline constexpr OUStringLiteral ATTRIBUTE_SIZE = u"manifest:size"; -inline constexpr OUStringLiteral ELEMENT_MANIFEST_KEYINFO = u"loext:keyinfo"; -inline constexpr OUStringLiteral ELEMENT_ENCRYPTED_KEYINFO = u"loext:KeyInfo"; -inline constexpr OUStringLiteral ELEMENT_ENCRYPTEDKEY = u"loext:encrypted-key"; -inline constexpr OUStringLiteral ELEMENT_ENCRYPTIONMETHOD = u"loext:encryption-method"; -inline constexpr OUStringLiteral ELEMENT_PGPDATA = u"loext:PGPData"; -inline constexpr OUStringLiteral ELEMENT_PGPKEYID = u"loext:PGPKeyID"; -inline constexpr OUStringLiteral ELEMENT_PGPKEYPACKET = u"loext:PGPKeyPacket"; -inline constexpr OUStringLiteral ATTRIBUTE_ALGORITHM = u"loext:PGPAlgorithm"; -inline constexpr OUStringLiteral ELEMENT_CIPHERDATA = u"loext:CipherData"; -inline constexpr OUStringLiteral ELEMENT_CIPHERVALUE = u"loext:CipherValue"; -inline constexpr OUStringLiteral ELEMENT_MANIFEST13_KEYINFO = u"manifest:keyinfo"; -inline constexpr OUStringLiteral ELEMENT_ENCRYPTEDKEY13 = u"manifest:encrypted-key"; -inline constexpr OUStringLiteral ELEMENT_ENCRYPTIONMETHOD13 = u"manifest:encryption-method"; -inline constexpr OUStringLiteral ELEMENT_PGPDATA13 = u"manifest:PGPData"; -inline constexpr OUStringLiteral ELEMENT_PGPKEYID13 = u"manifest:PGPKeyID"; -inline constexpr OUStringLiteral ELEMENT_PGPKEYPACKET13 = u"manifest:PGPKeyPacket"; -inline constexpr OUStringLiteral ATTRIBUTE_ALGORITHM13 = u"manifest:PGPAlgorithm"; -inline constexpr OUStringLiteral ELEMENT_CIPHERDATA13 = u"manifest:CipherData"; -inline constexpr OUStringLiteral ELEMENT_CIPHERVALUE13 = u"manifest:CipherValue"; +inline constexpr OUString ELEMENT_FILE_ENTRY = u"manifest:file-entry"_ustr; +inline constexpr OUString ATTRIBUTE_FULL_PATH = u"manifest:full-path"_ustr; +inline constexpr OUString ATTRIBUTE_VERSION = u"manifest:version"_ustr; +inline constexpr OUString ATTRIBUTE_MEDIA_TYPE = u"manifest:media-type"_ustr; +inline constexpr OUString ATTRIBUTE_SIZE = u"manifest:size"_ustr; +inline constexpr OUString ELEMENT_MANIFEST_KEYINFO = u"loext:keyinfo"_ustr; +inline constexpr OUString ELEMENT_ENCRYPTED_KEYINFO = u"loext:KeyInfo"_ustr; +inline constexpr OUString ELEMENT_ENCRYPTEDKEY = u"loext:encrypted-key"_ustr; +inline constexpr OUString ELEMENT_ENCRYPTIONMETHOD = u"loext:encryption-method"_ustr; +inline constexpr OUString ELEMENT_PGPDATA = u"loext:PGPData"_ustr; +inline constexpr OUString ELEMENT_PGPKEYID = u"loext:PGPKeyID"_ustr; +inline constexpr OUString ELEMENT_PGPKEYPACKET = u"loext:PGPKeyPacket"_ustr; +inline constexpr OUString ATTRIBUTE_ALGORITHM = u"loext:PGPAlgorithm"_ustr; +inline constexpr OUString ELEMENT_CIPHERDATA = u"loext:CipherData"_ustr; +inline constexpr OUString ELEMENT_CIPHERVALUE = u"loext:CipherValue"_ustr; +inline constexpr OUString ELEMENT_MANIFEST13_KEYINFO = u"manifest:keyinfo"_ustr; +inline constexpr OUString ELEMENT_ENCRYPTEDKEY13 = u"manifest:encrypted-key"_ustr; +inline constexpr OUString ELEMENT_ENCRYPTIONMETHOD13 = u"manifest:encryption-method"_ustr; +inline constexpr OUString ELEMENT_PGPDATA13 = u"manifest:PGPData"_ustr; +inline constexpr OUString ELEMENT_PGPKEYID13 = u"manifest:PGPKeyID"_ustr; +inline constexpr OUString ELEMENT_PGPKEYPACKET13 = u"manifest:PGPKeyPacket"_ustr; +inline constexpr OUString ATTRIBUTE_ALGORITHM13 = u"manifest:PGPAlgorithm"_ustr; +inline constexpr OUString ELEMENT_CIPHERDATA13 = u"manifest:CipherData"_ustr; +inline constexpr OUString ELEMENT_CIPHERVALUE13 = u"manifest:CipherValue"_ustr; -inline constexpr OUStringLiteral ELEMENT_ENCRYPTION_DATA = u"manifest:encryption-data"; -inline constexpr OUStringLiteral ATTRIBUTE_CHECKSUM_TYPE = u"manifest:checksum-type"; -inline constexpr OUStringLiteral ATTRIBUTE_CHECKSUM = u"manifest:checksum"; +inline constexpr OUString ELEMENT_ENCRYPTION_DATA = u"manifest:encryption-data"_ustr; +inline constexpr OUString ATTRIBUTE_CHECKSUM_TYPE = u"manifest:checksum-type"_ustr; +inline constexpr OUString ATTRIBUTE_CHECKSUM = u"manifest:checksum"_ustr; -inline constexpr OUStringLiteral ELEMENT_ALGORITHM = u"manifest:algorithm"; -inline constexpr OUStringLiteral ATTRIBUTE_ALGORITHM_NAME = u"manifest:algorithm-name"; -inline constexpr OUStringLiteral ATTRIBUTE_INITIALISATION_VECTOR = u"manifest:initialisation-vector"; +inline constexpr OUString ELEMENT_ALGORITHM = u"manifest:algorithm"_ustr; +inline constexpr OUString ATTRIBUTE_ALGORITHM_NAME = u"manifest:algorithm-name"_ustr; +inline constexpr OUString ATTRIBUTE_INITIALISATION_VECTOR = u"manifest:initialisation-vector"_ustr; -inline constexpr OUStringLiteral ELEMENT_START_KEY_GENERATION = u"manifest:start-key-generation"; -inline constexpr OUStringLiteral ATTRIBUTE_START_KEY_GENERATION_NAME = u"manifest:start-key-generation-name"; -inline constexpr OUStringLiteral ATTRIBUTE_KEY_SIZE = u"manifest:key-size"; +inline constexpr OUString ELEMENT_START_KEY_GENERATION = u"manifest:start-key-generation"_ustr; +inline constexpr OUString ATTRIBUTE_START_KEY_GENERATION_NAME = u"manifest:start-key-generation-name"_ustr; +inline constexpr OUString ATTRIBUTE_KEY_SIZE = u"manifest:key-size"_ustr; -inline constexpr OUStringLiteral ELEMENT_KEY_DERIVATION = u"manifest:key-derivation"; -inline constexpr OUStringLiteral ATTRIBUTE_KEY_DERIVATION_NAME = u"manifest:key-derivation-name"; -inline constexpr OUStringLiteral ATTRIBUTE_SALT = u"manifest:salt"; -inline constexpr OUStringLiteral ATTRIBUTE_ITERATION_COUNT = u"manifest:iteration-count"; +inline constexpr OUString ELEMENT_KEY_DERIVATION = u"manifest:key-derivation"_ustr; +inline constexpr OUString ATTRIBUTE_KEY_DERIVATION_NAME = u"manifest:key-derivation-name"_ustr; +inline constexpr OUString ATTRIBUTE_SALT = u"manifest:salt"_ustr; +inline constexpr OUString ATTRIBUTE_ITERATION_COUNT = u"manifest:iteration-count"_ustr; /// OFFICE-3708: wrong URL cited in ODF 1.2 and used since OOo 3.4 beta -inline constexpr OUStringLiteral SHA256_URL_ODF12 = u"http://www.w3.org/2000/09/xmldsig#sha256"; -inline constexpr OUStringLiteral SHA256_URL = u"http://www.w3.org/2001/04/xmlenc#sha256"; -inline constexpr OUStringLiteral SHA1_NAME = u"SHA1"; -inline constexpr OUStringLiteral SHA1_URL = u"http://www.w3.org/2000/09/xmldsig#sha1"; +inline constexpr OUString SHA256_URL_ODF12 = u"http://www.w3.org/2000/09/xmldsig#sha256"_ustr; +inline constexpr OUString SHA256_URL = u"http://www.w3.org/2001/04/xmlenc#sha256"_ustr; +inline constexpr OUString SHA1_NAME = u"SHA1"_ustr; +inline constexpr OUString SHA1_URL = u"http://www.w3.org/2000/09/xmldsig#sha1"_ustr; -inline constexpr OUStringLiteral SHA1_1K_NAME = u"SHA1/1K"; -inline constexpr OUStringLiteral SHA1_1K_URL = u"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#sha1-1k"; -inline constexpr OUStringLiteral SHA256_1K_URL = u"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#sha256-1k"; +inline constexpr OUString SHA1_1K_NAME = u"SHA1/1K"_ustr; +inline constexpr OUString SHA1_1K_URL = u"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#sha1-1k"_ustr; +inline constexpr OUString SHA256_1K_URL = u"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#sha256-1k"_ustr; -inline constexpr OUStringLiteral BLOWFISH_NAME = u"Blowfish CFB"; -inline constexpr OUStringLiteral BLOWFISH_URL = u"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#blowfish"; -inline constexpr OUStringLiteral AES128_URL = u"http://www.w3.org/2001/04/xmlenc#aes128-cbc"; -inline constexpr OUStringLiteral AES192_URL = u"http://www.w3.org/2001/04/xmlenc#aes192-cbc"; -inline constexpr OUStringLiteral AES256_URL = u"http://www.w3.org/2001/04/xmlenc#aes256-cbc"; +inline constexpr OUString BLOWFISH_NAME = u"Blowfish CFB"_ustr; +inline constexpr OUString BLOWFISH_URL = u"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#blowfish"_ustr; +inline constexpr OUString AES128_URL = u"http://www.w3.org/2001/04/xmlenc#aes128-cbc"_ustr; +inline constexpr OUString AES192_URL = u"http://www.w3.org/2001/04/xmlenc#aes192-cbc"_ustr; +inline constexpr OUString AES256_URL = u"http://www.w3.org/2001/04/xmlenc#aes256-cbc"_ustr; -inline constexpr OUStringLiteral PBKDF2_NAME = u"PBKDF2"; -inline constexpr OUStringLiteral PGP_NAME = u"PGP"; -inline constexpr OUStringLiteral PBKDF2_URL = u"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#pbkdf2"; +inline constexpr OUString PBKDF2_NAME = u"PBKDF2"_ustr; +inline constexpr OUString PGP_NAME = u"PGP"_ustr; +inline constexpr OUString PBKDF2_URL = u"urn:oasis:names:tc:opendocument:xmlns:manifest:1.0#pbkdf2"_ustr; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/package/source/manifest/ManifestExport.cxx b/package/source/manifest/ManifestExport.cxx index feeb63353698..be1d21114c1a 100644 --- a/package/source/manifest/ManifestExport.cxx +++ b/package/source/manifest/ManifestExport.cxx @@ -220,60 +220,60 @@ ManifestExport::ManifestExport( uno::Reference< xml::sax::XDocumentHandler > con if (aPgpKeyID.hasElements() && aCipherValue.hasElements() ) { // ==== manifest:encrypted-key & children - one for each recipient - xHandler->startElement(isODF13 ? OUString(ELEMENT_ENCRYPTEDKEY13) : OUString(ELEMENT_ENCRYPTEDKEY), nullptr); + xHandler->startElement(isODF13 ? ELEMENT_ENCRYPTEDKEY13 : ELEMENT_ENCRYPTEDKEY, nullptr); xHandler->ignorableWhitespace ( sWhiteSpace ); rtl::Reference<::comphelper::AttributeList> pNewAttrList = new ::comphelper::AttributeList; // TODO: the algorithm should rather be configurable pNewAttrList->AddAttribute( - isODF13 ? OUString(ATTRIBUTE_ALGORITHM13) : OUString(ATTRIBUTE_ALGORITHM), + isODF13 ? ATTRIBUTE_ALGORITHM13 : ATTRIBUTE_ALGORITHM, "http://www.w3.org/2001/04/xmlenc#rsa-oaep-mgf1p" ); - xHandler->startElement(isODF13 ? OUString(ELEMENT_ENCRYPTIONMETHOD13) : OUString(ELEMENT_ENCRYPTIONMETHOD), pNewAttrList); - xHandler->endElement(isODF13 ? OUString(ELEMENT_ENCRYPTIONMETHOD13) : OUString(ELEMENT_ENCRYPTIONMETHOD)); + xHandler->startElement(isODF13 ? ELEMENT_ENCRYPTIONMETHOD13 : ELEMENT_ENCRYPTIONMETHOD, pNewAttrList); + xHandler->endElement(isODF13 ? ELEMENT_ENCRYPTIONMETHOD13 : ELEMENT_ENCRYPTIONMETHOD); xHandler->ignorableWhitespace ( sWhiteSpace ); // note: the mismatch here corresponds to ODF 1.3 cs01 schema - xHandler->startElement(isODF13 ? OUString(ELEMENT_MANIFEST13_KEYINFO) : OUString(ELEMENT_MANIFEST_KEYINFO), nullptr); + xHandler->startElement(isODF13 ? ELEMENT_MANIFEST13_KEYINFO : ELEMENT_MANIFEST_KEYINFO, nullptr); xHandler->ignorableWhitespace ( sWhiteSpace ); - xHandler->startElement(isODF13 ? OUString(ELEMENT_PGPDATA13) : OUString(ELEMENT_PGPDATA), nullptr); + xHandler->startElement(isODF13 ? ELEMENT_PGPDATA13 : ELEMENT_PGPDATA, nullptr); xHandler->ignorableWhitespace ( sWhiteSpace ); - xHandler->startElement(isODF13 ? OUString(ELEMENT_PGPKEYID13) : OUString(ELEMENT_PGPKEYID), nullptr); + xHandler->startElement(isODF13 ? ELEMENT_PGPKEYID13 : ELEMENT_PGPKEYID, nullptr); ::comphelper::Base64::encode(aBuffer, aPgpKeyID); xHandler->characters( aBuffer.makeStringAndClear() ); - xHandler->endElement(isODF13 ? OUString(ELEMENT_PGPKEYID13) : OUString(ELEMENT_PGPKEYID)); + xHandler->endElement(isODF13 ? ELEMENT_PGPKEYID13 : ELEMENT_PGPKEYID); xHandler->ignorableWhitespace ( sWhiteSpace ); // key packet is optional if (aPgpKeyPacket.hasElements()) { - xHandler->startElement(isODF13 ? OUString(ELEMENT_PGPKEYPACKET13) : OUString(ELEMENT_PGPKEYPACKET), nullptr); + xHandler->startElement(isODF13 ? ELEMENT_PGPKEYPACKET13 : ELEMENT_PGPKEYPACKET, nullptr); ::comphelper::Base64::encode(aBuffer, aPgpKeyPacket); xHandler->characters( aBuffer.makeStringAndClear() ); - xHandler->endElement(isODF13 ? OUString(ELEMENT_PGPKEYPACKET13) : OUString(ELEMENT_PGPKEYPACKET)); + xHandler->endElement(isODF13 ? ELEMENT_PGPKEYPACKET13 : ELEMENT_PGPKEYPACKET); xHandler->ignorableWhitespace ( sWhiteSpace ); } - xHandler->endElement(isODF13 ? OUString(ELEMENT_PGPDATA13) : OUString(ELEMENT_PGPDATA)); + xHandler->endElement(isODF13 ? ELEMENT_PGPDATA13 : ELEMENT_PGPDATA); xHandler->ignorableWhitespace ( sWhiteSpace ); - xHandler->endElement(isODF13 ? OUString(ELEMENT_MANIFEST13_KEYINFO) : OUString(ELEMENT_MANIFEST_KEYINFO)); + xHandler->endElement(isODF13 ? ELEMENT_MANIFEST13_KEYINFO : ELEMENT_MANIFEST_KEYINFO); xHandler->ignorableWhitespace ( sWhiteSpace ); - xHandler->startElement(isODF13 ? OUString(ELEMENT_CIPHERDATA13) : OUString(ELEMENT_CIPHERDATA), nullptr); + xHandler->startElement(isODF13 ? ELEMENT_CIPHERDATA13 : ELEMENT_CIPHERDATA, nullptr); xHandler->ignorableWhitespace ( sWhiteSpace ); - xHandler->startElement(isODF13 ? OUString(ELEMENT_CIPHERVALUE13) : OUString(ELEMENT_CIPHERVALUE), nullptr); + xHandler->startElement(isODF13 ? ELEMENT_CIPHERVALUE13 : ELEMENT_CIPHERVALUE, nullptr); ::comphelper::Base64::encode(aBuffer, aCipherValue); xHandler->characters( aBuffer.makeStringAndClear() ); - xHandler->endElement(isODF13 ? OUString(ELEMENT_CIPHERVALUE13) : OUString(ELEMENT_CIPHERVALUE)); + xHandler->endElement(isODF13 ? ELEMENT_CIPHERVALUE13 : ELEMENT_CIPHERVALUE); xHandler->ignorableWhitespace ( sWhiteSpace ); - xHandler->endElement(isODF13 ? OUString(ELEMENT_CIPHERDATA13) : OUString(ELEMENT_CIPHERDATA)); + xHandler->endElement(isODF13 ? ELEMENT_CIPHERDATA13 : ELEMENT_CIPHERDATA); xHandler->ignorableWhitespace ( sWhiteSpace ); - xHandler->endElement(isODF13 ? OUString(ELEMENT_ENCRYPTEDKEY13) : OUString(ELEMENT_ENCRYPTEDKEY)); + xHandler->endElement(isODF13 ? ELEMENT_ENCRYPTEDKEY13 : ELEMENT_ENCRYPTEDKEY); xHandler->ignorableWhitespace ( sWhiteSpace ); } } diff --git a/package/source/zippackage/ZipPackageStream.cxx b/package/source/zippackage/ZipPackageStream.cxx index a183e63869b1..02282a03c4e5 100644 --- a/package/source/zippackage/ZipPackageStream.cxx +++ b/package/source/zippackage/ZipPackageStream.cxx @@ -219,10 +219,10 @@ uno::Sequence<sal_Int8> ZipPackageStream::GetEncryptionKey(Bugs const bugs) else if ( nKeyGenID == xml::crypto::DigestID::SHA1 ) { aNameToFind = bUseWinEncoding - ? OUString(PACKAGE_ENCRYPTIONDATA_SHA1MS1252) + ? PACKAGE_ENCRYPTIONDATA_SHA1MS1252 : (bugs == Bugs::WrongSHA1) - ? OUString(PACKAGE_ENCRYPTIONDATA_SHA1UTF8) - : OUString(PACKAGE_ENCRYPTIONDATA_SHA1CORRECT); + ? PACKAGE_ENCRYPTIONDATA_SHA1UTF8 + : PACKAGE_ENCRYPTIONDATA_SHA1CORRECT; } else throw uno::RuntimeException(THROW_WHERE "No expected key is provided!" ); |