diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-02-16 18:07:47 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2015-03-05 17:17:42 +0100 |
commit | a631ee21f2478c976bce23898d84a6529296087f (patch) | |
tree | 1f49febf01119218b32943dd3e4afcf6b6f2f433 /vcl/source/gdi/pdfwriter_impl.cxx | |
parent | a56459cae72f17ebeba408a451451880639bcabf (diff) |
tdf#88428: Add GUI to select one of user-configured Time Stamp Authorities
Work in progress. The selection not used for anything yet.
(cherry picked from commit b8b9d51b8cf1cafe1a94e1baf957f3f282abb32f)
Conflicts:
filter/source/pdf/impdialog.cxx
include/sal/log-areas.dox
Change-Id: Ia86fa0f59dcfee8e9d332a028a3fad37f4019fe0
Diffstat (limited to 'vcl/source/gdi/pdfwriter_impl.cxx')
-rw-r--r-- | vcl/source/gdi/pdfwriter_impl.cxx | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/vcl/source/gdi/pdfwriter_impl.cxx b/vcl/source/gdi/pdfwriter_impl.cxx index e7a18b78ee42..7fa5b14ab815 100644 --- a/vcl/source/gdi/pdfwriter_impl.cxx +++ b/vcl/source/gdi/pdfwriter_impl.cxx @@ -6943,7 +6943,8 @@ bool PDFWriterImpl::finalizeSignature() src.reqPolicy.data = NULL; src.reqPolicy.len = 0; - unsigned int nNonce = comphelper::rng::uniform_uint_distribution(0, SAL_MAX_UINT32); + srand( unsigned( time( NULL ) )); + unsigned int nNonce = rand(); src.nonce.type = siUnsignedInteger; src.nonce.data = reinterpret_cast<unsigned char*>(&nNonce); src.nonce.len = sizeof(nNonce); @@ -7414,7 +7415,8 @@ bool PDFWriterImpl::finalizeSignature() CMSG_SIGNER_INFO *pDecodedSignerInfo = (CMSG_SIGNER_INFO *) pDecodedSignerInfoBuf.get(); CRYPT_TIMESTAMP_PARA aTsPara; - unsigned int nNonce = comphelper::rng::uniform_uint_distribution(0, SAL_MAX_UINT32); + srand( unsigned( time( NULL ) )); + unsigned int nNonce = rand(); aTsPara.pszTSAPolicyId = NULL; aTsPara.fRequestCerts = TRUE; |