(UMDF) OpenSSL

Hi,

Has anyone any experience of using openssl RSA encryption with a WDK usermode application? I hope I won’t be flamed to suggest that I should be using VS. I would like to use WDK’s compilier as I do not see any reason why it should not work.

I have the correct static libraries. libeay32.lib is the one which contains the RSA_* functions. I have compiled everything successfully, also tried pre-compiled.

my targetlib lists the required files as.

TARGETLIBS=\

static\libeay32.lib \
static\ssleay32.lib

The headers fies are fine and the message I receive is LNK2019: Unresolved extern symbol _RSA_generate_key@16.

Anyideas? I would like to at least try before I have to move to VS.

Thanks,

I would GUESS that the openssl libraries are build using the c calling
convention; that symbol below is expecting STDCALL.

Good luck,

mm

-----Original Message-----
From: xxxxx@lists.osr.com
[mailto:xxxxx@lists.osr.com] On Behalf Of
xxxxx@hotmail.co.uk
Sent: Monday, August 23, 2010 2:22 PM
To: Windows System Software Devs Interest List
Subject: [ntdev] (UMDF) OpenSSL

Hi,

Has anyone any experience of using openssl RSA encryption with a WDK
usermode application? I hope I won’t be flamed to suggest that I should be
using VS. I would like to use WDK’s compilier as I do not see any reason why
it should not work.

I have the correct static libraries. libeay32.lib is the one which contains
the RSA_* functions. I have compiled everything successfully, also tried
pre-compiled.

my targetlib lists the required files as.

TARGETLIBS=\

static\libeay32.lib \
static\ssleay32.lib

The headers fies are fine and the message I receive is LNK2019: Unresolved
extern symbol _RSA_generate_key@16.

Anyideas? I would like to at least try before I have to move to VS.

Thanks,


NTDEV is sponsored by OSR

For our schedule of WDF, WDM, debugging and other seminars visit:
http://www.osr.com/seminars

To unsubscribe, visit the List Server section of OSR Online at
http://www.osronline.com/page.cfm?name=ListServer

> Has anyone any experience of using openssl RSA encryption with a WDK usermode application? I

hope I won’t be flamed to suggest that I should be using VS. I would like to use WDK’s compilier as I
do not see any reason why it should not work.

The main difference between WDK and VS compiler defaults is the default calling convention, which is __cdecl in VS and __stdcall in WDK.


Maxim S. Shatskih
Windows DDK MVP
xxxxx@storagecraft.com
http://www.storagecraft.com