EVP_* Routines

2002-01-01 Thread Chris Plant
I've compiled the attached code, and it doesn't decrypt the text correctly. If anyone could explain why to me, or point out a nice tutorial about using these routines, it would be much appreciated. ircd_malloc() is basically malloc() with memset(). Chris Plant [EMAIL PROTECTED] #ifndef

Re: EVP_* Routines

2002-01-02 Thread Chris Plant
ok, thanks. I did look at the EVP_EncryptInit man page, but the code I had there, was loosely based on some code I found on the net, they probably had the same problem. Chris [EMAIL PROTECTED] __ OpenSSL Project

Re: EVP_* Routines

2002-01-02 Thread Chris Plant
On Wed, 2002-01-02 at 18:00, Juan Segarra wrote: On 2 Jan 2002, Chris Plant wrote: I've compiled the attached code, and it doesn't decrypt the text correctly. If anyone could explain why to me, or point out a nice tutorial about using these routines, it would be much appreciated

SSL_peek()

2002-05-21 Thread Chris Plant
I'm trying to use SSL_peek() in the same way as I use recv( , , ,MSG_PEEK), but when I ask SSL_read() to read only the first x bytes, I only get the first x bytes, as expected, and then I lose all the data in the queue after that. Is this the normal behaviour, due to the way the packets

SSL_read()

2002-05-24 Thread Chris Plant
I know I posted this the other day, but if I ask for 60bytes, and there is 200 in the buffer, why is SSL_read() removing it all ? Chris __ OpenSSL Project http://www.openssl.org User Support

Re: SSL_read()

2002-05-24 Thread Chris Plant
On Sun, 2002-05-19 at 13:23, Lutz Jaenicke wrote: On Sun, May 19, 2002 at 10:11:20AM +0100, Chris Plant wrote: I have established a connection (using SSL_accept), and sent and received data over it, before the connection is dropped and the server reports the error (using

Problems with SSL_peek()

2002-10-19 Thread Chris Plant
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello I wonder if anyone can clarify the use of SSL_peek() and SSL_read() for me. I'm using SSL_peek() to look at a SSL session and look at the waiting data, but when I request a particular number of bytes from it with SSL_read() i hit problems,