Re: Reg: Freeing of SSL_CTX object through SSL_free Function

2022-04-13 Thread Matt Caswell
On 13/04/2022 11:55, Ram Chandra via openssl-users wrote: I am using OpenSSL 1.1.1k Version, From that I see following are done in OpenSSL code, pls correct me if I am wrong. Inside SSL_new: SSL *SSL_new(SSL_CTX *ctx) {     SSL *s;      ...      ...      s = OPENSSL_zalloc(size

Reg: Freeing of SSL_CTX object through SSL_free Function

2022-04-13 Thread Ram Chandra via openssl-users
I am using OpenSSL 1.1.1k Version, From that I see following are done in OpenSSL code, pls correct me if I am wrong. Inside SSL_new: SSL *SSL_new(SSL_CTX *ctx){    SSL *s;     ...     ...     s = OPENSSL_zalloc(sizeof(*s));               SSL_CTX_up_ref(ctx);      s->ctx = ctx;