Sorry, I do not have the idea what you mean?
What is the OpenSSL memory handler?

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Goetz Babin-Ebell
Sent: Tuesday, May 10, 2005 3:18 AM
To: openssl-users@openssl.org
Subject: Re: How to pass SSL connection/object from one process to another?

lewislyk wrote:
> I don't know, it seems can't, because the SSL object is created by
SSL_new()
> which dynamic allocated memory for the object,
> 
> If you view the file ssl.h, you will found the SSL structure definition,
it
> is complex as it containing many object pointer, so I think it is very
hard
> to manually allocate shared memory to create the SSL object.

But you can overwrite the OpenSSL memory handler.
Create an new one that has an (thread specific) flag
to indicate if the data should reside in the shared memory.
Now every time you do SSL data, you set the flag and
the SSL data will be allocated in the shared memory...

Bye

Goetz

-- 
DMCA: The greed of the few outweighs the freedom of the many

______________________________________________________________________
OpenSSL Project                                 http://www.openssl.org
User Support Mailing List                    openssl-users@openssl.org
Automated List Manager                           [EMAIL PROTECTED]

Reply via email to