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
6e258b85
Commit
6e258b85
authored
May 11, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
24e55018
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
1 deletion
+42
-1
DesktopEditor/xmlsec/src/XmlTransform.h
DesktopEditor/xmlsec/src/XmlTransform.h
+42
-0
DesktopEditor/xmlsec/test/windows_list_serts/main.cpp
DesktopEditor/xmlsec/test/windows_list_serts/main.cpp
+0
-1
No files found.
DesktopEditor/xmlsec/src/XmlTransform.h
View file @
6e258b85
...
...
@@ -141,4 +141,46 @@ IXmlTransform* IXmlTransform::GetFromType(const std::string& alg)
return
NULL
;
}
class
CXmlTransforms
{
protected:
std
::
vector
<
IXmlTransform
*>
m_transforms
;
bool
m_valid
;
public:
CXmlTransforms
(
XmlUtils
::
CXmlNode
&
node
)
{
m_valid
=
true
;
XmlUtils
::
CXmlNodes
oNodes
=
node
.
GetNodes
(
L"Transform"
);
int
nCount
=
oNodes
.
GetCount
();
for
(
int
i
=
0
;
i
<
nCount
;
++
i
)
{
XmlUtils
::
CXmlNode
nodeTransform
;
oNodes
.
GetAt
(
i
,
nodeTransform
);
IXmlTransform
*
pTransform
=
IXmlTransform
::
GetFromType
(
nodeTransform
.
GetAttributeA
(
"Algorithm"
));
if
(
NULL
==
pTransform
)
{
m_valid
=
false
;
return
;
}
pTransform
->
LoadFromXml
(
nodeTransform
);
m_transforms
.
push_back
(
pTransform
);
}
}
~
CXmlTransforms
()
{
for
(
std
::
vector
<
IXmlTransform
*>::
iterator
i
=
m_transforms
.
begin
();
i
!=
m_transforms
.
end
();
i
++
)
{
IXmlTransform
*
t
=
*
i
;
RELEASEOBJECT
(
t
);
}
m_transforms
.
clear
();
}
};
#endif //_XML_TRANSFORM_H_
DesktopEditor/xmlsec/test/windows_list_serts/main.cpp
View file @
6e258b85
#include "../../src/XmlCanonicalizator.h"
#include "../../src/XmlSigner_mscrypto.h"
#include "../../src/OOXMLSigner.h"
...
...
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