mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-28 11:31:53 +01:00
openssl VS projects modifications
This commit is contained in:
@@ -27,6 +27,7 @@
|
||||
|
||||
|
||||
#include "Poco/Foundation.h"
|
||||
#include <openssl/opensslv.h>
|
||||
|
||||
|
||||
enum RSAPaddingMode
|
||||
@@ -65,11 +66,6 @@ enum RSAPaddingMode
|
||||
#else
|
||||
#define Crypto_API __declspec(dllimport)
|
||||
#endif
|
||||
#else
|
||||
#if (POCO_MSVS_VERSION >= 2015) // needed for OpenSSL
|
||||
#pragma comment(lib, "legacy_stdio_definitions.lib")
|
||||
#pragma comment(lib, "legacy_stdio_wide_specifiers.lib")
|
||||
#endif
|
||||
#endif
|
||||
#endif
|
||||
|
||||
@@ -88,9 +84,36 @@ enum RSAPaddingMode
|
||||
//
|
||||
#if defined(_MSC_VER)
|
||||
#if !defined(POCO_NO_AUTOMATIC_LIBS)
|
||||
#if !defined(POCO_EXTERNAL_OPENSSL)
|
||||
#pragma comment(lib, "libcrypto.lib")
|
||||
#pragma comment(lib, "libssl.lib")
|
||||
#if defined(POCO_INTERNAL_OPENSSL_MSVC_VER)
|
||||
#if defined(POCO_EXTERNAL_OPENSSL)
|
||||
#pragma warning "External OpenSSL defined but internal headers used - possible mismatch!"
|
||||
#endif // POCO_EXTERNAL_OPENSSL
|
||||
#if !defined(_DEBUG)
|
||||
#define POCO_DEBUG_SUFFIX ""
|
||||
#if !defined (_DLL)
|
||||
#define POCO_STATIC_SUFFIX "mt"
|
||||
#else // _DLL
|
||||
#define POCO_STATIC_SUFFIX ""
|
||||
#endif
|
||||
#else // _DEBUG
|
||||
#define POCO_DEBUG_SUFFIX "d"
|
||||
#if !defined (_DLL)
|
||||
#define POCO_STATIC_SUFFIX "mt"
|
||||
#else // _DLL
|
||||
#define POCO_STATIC_SUFFIX ""
|
||||
#endif
|
||||
#endif
|
||||
#pragma comment(lib, "libcrypto" POCO_STATIC_SUFFIX POCO_DEBUG_SUFFIX ".lib")
|
||||
#pragma comment(lib, "libssl" POCO_STATIC_SUFFIX POCO_DEBUG_SUFFIX ".lib")
|
||||
#if !defined(_WIN64) && !defined (_DLL) && \
|
||||
(POCO_INTERNAL_OPENSSL_MSVC_VER == 120) && \
|
||||
(POCO_MSVC_VERSION < POCO_INTERNAL_OPENSSL_MSVC_VER)
|
||||
#pragma comment(lib, "libPreVS2013CRT" POCO_STATIC_SUFFIX POCO_DEBUG_SUFFIX ".lib")
|
||||
#endif
|
||||
#if !defined (_DLL) && (POCO_MSVS_VERSION >= 2015)
|
||||
#pragma comment(lib, "legacy_stdio_definitions.lib")
|
||||
#pragma comment(lib, "legacy_stdio_wide_specifiers.lib")
|
||||
#endif
|
||||
#endif // POCO_EXTERNAL_OPENSSL
|
||||
#if !defined(Crypto_EXPORTS)
|
||||
#pragma comment(lib, "PocoCrypto" POCO_LIB_SUFFIX)
|
||||
|
||||
@@ -22,7 +22,7 @@
|
||||
#include "Poco/Mutex.h"
|
||||
#include "Poco/AtomicCounter.h"
|
||||
#include <openssl/crypto.h>
|
||||
#include <openssl/opensslv.h>
|
||||
|
||||
#if defined(OPENSSL_FIPS) && OPENSSL_VERSION_NUMBER < 0x010001000L
|
||||
#include <openssl/fips.h>
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user