On 18/10/2019 11:49, Nagalakshmi V J wrote: > Now the issue is SSL_session structure is also having accessor APIs > which I am not aware of. So I need to get the APIs for accessing the > master_key_length,etc.. given in the above code. Those are not listed > in the openssl link referred. On this page look a the various functions beginning with "SSL_SESSION_" in the name: https://www.openssl.org/docs/man1.1.1/man3/ >From the code sample you gave you are probably mostly interested in the functions on this page: https://www.openssl.org/docs/man1.1.1/man3/SSL_SESSION_get_master_key.html Matt