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 <ws2tcpip.h>
|
||||
|
||||
|
||||
namespace vmime {
|
||||
namespace platforms {
|
||||
|
@ -48,6 +48,12 @@
|
||||
#include <openssl/err.h>
|
||||
|
||||
|
||||
#ifdef WIN32
|
||||
# define strcasecmp _stricmp
|
||||
# define strncasecmp _strnicmp
|
||||
#endif
|
||||
|
||||
|
||||
namespace vmime {
|
||||
namespace security {
|
||||
namespace cert {
|
||||
@ -354,7 +360,11 @@ bool X509Certificate_OpenSSL::verifyHostName(const string& hostname) const
|
||||
|
||||
if (strcmp(extStr, "subjectAltName") == 0)
|
||||
{
|
||||
#ifdef WIN32
|
||||
X509V3_EXT_METHOD* method;
|
||||
#else
|
||||
const X509V3_EXT_METHOD* method;
|
||||
#endif
|
||||
|
||||
if ((method = X509V3_EXT_get(ext)) != NULL)
|
||||
{
|
||||
|
@ -37,12 +37,13 @@
|
||||
#include "vmime/utility/outputStream.hpp"
|
||||
#include "vmime/utility/progressListener.hpp"
|
||||
|
||||
#include "vmime/net/socket.hpp"
|
||||
|
||||
|
||||
namespace vmime {
|
||||
namespace net {
|
||||
|
||||
|
||||
class socket;
|
||||
class timeoutHandler;
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user