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
907e00a3
Commit
907e00a3
authored
Jun 09, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
2470bfd3
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
743 additions
and
554 deletions
+743
-554
DesktopEditor/xmlsec/src/include/XmlCertificate.h
DesktopEditor/xmlsec/src/include/XmlCertificate.h
+36
-4
DesktopEditor/xmlsec/src/ooxmlsignature.pro
DesktopEditor/xmlsec/src/ooxmlsignature.pro
+22
-4
DesktopEditor/xmlsec/src/src/XmlSigner_openssl.cpp
DesktopEditor/xmlsec/src/src/XmlSigner_openssl.cpp
+663
-0
DesktopEditor/xmlsec/src/src/XmlSigner_openssl.h
DesktopEditor/xmlsec/src/src/XmlSigner_openssl.h
+22
-546
No files found.
DesktopEditor/xmlsec/src/include/XmlCertificate.h
View file @
907e00a3
...
...
@@ -8,6 +8,11 @@
#define OOXML_HASH_ALG_SHA1 0
#define OOXML_HASH_ALG_INVALID 1
#define OPEN_SSL_WARNING_OK 0
#define OPEN_SSL_WARNING_ERR 1
#define OPEN_SSL_WARNING_ALL_OK 2
#define OPEN_SSL_WARNING_PASS 4
class
ICertificate
;
class
Q_DECL_EXPORT
ICertificateSelectDialogOpenSsl
{
...
...
@@ -32,7 +37,7 @@ public:
class
Q_DECL_EXPORT
CCertificateInfo
{
p
ublic
:
p
rivate
:
std
::
wstring
m_name
;
std
::
string
m_date
;
std
::
string
m_id
;
...
...
@@ -44,6 +49,33 @@ public:
~
CCertificateInfo
()
{
}
std
::
wstring
GetName
()
{
return
m_name
;
}
void
SetName
(
const
std
::
wstring
&
name
)
{
m_name
=
name
;
}
std
::
string
GetDate
()
{
return
m_date
;
}
void
SetDate
(
const
std
::
string
&
date
)
{
m_date
=
date
;
}
std
::
string
GetId
()
{
return
m_id
;
}
void
SetId
(
const
std
::
string
&
id
)
{
m_id
=
id
;
}
};
class
Q_DECL_EXPORT
ICertificate
...
...
@@ -88,9 +120,9 @@ public:
virtual
CCertificateInfo
GetInfo
()
{
CCertificateInfo
info
;
info
.
m_name
=
GetSignerName
(
);
info
.
m_date
=
GetDate
(
);
info
.
m_id
=
GetId
(
);
info
.
SetName
(
GetSignerName
()
);
info
.
SetDate
(
GetDate
()
);
info
.
SetId
(
GetId
()
);
return
info
;
}
...
...
DesktopEditor/xmlsec/src/ooxmlsignature.pro
View file @
907e00a3
...
...
@@ -21,6 +21,13 @@ include($$CORE_ROOT_DIR/DesktopEditor/xml/build/qt/libxml2.pri)
DEFINES
-=
UNICODE
core_linux
{
CONFIG
+=
signature_openssl
}
core_mac
{
CONFIG
+=
signature_openssl
}
HEADERS
+=
\
include
/
XmlCertificate
.
h
\
include
/
OOXMLSigner
.
h
\
...
...
@@ -29,9 +36,7 @@ HEADERS += \
HEADERS
+=
\
src
/
XmlCanonicalizator
.
h
\
src
/
XmlRels
.
h
\
src
/
XmlTransform
.
h
\
src
/
XmlSigner_mscrypto
.
h
\
src
/
XmlSigner_openssl
.
h
src
/
XmlTransform
.
h
SOURCES
+=
\
src
/
XmlTransform
.
cpp
\
...
...
@@ -41,13 +46,26 @@ SOURCES += \
core_windows
{
HEADERS
+=
\
src
/
XmlSigner_mscrypto
.
h
LIBS
+=
-
lcrypt32
LIBS
+=
-
lcryptui
LIBS
+=
-
lAdvapi32
}
core_linux
{
signature_openssl
{
HEADERS
+=
\
src
/
XmlSigner_openssl
.
h
SOURCES
+=
\
src
/
XmlSigner_openssl
.
cpp
}
signature_openssl
{
DEFINES
+=
XMLSEC_OPENSSL_110
INCLUDEPATH
+=
$$
CORE_ROOT_DIR
/
Common
/
3
dParty
/
openssl
/
openssl
/
include
...
...
DesktopEditor/xmlsec/src/src/XmlSigner_openssl.cpp
0 → 100644
View file @
907e00a3
This diff is collapsed.
Click to expand it.
DesktopEditor/xmlsec/src/src/XmlSigner_openssl.h
View file @
907e00a3
This diff is collapsed.
Click to expand it.
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