Subject: RE: [PATCH] Added Windows Cryptography API: Next Generation backend

RE: [PATCH] Added Windows Cryptography API: Next Generation backend

From: Bob Kast <bob_2824_at_hotmail.com>
Date: Wed, 19 Mar 2014 09:21:09 -0400

Marc,

 

In wincng.h at the top, there is this:

 

#ifdef HAVE_WINDOWS_H

#include <windows.h>

#endif

#ifdef HAVE_NTDEF_H

#include <ntdef.h>

#endif

#ifdef HAVE_NTSTATUS_H

#include <ntstatus.h>

#endif

 

I am using VS2013 with the corresponding SDK/WDK (8.1).

I have not been able to find any combination of HAVE_WINDOWS_H, HAVE_NTDEF_H and HAVE_NTSTATUS_H that will result in a clean compile. The problem is mixing headers used for drivers with headers used for user code. The errors are mostly macro redefinitions and redundant structs, etc.

 

My solution is to define only HAVE_WINDOWS_H and then add this:

 

#ifndef STATUS_SUCCESS

#define STATUS_SUCCESS ((NTSTATUS)0x00000000L)

#endif

 

That works fine. I’m wondering what you have found in your environment.

 

Thanks,

Bob

 

_______________________________________________
libssh2-devel http://cool.haxx.se/cgi-bin/mailman/listinfo/libssh2-devel
Received on 2014-03-19