Need Help for Code Changes to Upgrade from OpenSSL 1.0.2 to 3.0

Paramashivaiah, Sunil Sunil.Paramashivaiah at rbbn.com
Thu Oct 21 08:48:55 UTC 2021


Hi All,
         Please let me know how I can replace the below 1.0.2 code to 3.0

    SSL_SESSION data;
    SSL_SESSION *ret=NULL;

    data.ssl_version = sessVersion;
    data.session_id_length= sessIdLen;

    memcpy(data.session_id, sessId,  sessIdLen);
    CRYPTO_r_lock(CRYPTO_LOCK_SSL_CTX);

    ret= (SSL_SESSION *)lh_retrieve((_LHASH *)sslCtx->sessions, &data);

    CRYPTO_r_unlock(CRYPTO_LOCK_SSL_CTX);

Thanks and Regards,
Sunil

Notice: This e-mail together with any attachments may contain information of Ribbon Communications Inc. and its Affiliates that is confidential and/or proprietary for the sole use of the intended recipient. Any review, disclosure, reliance or distribution by others or forwarding without express permission is strictly prohibited. If you are not the intended recipient, please notify the sender immediately and then delete all copies, including any attachments.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mta.openssl.org/pipermail/openssl-users/attachments/20211021/1e21e699/attachment.html>


More information about the openssl-users mailing list