RE: Error accepting connections

2006-11-07 Thread Dinh, Thao V CIV B32-Branch
Thank you very much. You are great help. I am good to go now. Thank again -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marek Marcola Sent: Monday, November 06, 2006 13:26 To: openssl-users@openssl.org Subject: RE: Error accepting connections Hello, >

RE: Error accepting connections

2006-11-06 Thread Dinh, Thao V CIV B32-Branch
Thank you for your help. I have a openssl ssl socket is shared by two threads, one and only thread should use this socket at any time. Then on top of tls_init(), do I have to put Mutex around my socket ??? Does tls_init() use to protect openssl internal strucure only ?? Thank You TD -Origin

RE: Error accepting connections

2006-11-03 Thread Dinh, Thao V CIV B32-Branch
--- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Dinh, Thao V CIV B32-Branch Sent: Friday, November 03, 2006 7:45 To: openssl-users@openssl.org Subject: RE: Error accepting connections Prabbu/Marek/Chong Thank for your help. I am very newbie for openssl too. Suppose I have a &

RE: Error accepting connections

2006-11-03 Thread Dinh, Thao V CIV B32-Branch
Marek Thank You very, very much. Could you please check given Website again. I can not get there from my company. Maybe the firewall. I need these examples badly. Openssll do not have many materials on Multithread. Thank You -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL P

RE: Error accepting connections

2006-11-03 Thread Dinh, Thao V CIV B32-Branch
Prabbu/Marek/Chong Thank for your help. I am very newbie for openssl too. Suppose I have a "Singleton" class below. This method is shared by multithreads. This class returns a one and only one ctx ( One Context which shares by multithreads). For me, the only Mutex Lock I need is around line 8

RE: Error accepting connections

2006-11-02 Thread Dinh, Thao V CIV B32-Branch
Prabbu/Marek/Chong I have a SSL server application. It creates threads for each client connection. My server call accept(). After the sock = accept() return, I put SSL on sock, spin-off a thread for that client. All socks share the same 'ctx' in the server. How do I lock SSL object 'ctx' properly

Non-blocking Soccket openssl connection fail

2006-10-30 Thread Dinh, Thao V CIV B32-Branch
Title: Non-blocking Soccket openssl connection fail Please help. I am writing Client-Server program. My server is listened blocking socket, waiting for client to connect. First,  my client is blocking socket. Everything looks good. Client is happy with Server's certificate. All communicati

RE: RE: Multithreading problem

2006-10-23 Thread Dinh, Thao V CIV B32-Branch
I try to develop a client-server ( not WEB Base) using openssl. What the certificates do I need to load for my client and my server?. Assume that I am a ROOT CA, having root certificate and root private certificate. Please help. I think that my client needs client cert and private key. My server n

RE: Multithreading problem

2006-10-20 Thread Dinh, Thao V CIV B32-Branch
I am very, very new to openssl. There is a good example (Example 5-16, Network Security with Openssl book)) for using nonblocking openssl. It is easy to understand. It uses one thread to handle 2 nonblocking socket. You may have to modify it to handle multithread. At least, you have example to foll