You are not logged in.
Pages: 1
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
Offline
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
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
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
Hey ab,
i hope this is enough for your - if not, let me know:
Offline
Offline
thank you very, very much!
Seems to work
Offline
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
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
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
Hi ab,
here is the additional function as gists:
https://gist.github.com/Moe-source/c92e … afffa90175
Thanks again!
Offline
Offline
Pages: 1