Kaydet (Commit) 27b743bd authored tarafından Stephan Bergmann's avatar Stephan Bergmann

-Werror,-Wwritable-strings

Change-Id: I85ae9765ed090816c48efd138d9a1a428999dd20
üst cf87fd19
...@@ -7269,7 +7269,7 @@ bool PDFWriterImpl::finalizeSignature() ...@@ -7269,7 +7269,7 @@ bool PDFWriterImpl::finalizeSignature()
aPara.cbSize = sizeof(aPara); aPara.cbSize = sizeof(aPara);
aPara.dwMsgEncodingType = PKCS_7_ASN_ENCODING | X509_ASN_ENCODING; aPara.dwMsgEncodingType = PKCS_7_ASN_ENCODING | X509_ASN_ENCODING;
aPara.pSigningCert = pCertContext; aPara.pSigningCert = pCertContext;
aPara.HashAlgorithm.pszObjId = szOID_RSA_SHA1RSA; aPara.HashAlgorithm.pszObjId = const_cast<LPSTR>(szOID_RSA_SHA1RSA);
aPara.HashAlgorithm.Parameters.cbData = 0; aPara.HashAlgorithm.Parameters.cbData = 0;
aPara.cMsgCert = 1; aPara.cMsgCert = 1;
aPara.rgpMsgCert = &pCertContext; aPara.rgpMsgCert = &pCertContext;
...@@ -7298,7 +7298,7 @@ bool PDFWriterImpl::finalizeSignature() ...@@ -7298,7 +7298,7 @@ bool PDFWriterImpl::finalizeSignature()
aSignerInfo.pCertInfo = pCertContext->pCertInfo; aSignerInfo.pCertInfo = pCertContext->pCertInfo;
aSignerInfo.hCryptProv = hCryptProv; aSignerInfo.hCryptProv = hCryptProv;
aSignerInfo.dwKeySpec = nKeySpec; aSignerInfo.dwKeySpec = nKeySpec;
aSignerInfo.HashAlgorithm.pszObjId = szOID_RSA_SHA1RSA; aSignerInfo.HashAlgorithm.pszObjId = const_cast<LPSTR>(szOID_RSA_SHA1RSA);
aSignerInfo.HashAlgorithm.Parameters.cbData = 0; aSignerInfo.HashAlgorithm.Parameters.cbData = 0;
CMSG_SIGNED_ENCODE_INFO aSignedInfo; CMSG_SIGNED_ENCODE_INFO aSignedInfo;
...@@ -7469,7 +7469,8 @@ bool PDFWriterImpl::finalizeSignature() ...@@ -7469,7 +7469,8 @@ bool PDFWriterImpl::finalizeSignature()
aTimestampBlob.pbData = pTsContext->pbEncoded; aTimestampBlob.pbData = pTsContext->pbEncoded;
CRYPT_ATTRIBUTE aTimestampAttribute; CRYPT_ATTRIBUTE aTimestampAttribute;
aTimestampAttribute.pszObjId = "1.2.840.113549.1.9.16.2.14"; aTimestampAttribute.pszObjId = const_cast<LPSTR>(
"1.2.840.113549.1.9.16.2.14");
aTimestampAttribute.cValue = 1; aTimestampAttribute.cValue = 1;
aTimestampAttribute.rgValue = &aTimestampBlob; aTimestampAttribute.rgValue = &aTimestampBlob;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment