RE: SSL_connect on non blocking socket: Works but need better understanding

2009-08-01 Thread David Schwartz
Rij: > > If you get SSL_ERROR_WANT_READ, you need to epoll/select for ? > readability. If > > you get SSL_ERROR_WANT_WRITE, you need to epoll/select for readability. > I am assuming the above was a typo and you meant writeability for > SSL_ERROR_WRITE. Correct. > Ok. That's interesting. I actu

i2d_RSAPublicKey/d2i_RSAPublicKey problem redux

2009-08-01 Thread Conor
Greetings community, Alright, I'm trying to serialise a RSA public key and then deserialise it again; Later the key will be serialised and then deserialised on the other end of a TCP connection. For now, I'm just serialising and then deserialising the key. I've read the other posts to the list on

Re: i2d_RSAPublicKey/d2i_RSAPublicKey problem redux

2009-08-01 Thread Dr. Stephen Henson
On Sat, Aug 01, 2009, Conor wrote: > Greetings community, > > Alright, I'm trying to serialise a RSA public key and then > deserialise it again; Later the key will be serialised and > then deserialised on the other end of a TCP connection. > For now, I'm just serialising and then deserialising th

Re: i2d_RSAPublicKey/d2i_RSAPublicKey problem redux

2009-08-01 Thread Conor
> Well memcmp certainly wont work with an RSA structure, it contains pointers > which will differ even for the same key. > > You can check the values by calling BN_cmp() on rsa->n and rsa->e . Marvelous. That's solved my problem. Thank you for your time and input Dr. Henson. _

newbie program crashing.

2009-08-01 Thread Neil Dugan
Hi, I have been trying to figure out why this is crashing with a 'Segmentation fault', as far as I can see all the buffers etc. are getting setup and passed around correctly. If I comment out line 51 with the call to RSA_private_decrypt() I don't get the 'Segmentation fault'. Help Please.