Re: [EXTERNAL] Re: Need Help for Code Changes to Upgrade from OpenSSL 1.0.2 to 3.0

2021-10-28 Thread Matt Caswell
On 28/10/2021 05:50, Paramashivaiah, Sunil wrote: ssl->session SSL_get0_session(): https://www.openssl.org/docs/man3.0/man3/SSL_get_session.html Although beware: TLSv1.3 changes how sessions are established - they are created post-handshake. Read the NOTES section on the man page

RE: [EXTERNAL] Re: Need Help for Code Changes to Upgrade from OpenSSL 1.0.2 to 3.0

2021-10-27 Thread Paramashivaiah, Sunil
Hi Matt, Thanks for the help. I need get SSL members (ssl->session , ssl->ctx , ssl->references) and set SSL member (ssl->tlsext_ocsp_resp). Please let me know the Openssl 3.0 API's for the same. Thanks and Regards, Sunil -Original Message- From: Matt Caswell

Re: [EXTERNAL] Re: Need Help for Code Changes to Upgrade from OpenSSL 1.0.2 to 3.0

2021-10-25 Thread Matt Caswell
Caveat: I've not tested or compiled the following...but something like this: if (EVP_PKEY_is_a(evpKey, "RSA)) { keysz = EVP_PKEY_get_bits(evpKey) / 8; /* some code */ } else if (EVP_PKEY_is_a(evpKey, "EC")) { char *name; size_t namesize; if

RE: [EXTERNAL] Re: Need Help for Code Changes to Upgrade from OpenSSL 1.0.2 to 3.0

2021-10-25 Thread Paramashivaiah, Sunil
Hi Matt, Thanks for the reply. I need to replace the below code. int keysz,ecGrpId; switch(evpKey->type) { case NID_rsaEncryption: { if(evpKey->pkey.rsa) {

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

2021-10-25 Thread Matt Caswell
On 25/10/2021 05:45, Paramashivaiah, Sunil wrote: Hi All,     I need get APIs for accessing the members of  EVP_PKEY. Please suggest APIs to get following members of EVP_PKEY evpkey->type , evpkey->pkey.rsa , pubKey->pkey.ec->group. EVP_PKEY_get_id() will get you the `evpkey->type`

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

2021-10-21 Thread Floodeenjr, Thomas
Here are my notes from when we did this project a couple of years ago. It does not match your code exactly, but maybe it helps. -Tom ### ALL ### Follow the porting instructions here: https://wiki.tizen.org/Security/Tizen_5.X_Migration_from_OpenSSL_1.0.2_to_OpenSSL_1.1.1_guide Especially the

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

2021-10-21 Thread Matt Caswell
On 21/10/2021 09:48, Paramashivaiah, Sunil wrote: 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;* ** *