146 {
147 if (certificate == nullptr) {
149 }
153 X509_free(certificate);
154 return x509_type;
155 }
160 X509_free(certificate);
162 }
166 reinterpret_cast<intptr_t>(certificate));
168 X509_free(certificate);
169 return status;
170 }
171 const intptr_t approximate_size_of_certificate =
173 ASSERT(approximate_size_of_certificate > 0);
175 approximate_size_of_certificate,
178}
static constexpr const char * kIOLibURL
static Dart_Handle NewString(const char *str)
static Dart_Handle GetDartType(const char *library_url, const char *class_name)
static constexpr int kX509NativeFieldIndex
static intptr_t EstimateX509Size(X509 *certificate)
static void ReleaseCertificate(void *isolate_data, void *context_pointer)
DART_EXPORT bool Dart_IsInstance(Dart_Handle object)
DART_EXPORT Dart_FinalizableHandle Dart_NewFinalizableHandle(Dart_Handle object, void *peer, intptr_t external_allocation_size, Dart_HandleFinalizer callback)
DART_EXPORT Dart_Handle Dart_SetNativeInstanceField(Dart_Handle obj, int index, intptr_t value)
DART_EXPORT Dart_Handle Dart_Null()
DART_EXPORT Dart_Handle Dart_New(Dart_Handle type, Dart_Handle constructor_name, int number_of_arguments, Dart_Handle *arguments)