Misc fixes for Windows build (thanks to Mehmet Bozkurt).

This commit is contained in:
Vincent Richard 2012-12-17 17:02:08 +01:00
parent e192ce6716
commit a63c0c5094
3 changed files with 23 additions and 10 deletions

View File

@ -33,6 +33,8 @@
#include "vmime/exception.hpp"
#include <ws2tcpip.h>
namespace vmime {
namespace platforms {

View File

@ -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)
{

View File

@ -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;