Table of Contents

TOpenSslCrypto Class

Dynamic bindings for OpenSSL 3.x libcrypto, loaded on demand. Only OpenSSL 3.x is supported; Load fails for older versions.

Syntax

Unit: Bcl.OpenSsl.Api

TOpenSslCrypto = class(TObject);

Methods

Name Description
ConsumeErrors Drains the OpenSSL error queue of the calling thread into a readable message ('' when the queue is empty).
Load Loads OpenSSL 3.x libcrypto, resolving all functions. Returns False (with the reason in LoadError) when the library is not available; safe to call several times and from several threads.
OpenSharedLibrary Opens a shared library by name, for companion bindings that load another part of OpenSSL (libssl) alongside this one.
Require Loads libcrypto and raises EOpenSslError when it is not available.
ResolveProc Resolves a function from an already opened library, recording in AMissing the first name that could not be found.