isProviderAvailable method
Whether the name provider is available for use.
Unlike loadProvider, it keeps no reference to the provider.
Implementation
bool isProviderAvailable(String name) {
final namePtr = name.toNativeUtf8(allocator: calloc).cast<Char>();
try {
OpenSslException.clearError(bindings);
final available = bindings.OSSL_PROVIDER_available(nullptr, namePtr) == 1;
OpenSslException.clearError(bindings);
return available;
} finally {
calloc.free(namePtr);
}
}