Commit 29dc0aee authored by Oleg Korshul's avatar Oleg Korshul

.

parent d805972d
...@@ -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();
......
...@@ -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 -lcrypto -lssl LIBS += -L$$PWD/../../openssl -lssl -lcrypto
LIBS += -ldl LIBS += -ldl
SOURCES += main.cpp SOURCES += main.cpp
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment