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
4d688b39
Commit
4d688b39
authored
May 12, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
be8d427e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
10 deletions
+29
-10
DesktopEditor/xmlsec/src/OOXMLVerifier.h
DesktopEditor/xmlsec/src/OOXMLVerifier.h
+4
-1
DesktopEditor/xmlsec/test/windows_list_serts/main.cpp
DesktopEditor/xmlsec/test/windows_list_serts/main.cpp
+25
-9
No files found.
DesktopEditor/xmlsec/src/OOXMLVerifier.h
View file @
4d688b39
...
...
@@ -57,7 +57,10 @@ public:
}
public:
void
Check
();
void
Check
()
{
}
friend
class
COOXMLVerifier
;
};
...
...
DesktopEditor/xmlsec/test/windows_list_serts/main.cpp
View file @
4d688b39
...
...
@@ -12,17 +12,33 @@ void main(void)
//std::wstring sSignId = L"{39B6B9C7-60AD-45A2-9F61-40C74A24042E}";
std
::
wstring
sFolderOOXML
=
L"D:
\\
555"
;
std
::
wstring
sSignId
=
L"{9792D33F-AB37-4E5B-A465-481B9465818B}"
;
CCertificate
oCertificate
;
if
(
!
oCertificate
.
ShowSelectDialog
())
return
;
if
(
false
)
{
std
::
wstring
sSignId
=
L"{9792D33F-AB37-4E5B-A465-481B9465818B}"
;
COOXMLSigner
oOOXMLSigner
(
sFolderOOXML
,
&
oCertificate
);
CCertificate
oCertificate
;
if
(
!
oCertificate
.
ShowSelectDialog
())
return
;
oOOXMLSigner
.
SetGuid
(
sSignId
);
oOOXMLSigner
.
SetImageValid
(
NSFile
::
GetProcessDirectory
()
+
L"/../../../resources/valid.png"
);
oOOXMLSigner
.
SetImageInvalid
(
NSFile
::
GetProcessDirectory
()
+
L"/../../../resources/invalid.png"
);
COOXMLSigner
oOOXMLSigner
(
sFolderOOXML
,
&
oCertificate
);
oOOXMLSigner
.
Sign
();
oOOXMLSigner
.
SetGuid
(
sSignId
);
oOOXMLSigner
.
SetImageValid
(
NSFile
::
GetProcessDirectory
()
+
L"/../../../resources/valid.png"
);
oOOXMLSigner
.
SetImageInvalid
(
NSFile
::
GetProcessDirectory
()
+
L"/../../../resources/invalid.png"
);
oOOXMLSigner
.
Sign
();
}
else
{
COOXMLVerifier
oVerifier
(
sFolderOOXML
);
size_t
nCount
=
oVerifier
.
m_arSignatures
.
size
();
for
(
std
::
vector
<
COOXMLSignature
*>::
iterator
i
=
oVerifier
.
m_arSignatures
.
begin
();
i
!=
oVerifier
.
m_arSignatures
.
end
();
i
++
)
{
COOXMLSignature
*
pSign
=
*
i
;
}
XML_UNUSED
(
nCount
);
}
}
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