> guys: > > the man page for "SSL_CTX_free" says: > SSL_CTX_free() decrements the reference count of ctx, and removes > the SSL_CTX object pointed to by ctx and frees up the allocated > memory if the the reference count has reached 0. > i have a couple of questions regarding this: > > 1. what make the reference count of ctx increase/decrease?
Any time another object is created that references it. > 2. if i call SSL_CTX_free, does that mean all ssl connections > based on this ctx will be closed automatically? or i should close > all ssl connections based on a ctx before i call SSL_CTX_free? Calling SSL_CTX_free is perfectly safe if you have a reference to the context and do not plan to use it further. Existing connections will not be harmed because they have their own references to the context, and the context will not be freed until its reference count reaches zero. DS ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List [email protected] Automated List Manager [EMAIL PROTECTED]
