One other option is to write a managed wrapper in visual C++ .net using the IJW (It just works) technology. This way, the resulting wrapper (.net assembly) could be called from any .net supported language e.g. C#, VB.net, J# etc.

I can provide an example of this if it is required.

Regards,
Hashim Saleem

----- Original Message ----- From: "Thomas J. Hruska" <[EMAIL PROTECTED]>
To: <openssl-users@openssl.org>
Sent: Sunday, January 22, 2006 8:34 AM
Subject: Re: Convert C++ to C# OpenSSL app


OpenSSLGRT wrote:
I just got Mr. Sanchez OpenSSL port to PDA
(http://karajan.it.uc3m.es/~pervasive/wce_lite_compat/) - and it works
great! I have a simple SSL Client in C++. Now I want to convert that to C#.
I assume(???) that I would use the two DLLs but libeay32.dll and
ssleay32.dll that I now have on the PDA. I know how to use simple dlls from
C++ in C# but I am having trouble figuring out how to convert this more
complicated program.  Any help would be greatly!!! Appretiated

 A simple app (which I got a lot from a great source on the web!) in C++
posts vars to a server and works fine - now to get it into C# (I can get the C++ generic code translated OK it is just how do I get at the OpenSSL stuff
like for example:  SSL_load_error_strings();

Look at how PayPal interacts with OpenSSL. They build an intermediate unmanaged DLL with C++ that does the actual communication with OpenSSL and then call the intermediate DLL from C#. Source code for this is available in the PayPal SDK.

--
Thomas Hruska
Shining Light Productions

Home of BMP2AVI, Nuclear Vision, ProtoNova, and Win32 OpenSSL.
http://www.slproweb.com/

Ask me about discounts on any Shining Light Productions product!

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager [EMAIL PROTECTED]

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to