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
8ee0cf4b
Commit
8ee0cf4b
authored
Apr 21, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
42634207
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
1 deletion
+11
-1
DesktopEditor/xmlsec/test/windows_list_serts/main.cpp
DesktopEditor/xmlsec/test/windows_list_serts/main.cpp
+11
-1
No files found.
DesktopEditor/xmlsec/test/windows_list_serts/main.cpp
View file @
8ee0cf4b
...
...
@@ -46,6 +46,16 @@ static int xmlBufferIOClose(CXmlBuffer* buf)
int
xmlC14NIsVisibleCallbackMy
(
void
*
user_data
,
xmlNodePtr
node
,
xmlNodePtr
parent
)
{
if
(
node
->
type
==
XML_TEXT_NODE
)
{
std
::
string
sTmp
((
char
*
)
node
->
content
);
if
(
std
::
string
::
npos
!=
sTmp
.
find
(
'\n'
)
||
std
::
string
::
npos
!=
sTmp
.
find
(
'\r'
)
||
std
::
string
::
npos
!=
sTmp
.
find
(
'\t'
))
{
return
0
;
}
}
return
1
;
}
...
...
@@ -420,7 +430,7 @@ bool Sign(PCCERT_CONTEXT pCertContext, std::wstring sFileXml, std::wstring sSign
&
_bufferC14N
,
NULL
);
xmlC14NExecute
(
xmlDoc
,
xmlC14NIsVisibleCallbackMy
,
NULL
,
XML_C14N_1_
1
,
NULL
,
0
,
_buffer
);
xmlC14NExecute
(
xmlDoc
,
xmlC14NIsVisibleCallbackMy
,
NULL
,
XML_C14N_1_
0
,
NULL
,
0
,
_buffer
);
xmlOutputBufferClose
(
_buffer
);
...
...
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