Re: SSL Communication using BIO

2011-05-22 Thread Gayathri Sundar
as Neo Liu has pointed out, if you try to use memory bio pair for communcation, then its ur responsibility to read and write every byte out the fd using tcp_send and recv() calls, as openssl would only read and write into the bio. This approach is very very tedious and not sure if thats the only wa

Re: SSL Communication using BIO

2011-05-22 Thread David Schwartz
On 5/22/2011 5:10 PM, Harshvir Sidhu wrote: Previously I have used SSL_XXX functions for performing SSL operations. Now i have am working on an application which is written in Managed C++ using callback functions(BeginReceive and EndReceive), and SSL_Read function is not working for that. So

Re: SSL Communication using BIO

2011-05-22 Thread Neo Liu
BIO pair is non-blocking BIO, so you need to call SSL_accept() or SSL_do_handshake() for server times. The example code looks like follows: BIO_write(ebio, ...) SSL_accept(ssl) BIO_read(ebio, ...) you can use BIO_pending() and BIO_wpending() to watch the buffer status of the BIO pairs. On Mon, M

Re: SSL Communication using BIO

2011-05-22 Thread G S
Ah, yes, I realized later that there wasn't any communication info in there. I only use it for encryption. Good luck!

Re: SSL Communication using BIO

2011-05-22 Thread Harshvir Sidhu
Thanks GS. But i am more interested in the sample code in which BIO pair is used for socket communication along with Certificate Exchange. In the current code, i am creating CTX as usual, then using BIO to do connect, and handshake. but that is not working. // Harshvir On Sun, May 22, 2011 at 7:2

Re: SSL Communication using BIO

2011-05-22 Thread G S
On Sun, May 22, 2011 at 5:10 PM, Harshvir Sidhu wrote: >Can someone point me to some example code for this in which BIO is used > to encrypt and decrypt data and then using normal sockets for send/receive? > I am not able to find anything in openssl source exmple or on google. > > Here's some

SSL Communication using BIO

2011-05-22 Thread Harshvir Sidhu
Hi, Previously I have used SSL_XXX functions for performing SSL operations. Now i have am working on an application which is written in Managed C++ using callback functions(BeginReceive and EndReceive), and SSL_Read function is not working for that. So i tried using BIO_ functions to create a bi

openssl-1.0.1-stable-SNAP-20110522

2011-05-22 Thread The Doctor
Compiled, tested and installed. Looking great! -- Member - Liberal International This is doc...@nl2k.ab.ca Ici doc...@nl2k.ab.ca God, Queen and country! Never Satan President Republic! Beware AntiChrist rising! http://twitter.com/rootnl2k http://www.facebook.com/dyadallee Stop Stephen Harper

Building a 64-bit version of the FIPS-capable OpenSSL on Mac OS X 10.6.7

2011-05-22 Thread Bill Durant
Hello, Has anyone been able to build a "working" 64-bit version of the FIPS-capable OpenSSL on Mac OS X 10.6.7 (SnowLeopard)? I have built a 64-bit version of the fipscanister from openssl-fips-1.2.3 on Mac OS X 10.6.7. But fips_shatest and the openssl command are core dumping when I do a 'ma