Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Calling openssl from x64 application
(05-16-2019, 12:13 PM) Wrote:
 rc := EVP_PKEY_set1_RSA(@key, FRSA); <== Exception occurs here

Check to make sure that the EVP_PKEY_set1_RSA function pointer is not nil after calling LoadOpenSSLLibrary():

if not IdSSLOpenSSL.LoadOpenSSLLibrary then
   raise Exception.Create('LoadOpenSSLLibrary failed');

if not Assigned(EVP_PKEY_set1_RSA) then // <-- here
   raise Exception.Create('EVP_PKEY_set1_RSA is not available');


EVP_PKEY_set1_RSA() is not marked as a critical function being used by Indy's own purposes, so if it fails to load from the DLLs, Indy will simply ignore it.

if the EVP_PKEY_set1_RSA pointer is not nil, but you are still getting the AV, then something else is going on.


Messages In This Thread
Calling openssl from x64 application - by KeesVer - 05-16-2019, 12:13 PM
RE: Calling openssl from x64 application - by rlebeau - 05-18-2019, 07:02 AM

Forum Jump:

Users browsing this thread: 1 Guest(s)