Re: Using OpenSsl in a .Net server (ongoing opensource project)

2010-04-24 Thread Amit Ben Shahar
On Fri, Apr 23, 2010 at 21:35, James Mansion ja...@mansionfamily.plus.comwrote: Amit Ben Shahar wrote: One of the crucial ingredients is ssl using OpenSsl. but we are encountering a problem with the 'no OPENSSL_Applink' error. as this is a .Net project, there is no way (i can think of) to

Re: Using OpenSsl in a .Net server (ongoing opensource project)

2010-04-24 Thread Patrice Guérin
Hello Amit, Maybe you can explore the IJW way... I use Visual C++ 6 to build my aWin32 pplications and I had to use some .NET Crypto functions such as RSA to communicate with a customer. I've used Visual C++ 2005 Express, in which I add the Win32 environment (from a platform SDK. Express don't

Re: Using OpenSsl in a .Net server (ongoing opensource project)

2010-04-24 Thread Amit Ben Shahar
Patrice, I think your have misunderstood me (or i did you), From what you wrote i gather that you are talking about using .Net dlls in native applications, which is not the case here, i need it the other way around. Our server is a .Net application and so we'd either have to somehow get the

Re: Using OpenSsl in a .Net server (ongoing opensource project)

2010-04-24 Thread Amit Ben Shahar
Would anyone happen to know how i can eliminate the requirement of the applink implementation? why would we actually need it? Amit Ben Shahar On Sat, Apr 24, 2010 at 13:25, Amit Ben Shahar amit.b...@gmail.com wrote: Patrice, I think your have misunderstood me (or i did you), From what you

Re: Using OpenSsl in a .Net server (ongoing opensource project)

2010-04-24 Thread Patrice Guérin
Amit, No, I don't misunderstand you. The (real) example I gave is in fact similar (I think so) In a classic Win32 application, when mixing different compiler setting, different compilers between application and the OpenSSL dll and use some functions involving FILE* parameters, applink is used

Re: Using OpenSsl in a .Net server (ongoing opensource project)

2010-04-24 Thread Amit Ben Shahar
Patrice, Thank you for the clarification, i'll try just that and post back with my results. Thanks! Amit Ben Shahar 2010/4/24 Patrice Guérin guer...@magic.fr Amit, No, I don't misunderstand you. The (real) example I gave is in fact similar (I think so) In a classic Win32 application,

Re: Binding outgoing SSL connection to certain IP address

2010-04-24 Thread Ondrej Jombik
On Tue, 20 Apr 2010, Ondrej Jombik wrote: Tommorow, I will post here a simple snipet of code, as others may find it also useful, somewhere in the future. Here is simple code snippet for binding local address to socket and passing it to SSL. Save it into file ssltest.c and compile with:

Re: Using OpenSsl in a .Net server (ongoing opensource project)

2010-04-24 Thread James Mansion
Amit Ben Shahar wrote: The .Net.Security.SslStream is not working in asynchronous calls, meaning we'd have to implement it in a thread-per-connection paradigm, which is obviously not an option. Why 'obviously'? You might be surprised by how many threads can be managed by Windows before it all

Re: Using OpenSsl in a .Net server (ongoing opensource project)

2010-04-24 Thread Amit Ben Shahar
On Sat, Apr 24, 2010 at 18:29, James Mansion ja...@mansionfamily.plus.comwrote: Amit Ben Shahar wrote: The .Net.Security.SslStream is not working in asynchronous calls, meaning we'd have to implement it in a thread-per-connection paradigm, which is obviously not an option. Why 'obviously'?

BIO_do_handshake() little help wanted

2010-04-24 Thread Modem Man
Dear all, I'm fiddling since two days with BIO_do_handshake(), and always have no luck. I'm afraid, it's time to cry for help now. *Short description:* After BIO_do_handshake() always returns -1, I always get the message: /error:1408A0C1:SSL routines:SSL3_GET_CLIENT_HELLO:no shared cipher/ from

Re: BIO_do_handshake() little help wanted

2010-04-24 Thread Dr. Stephen Henson
On Sat, Apr 24, 2010, Modem Man wrote: Dear all, I'm fiddling since two days with BIO_do_handshake(), and always have no luck. I'm afraid, it's time to cry for help now. *Short description:* After BIO_do_handshake() always returns -1, I always get the message: /error:1408A0C1:SSL