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
29dc0aee
Commit
29dc0aee
authored
Jun 06, 2017
by
Oleg Korshul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
d805972d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
DesktopEditor/xmlsec/test/openssl_linux/main.cpp
DesktopEditor/xmlsec/test/openssl_linux/main.cpp
+4
-2
DesktopEditor/xmlsec/test/openssl_linux/test.pro
DesktopEditor/xmlsec/test/openssl_linux/test.pro
+1
-1
No files found.
DesktopEditor/xmlsec/test/openssl_linux/main.cpp
View file @
29dc0aee
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
#include <openssl/pkcs12.h>
#include <openssl/pkcs12.h>
#include <openssl/sha.h>
#include <openssl/sha.h>
#include <openssl/ssl.h>
#include "../../../common/File.h"
#include "../../../common/File.h"
...
@@ -43,7 +44,7 @@ static time_t ASN1_GetTimeT(ASN1_TIME* time)
...
@@ -43,7 +44,7 @@ static time_t ASN1_GetTimeT(ASN1_TIME* time)
return
mktime
(
&
t
);
return
mktime
(
&
t
);
}
}
#if
1
#if
0
int main()
int main()
{
{
std::wstring sFolderW = NSFile::GetProcessDirectory();
std::wstring sFolderW = NSFile::GetProcessDirectory();
...
@@ -140,7 +141,7 @@ int main()
...
@@ -140,7 +141,7 @@ int main()
}
}
#endif
#endif
#if
0
#if
1
int
main
(
int
argc
,
char
**
argv
)
int
main
(
int
argc
,
char
**
argv
)
{
{
std
::
wstring
sFolderW
=
NSFile
::
GetProcessDirectory
();
std
::
wstring
sFolderW
=
NSFile
::
GetProcessDirectory
();
...
@@ -157,6 +158,7 @@ int main(int argc, char **argv)
...
@@ -157,6 +158,7 @@ int main(int argc, char **argv)
STACK_OF
(
X509
)
*
ca
=
NULL
;
STACK_OF
(
X509
)
*
ca
=
NULL
;
PKCS12
*
p12
;
PKCS12
*
p12
;
SSL_library_init
();
OpenSSL_add_all_algorithms
();
OpenSSL_add_all_algorithms
();
ERR_load_crypto_strings
();
ERR_load_crypto_strings
();
...
...
DesktopEditor/xmlsec/test/openssl_linux/test.pro
View file @
29dc0aee
...
@@ -18,7 +18,7 @@ DEFINES += XMLSEC_OPENSSL_110
...
@@ -18,7 +18,7 @@ DEFINES += XMLSEC_OPENSSL_110
INCLUDEPATH
+=
$$
PWD
/../../
openssl
/
include
INCLUDEPATH
+=
$$
PWD
/../../
openssl
/
include
LIBS
+=
-
L
$$
PWD
/../../
openssl
-
l
crypto
-
lssl
LIBS
+=
-
L
$$
PWD
/../../
openssl
-
l
ssl
-
lcrypto
LIBS
+=
-
ldl
LIBS
+=
-
ldl
SOURCES
+=
main
.
cpp
SOURCES
+=
main
.
cpp
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