#1 2025-05-02 20:36:29

Mo0211
Member
Registered: 2018-12-30
Posts: 37

httpget with openssl 3.5 not working

Hello guys,

is mormot 2.2 with openssl 3.5 compatible?
I thought that mormot works with every openssl version or is this not correct?

When i run a httpget with a new compiled openssl-version 3.5 then the response is empty.

Thanks for a quick information if i dismissed any information regarding this topic smile

Offline

#2 2025-05-03 07:48:15

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,026
Website

Re: httpget with openssl 3.5 not working

mORMot 2.3 / trunk should work.
But perhaps not mORMot 2.2, which is quite older than OpenSSL 3.5 for sure.

On my side, it works for instance on Win32 + Delphi XE2:
https://gist.github.com/synopse/268a82e … 3ef7c89fe3

Using mORMot 2.3.10884 2 May 2025 and OpenSSL 3.5.0 8 Apr 2025

Offline

#3 2025-05-03 08:12:49

Mo0211
Member
Registered: 2018-12-30
Posts: 37

Re: httpget with openssl 3.5 not working

thanks ab.
Maybe i need to update, because as i wrote i use an not current version (something like 2.2).
But i added a few functions to the openssl functionality.

are you able to also add them into the git?

For example those:


function EVP_bf_cbc(): PEVP_CIPHER; cdecl;
function OSSL_PROVIDER_load(libctx: POSSL_LIB_CTX; name: PAnsiChar): POSSL_PROVIDER; cdecl;
function EVP_CIPHER_CTX_set_key_length(x: PEVP_CIPHER_CTX;keylen: integer): integer; cdecl;
function OpenSSL_version(typ: integer): PUtf8Char; cdecl;
RAND_seed: function(buf: PByte; num: integer): integer; cdecl;

i have the code available, but i'm sure it is not 100% direct usable by you.
What is the best way?

Offline

#4 2025-05-05 21:23:54

Mo0211
Member
Registered: 2018-12-30
Posts: 37

Re: httpget with openssl 3.5 not working

hello ab,

i merged the really small code parts in the new version of mormot2.3 now, but i don't have a public git to create a pull request.
Can i send you the changed file or upload it so you can have a quick check?

it is only this file: mormot.lib.openssl11.pas

Thank you for your help - really appreciated!

Offline

#5 2025-05-06 06:36:12

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,026
Website

Re: httpget with openssl 3.5 not working

You can just create a gist with the missing entries, and I will look into it.

Offline

#6 2025-05-08 13:03:43

Mo0211
Member
Registered: 2018-12-30
Posts: 37

Re: httpget with openssl 3.5 not working

Hey ab,

i hope this is enough for your - if not, let me know:

https://gist.github.com/Moe-source/0afa … e543b357aa

Offline

#7 2025-05-08 14:44:53

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,026
Website

Re: httpget with openssl 3.5 not working

Offline

#8 2025-05-08 18:02:47

Mo0211
Member
Registered: 2018-12-30
Posts: 37

Re: httpget with openssl 3.5 not working

thank you very, very much!
Seems to work smile

Offline

#9 2025-05-22 09:52:52

Mo0211
Member
Registered: 2018-12-30
Posts: 37

Re: httpget with openssl 3.5 not working

Hi Ab,

I found now the possibility to give a path for using the openssl libraries.
But in my Test on different machines there are some errors in the unit tests.
It seems for me they occur because the location for the legacy.dll is not available.
From Windows, this file is located via the environment variable "OPENSSL_MODULES".
Is there a possibility to set this also to the program directory?

thank you!

Last edited by Mo0211 (2025-05-22 12:34:38)

Offline

#10 2025-05-25 14:05:47

Mo0211
Member
Registered: 2018-12-30
Posts: 37

Re: httpget with openssl 3.5 not working

Hey ab,

I think I found the solution:

there is another helpfull function missing which is called: OSSL_PROVIDER_set_default_search_path

here is the gists for that change - would be great if you can also add it!

https://gist.github.com/Moe-source/25df … 376265ade2

Thanks alot!

Offline

#11 2025-05-26 08:15:26

Mo0211
Member
Registered: 2018-12-30
Posts: 37

Re: httpget with openssl 3.5 not working

hey ab,

I wanted to keep you updated!
This request is also linked to this PR:

https://github.com/synopse/mORMot2/pull/364

You can use whatever is easier for you.
But we recognized that this function would also be nice to have:

OSSL_PROVIDER_available

I will create another Gists for that change.

Thanks for your support (as always)!

Last edited by Mo0211 (2025-05-26 08:16:31)

Offline

#12 2025-05-26 10:29:56

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,026
Website

Re: httpget with openssl 3.5 not working

I have merged the PR.

Thanks for the feedback!

Offline

#13 2025-05-26 12:54:00

Mo0211
Member
Registered: 2018-12-30
Posts: 37

Re: httpget with openssl 3.5 not working

Hi ab,

here is the additional function as gists:

https://gist.github.com/Moe-source/c92e … afffa90175

Thanks again!

Offline

#14 2025-05-26 13:56:54

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 15,026
Website

Re: httpget with openssl 3.5 not working

Offline

Board footer

Powered by FluxBB