Misc fixes for Windows build (thanks to Mehmet Bozkurt).
This commit is contained in:
parent
e192ce6716
commit
a63c0c5094
@ -33,6 +33,8 @@
|
|||||||
|
|
||||||
#include "vmime/exception.hpp"
|
#include "vmime/exception.hpp"
|
||||||
|
|
||||||
|
#include <ws2tcpip.h>
|
||||||
|
|
||||||
|
|
||||||
namespace vmime {
|
namespace vmime {
|
||||||
namespace platforms {
|
namespace platforms {
|
||||||
|
@ -48,6 +48,12 @@
|
|||||||
#include <openssl/err.h>
|
#include <openssl/err.h>
|
||||||
|
|
||||||
|
|
||||||
|
#ifdef WIN32
|
||||||
|
# define strcasecmp _stricmp
|
||||||
|
# define strncasecmp _strnicmp
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
namespace vmime {
|
namespace vmime {
|
||||||
namespace security {
|
namespace security {
|
||||||
namespace cert {
|
namespace cert {
|
||||||
@ -354,7 +360,11 @@ bool X509Certificate_OpenSSL::verifyHostName(const string& hostname) const
|
|||||||
|
|
||||||
if (strcmp(extStr, "subjectAltName") == 0)
|
if (strcmp(extStr, "subjectAltName") == 0)
|
||||||
{
|
{
|
||||||
|
#ifdef WIN32
|
||||||
|
X509V3_EXT_METHOD* method;
|
||||||
|
#else
|
||||||
const X509V3_EXT_METHOD* method;
|
const X509V3_EXT_METHOD* method;
|
||||||
|
#endif
|
||||||
|
|
||||||
if ((method = X509V3_EXT_get(ext)) != NULL)
|
if ((method = X509V3_EXT_get(ext)) != NULL)
|
||||||
{
|
{
|
||||||
|
@ -37,12 +37,13 @@
|
|||||||
#include "vmime/utility/outputStream.hpp"
|
#include "vmime/utility/outputStream.hpp"
|
||||||
#include "vmime/utility/progressListener.hpp"
|
#include "vmime/utility/progressListener.hpp"
|
||||||
|
|
||||||
|
#include "vmime/net/socket.hpp"
|
||||||
|
|
||||||
|
|
||||||
namespace vmime {
|
namespace vmime {
|
||||||
namespace net {
|
namespace net {
|
||||||
|
|
||||||
|
|
||||||
class socket;
|
|
||||||
class timeoutHandler;
|
class timeoutHandler;
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user