RE: OpenSSL wants to read on connection?

2008-02-14 Thread Jeremy Farrell
> From: edam > > ... > I was wondering - where would you guys suggest I go to read > up on OpenSSL > programming? I've been reading their manpages online at > http://www.openssl.org/docs/ > but to be honest, they're fairly complicated when you're new > to OpenSSL! > And there are gaps in the

Re: OpenSSL wants to read on connection?

2008-02-13 Thread edam
Hi there, Thanks for your help guys. And especially thanks for that info call back routine - very handy! :o) I've found out what's going on. As David suggested, it has infact already written a "client hello" and now wants to read the response. I simply never thought to check if OpenSSL had put a

Re: OpenSSL wants to read on connection?

2008-02-12 Thread Marek . Marcola
Hello, > I've just started trying to develop a piece of software with OpenSSL and I > have a rather strange problem I wondered if anyone here might be able to > help explain... > > I've initialised OpenSSL like this: > > SSL_library_init(); > SSL_load_error_strings() > > and created a c

RE: OpenSSL wants to read on connection?

2008-02-12 Thread David Schwartz
> ret = SSL_write( m_ssl, buf, buf_lef ); > > which returns -1, as you'd expect. But (and here's the odd part) when I > call: > > SSL_get_error( m_ssl, ret ) > > it returns SSL_ERROR_WANT_READ, not SSL_ERROR_WANT_WRITE. How can this > be!? The OpenSSL library is setup in client mode, so sh