summaryrefslogtreecommitdiffstats
path: root/svl/source/crypto/cryptosign.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svl/source/crypto/cryptosign.cxx')
-rw-r--r--svl/source/crypto/cryptosign.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/svl/source/crypto/cryptosign.cxx b/svl/source/crypto/cryptosign.cxx
index 83840fb8de5a..0130e9cc3408 100644
--- a/svl/source/crypto/cryptosign.cxx
+++ b/svl/source/crypto/cryptosign.cxx
@@ -26,6 +26,7 @@
#include <unotools/datetime.hxx>
#include <xmloff/xmluconv.hxx>
#include <tools/zcodec.hxx>
+#include <o3tl/char16_t2wchar_t.hxx>
#if HAVE_FEATURE_NSS && !defined(_WIN32)
// NSS headers for PDF signing
@@ -1573,7 +1574,7 @@ bool Signing::Sign(OStringBuffer& rCMSHexBuffer)
aTsPara.cExtension = 0;
aTsPara.rgExtension = nullptr;
- if (!CryptRetrieveTimeStamp(SAL_W(m_aSignTSA.getStr()),
+ if (!CryptRetrieveTimeStamp(o3tl::toW(m_aSignTSA.getStr()),
0,
10000,
szOID_NIST_sha256,
@@ -1946,7 +1947,7 @@ OUString GetSubjectName(PCCERT_CONTEXT pCertContext)
return subjectName;
}
- subjectName = SAL_U(szName);
+ subjectName = o3tl::toU(szName);
LocalFree(szName);
return subjectName;