SslObject<T extends NativeType> class
abstract
Base class for all OpenSSL objects that hold a native pointer and require automatic memory management via NativeFinalizer.
- Implemented types
- Implementers
Properties
Methods
-
attachFinalizer(
NativeFinalizer finalizer, Pointer< Void> token, {int? externalSize}) → void -
Attaches this Dart object to the native pointer so that
finalizercallsfreeFuncon_ptrwhen this object is GC'd. -
dispose(
) → void -
Manually dispose the native object.
Note: The Finalizer must support detachment if we want to do this safely,
but NativeFinalizer automatically handles detached objects if we passed
detach: this. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
checkCode(
OpenSslFfi lib, int result, {String msg = 'Operation failed'}) → void - Helper to check OpenSSL result codes. Standard OpenSSL convention: 1 is success, 0 is failure (e.g. signature verify), <0 is error.