Exception when using SSL_connect with BIO_s_mem

2005-05-08 Thread Nadav Golombick
Hi,   I am trying to use the openssl library on VC 7 with BIO_s_mem. The first time I call SSL_Connect, I get the expected response with the data to be read. After receiving the response from the server and transferring the information from the socket to the BIO, SSL_Connect crashes. I have atta

RE: How to pass SSL connection/object from one process to another?

2005-05-08 Thread Dave Peter
You can pass file descriptors from once process to another. Stevens Advance Programming in the Unix Environment chaper 15.3 gives examples of how to do this. Hope this helps Dave Peter Senior Software Engineer, Unix Clients Citrix Systems (R&D) Ltd Chalfont St Peter, UK +

SSL_Accept fails

2005-05-08 Thread Sitaram
Hi!   I have a typical problem. I have derived my socket class from CAsyncSocket. This is a server application. Whenever my client tries to connect, in OnAccept() function of my class, I try to do an SSL_accept.   Sometimes it succeeds, some times it fails and sometimes, it gives the following

How to pass SSL connection/object from one process to another?

2005-05-08 Thread lewislyk
Hi, I wrote a server program that containing 3 executable file. When the main executable file executed, it will execve another 2 executable file and using pipe to communicate with them. Main executable = [Request Parser] Other 2 executable = [Request Handler] Request handling procedure: 1: Th

Re: "decryption failed or bad record mac"

2005-05-08 Thread Tan Eng Ten
I'm no expert either, but could u show some code snippets on how u handle threads and these 2 very important structures -- SSL and SSL_CTX. I suspect that your threads might be re-initializing SSL_CTX. And when that happens under heavy load, the problem you described might occur. dan trainor wr

encryption / decryption not the same debug / release

2005-05-08 Thread Mike Gagnon
Hi list, I'm zeroing in on my problem. Encryption / decryption WORKS in DEBUG in the Visual C++ IDE BUT NOT when run from windows explorer. Also doesn't work at all in release mode. I tried turning off optimization and that didn't help. Any ideas / suggestions? Thanks! Mike // This email is

RSA Encryption/Decryption.

2005-05-08 Thread Layla
Hi all,   I'm trying to develop a C++ application to encrypt and decrypt data using RSA public key cryptography scheme. I have generated the public/private keys using OpenSSL command line tool. The following C++ code should read a public key, encrypt data, read private key and decrypt the data: **