Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
onlyoffice_core
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
onlyoffice_core
Commits
4651ae1b
Commit
4651ae1b
authored
May 02, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sign ooxml file (full realize)
parent
18606e23
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
2 deletions
+7
-2
DesktopEditor/xmlsec/test/windows_list_serts/main.cpp
DesktopEditor/xmlsec/test/windows_list_serts/main.cpp
+7
-2
No files found.
DesktopEditor/xmlsec/test/windows_list_serts/main.cpp
View file @
4651ae1b
...
...
@@ -655,7 +655,8 @@ void main(void)
std
::
string
sCertHash
=
oSigner
.
GetCertificateHash
();
}
SignDocument
(
NSFile
::
GetProcessDirectory
()
+
L"/ImageStamp"
,
pCertContext
,
L"{39B6B9C7-60AD-45A2-9F61-40C74A24042E}"
);
//SignDocument(NSFile::GetProcessDirectory() + L"/ImageStamp", pCertContext, L"{39B6B9C7-60AD-45A2-9F61-40C74A24042E}");
SignDocument
(
L"D:
\\
555"
,
pCertContext
,
L"{58CBB483-BC48-4EFF-B742-44379E8D913E}"
);
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
...
...
@@ -849,6 +850,8 @@ public:
if
(
nTemp
>
rId
)
rId
=
nTemp
;
i
++
;
}
std
::
string
sXmlA
;
...
...
@@ -949,6 +952,8 @@ public:
if
(
L"/_rels/.rels"
==
file
)
{
oRels
.
CheckOriginSigs
(
m_sFolder
+
file
);
// удалим все лишнее
std
::
vector
<
COOXMLRelationship
>::
iterator
i
=
oRels
.
rels
.
begin
();
while
(
i
!=
oRels
.
rels
.
end
())
...
...
@@ -1062,7 +1067,7 @@ Type=\"http://schemas.openxmlformats.org/package/2006/relationships/digital-sign
XmlUtils
::
CXmlNode
node
;
nodesOverrides
.
GetAt
(
i
,
node
);
if
(
"application/vnd.openxmlformats-package.digital-signature-
origin
"
==
node
.
GetAttributeA
(
"ContentType"
))
if
(
"application/vnd.openxmlformats-package.digital-signature-
xmlsignature+xml
"
==
node
.
GetAttributeA
(
"ContentType"
))
{
++
nCountSigs
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment