Hi, I am using the following functions in my app : PEM_read_bio_X509 PEM_read_bio_PrivateKey Later on I am using the return values of those functions as part of the SSL_CTX context using the functions : SSL_CTX_use_certificate SSL_CTX_use_PrivateKey My query is will calling SSL_CTX_free() at the end, free up the memory allocated by the 2 PEM routines above or should I take care of freeing that memory separately, and if so, how ? Another query I had is, is there any way in the SSLv3/TLSv1 protocol by which we can tell the peer to limit the record length to a certain value ? That is, according the RFC, the max record length could be 16348+1024+1024+5. So, a SSL client/server should allocate atleast that much for its read buffer as the sender could send any length within that limit. Is there any way in the protocol to tell the sender to limit the max record length for this connection ? Thanks, Rampi ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [EMAIL PROTECTED] Automated List Manager [EMAIL PROTECTED]