1 (edited by davidg 2025-02-19 14:51:42)

Topic: OpenSSL compatibility - SSL_copy_session_id

I've been having a go at getting C-Kermit (specifically the Windows and OS/2 port of it, Kermit 95) to build with WolfSSL instead of OpenSSL.

And its now getting far enough through the build to have only one unresolved external symbol at the link stage - SSL_copy_session_id. It looks like WolfSSLs OpenSSL compatibility layer doesn't implement this function at all. Does anyone know of an equivalent API in WolfSSL?

The particular function is only called in one place, in C-Kermits FTP client: https://github.com/davidrg/ckwin/blob/m … p.c#L13756

it appears to be copying some details from the main FTP connection to new data connections though I'm not sure why (I'm *far* from an OpenSSL expert) - perhaps its some kind of optimization that could just be disabled when building with WolfSSL?

Share

Re: OpenSSL compatibility - SSL_copy_session_id

Hi David,

Welcome to the wolfSSL Forums! Sounds like a very interesting project!

We do support SSL_set_session and SSL_get_session, and a quick look at the OpenSSL code shows that is the buik of the work being done in SSL_copy_session_id.

You could give it a shot at implementing the compatibility API, or if you'd like, you can email us at support@wolfssl.com to open a feature request.

Thanks,
Eric - wolfSSL Support