@@ -178,72 +178,103 @@ public class unitytls_interface_struct
178
178
public readonly UInt64 UNITYTLS_INVALID_HANDLE ;
179
179
public readonly unitytls_tlsctx_protocolrange UNITYTLS_TLSCTX_PROTOCOLRANGE_DEFAULT ;
180
180
181
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
181
182
public delegate unitytls_errorstate unitytls_errorstate_create_t ( ) ;
182
183
public unitytls_errorstate_create_t unitytls_errorstate_create ;
184
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
183
185
public delegate void unitytls_errorstate_raise_error_t ( unitytls_errorstate * errorState , unitytls_error_code errorCode ) ;
184
186
public unitytls_errorstate_raise_error_t unitytls_errorstate_raise_error ;
185
187
188
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
186
189
public delegate unitytls_key_ref unitytls_key_get_ref_t ( unitytls_key * key , unitytls_errorstate * errorState ) ;
187
190
public unitytls_key_get_ref_t unitytls_key_get_ref ;
191
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
188
192
public delegate unitytls_key * unitytls_key_parse_der_t ( UInt8 * buffer , size_t bufferLen , Int8 * password , size_t passwordLen , unitytls_errorstate * errorState ) ;
189
193
public unitytls_key_parse_der_t unitytls_key_parse_der ;
194
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
190
195
public delegate unitytls_key * unitytls_key_parse_pem_t ( Int8 * buffer , size_t bufferLen , Int8 * password , size_t passwordLen , unitytls_errorstate * errorState ) ;
191
196
public unitytls_key_parse_pem_t unitytls_key_parse_pem ;
197
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
192
198
public delegate void unitytls_key_free_t ( unitytls_key * key ) ;
193
199
public unitytls_key_free_t unitytls_key_free ;
194
200
201
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
195
202
public delegate size_t unitytls_x509_export_der_t ( unitytls_x509_ref cert , UInt8 * buffer , size_t bufferLen , unitytls_errorstate * errorState ) ;
196
203
public unitytls_x509_export_der_t unitytls_x509_export_der ;
197
204
205
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
198
206
public delegate unitytls_x509list_ref unitytls_x509list_get_ref_t ( unitytls_x509list * list , unitytls_errorstate * errorState ) ;
199
207
public unitytls_x509list_get_ref_t unitytls_x509list_get_ref ;
208
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
200
209
public delegate unitytls_x509_ref unitytls_x509list_get_x509_t ( unitytls_x509list_ref list , size_t index , unitytls_errorstate * errorState ) ;
201
210
public unitytls_x509list_get_x509_t unitytls_x509list_get_x509 ;
211
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
202
212
public delegate unitytls_x509list * unitytls_x509list_create_t ( unitytls_errorstate * errorState ) ;
203
213
public unitytls_x509list_create_t unitytls_x509list_create ;
214
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
204
215
public delegate void unitytls_x509list_append_t ( unitytls_x509list * list , unitytls_x509_ref cert , unitytls_errorstate * errorState ) ;
205
216
public unitytls_x509list_append_t unitytls_x509list_append ;
217
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
206
218
public delegate void unitytls_x509list_append_der_t ( unitytls_x509list * list , UInt8 * buffer , size_t bufferLen , unitytls_errorstate * errorState ) ;
207
219
public unitytls_x509list_append_der_t unitytls_x509list_append_der ;
220
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
208
221
public delegate void unitytls_x509list_append_pem_t ( unitytls_x509list * list , Int8 * buffer , size_t bufferLen , unitytls_errorstate * errorState ) ;
209
222
public unitytls_x509list_append_der_t unitytls_x509list_append_pem ;
223
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
210
224
public delegate void unitytls_x509list_free_t ( unitytls_x509list * list ) ;
211
225
public unitytls_x509list_free_t unitytls_x509list_free ;
212
226
227
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
213
228
public delegate unitytls_x509verify_result unitytls_x509verify_default_ca_t ( unitytls_x509list_ref chain , Int8 * cn , size_t cnLen , unitytls_x509verify_callback cb , void * userData , unitytls_errorstate * errorState ) ;
214
229
public unitytls_x509verify_default_ca_t unitytls_x509verify_default_ca ;
230
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
215
231
public delegate unitytls_x509verify_result unitytls_x509verify_explicit_ca_t ( unitytls_x509list_ref chain , unitytls_x509list_ref trustCA , Int8 * cn , size_t cnLen , unitytls_x509verify_callback cb , void * userData , unitytls_errorstate * errorState ) ;
216
232
public unitytls_x509verify_explicit_ca_t unitytls_x509verify_explicit_ca ;
217
233
234
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
218
235
public delegate unitytls_tlsctx * unitytls_tlsctx_create_server_t ( unitytls_tlsctx_protocolrange supportedProtocols , unitytls_tlsctx_callbacks callbacks , unitytls_x509list_ref certChain , unitytls_key_ref leafCertificateKey , unitytls_errorstate * errorState ) ;
219
236
public unitytls_tlsctx_create_server_t unitytls_tlsctx_create_server ;
237
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
220
238
public delegate unitytls_tlsctx * unitytls_tlsctx_create_client_t ( unitytls_tlsctx_protocolrange supportedProtocols , unitytls_tlsctx_callbacks callbacks , Int8 * cn , size_t cnLen , unitytls_errorstate * errorState ) ;
221
239
public unitytls_tlsctx_create_client_t unitytls_tlsctx_create_client ;
240
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
222
241
public delegate void unitytls_tlsctx_server_require_client_authentication_t ( unitytls_tlsctx * ctx , unitytls_x509list_ref clientAuthCAList , unitytls_errorstate * errorState ) ;
223
242
public unitytls_tlsctx_server_require_client_authentication_t unitytls_tlsctx_server_require_client_authentication ;
243
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
224
244
public delegate void unitytls_tlsctx_set_certificate_callback_t ( unitytls_tlsctx * ctx , unitytls_tlsctx_certificate_callback cb , void * userData , unitytls_errorstate * errorState ) ;
225
245
public unitytls_tlsctx_set_certificate_callback_t unitytls_tlsctx_set_certificate_callback ;
246
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
226
247
public delegate void unitytls_tlsctx_set_trace_callback_t ( unitytls_tlsctx * ctx , unitytls_tlsctx_trace_callback cb , void * userData , unitytls_errorstate * errorState ) ;
227
248
public unitytls_tlsctx_set_trace_callback_t unitytls_tlsctx_set_trace_callback ;
249
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
228
250
public delegate void unitytls_tlsctx_set_x509verify_callback_t ( unitytls_tlsctx * ctx , unitytls_tlsctx_x509verify_callback cb , void * userData , unitytls_errorstate * errorState ) ;
229
251
public unitytls_tlsctx_set_x509verify_callback_t unitytls_tlsctx_set_x509verify_callback ;
252
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
230
253
public delegate void unitytls_tlsctx_set_supported_ciphersuites_t ( unitytls_tlsctx * ctx , unitytls_ciphersuite * supportedCiphersuites , size_t supportedCiphersuitesLen , unitytls_errorstate * errorState ) ;
231
254
public unitytls_tlsctx_set_supported_ciphersuites_t unitytls_tlsctx_set_supported_ciphersuites ;
255
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
232
256
public delegate unitytls_ciphersuite unitytls_tlsctx_get_ciphersuite_t ( unitytls_tlsctx * ctx , unitytls_errorstate * errorState ) ;
233
257
public unitytls_tlsctx_get_ciphersuite_t unitytls_tlsctx_get_ciphersuite ;
258
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
234
259
public delegate unitytls_protocol unitytls_tlsctx_get_protocol_t ( unitytls_tlsctx * ctx , unitytls_errorstate * errorState ) ;
235
260
public unitytls_tlsctx_get_protocol_t unitytls_tlsctx_get_protocol ;
261
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
236
262
public delegate unitytls_x509verify_result unitytls_tlsctx_process_handshake_t ( unitytls_tlsctx * ctx , unitytls_errorstate * errorState ) ;
237
263
public unitytls_tlsctx_process_handshake_t unitytls_tlsctx_process_handshake ;
264
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
238
265
public delegate size_t unitytls_tlsctx_read_t ( unitytls_tlsctx * ctx , UInt8 * buffer , size_t bufferLen , unitytls_errorstate * errorState ) ;
239
266
public unitytls_tlsctx_read_t unitytls_tlsctx_read ;
267
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
240
268
public delegate size_t unitytls_tlsctx_write_t ( unitytls_tlsctx * ctx , UInt8 * data , size_t bufferLen , unitytls_errorstate * errorState ) ;
241
269
public unitytls_tlsctx_write_t unitytls_tlsctx_write ;
270
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
242
271
public delegate void unitytls_tlsctx_notify_close_t ( unitytls_tlsctx * ctx , unitytls_errorstate * errorState ) ;
243
272
public unitytls_tlsctx_notify_close_t unitytls_tlsctx_notify_close ;
273
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
244
274
public delegate void unitytls_tlsctx_free_t ( unitytls_tlsctx * ctx ) ;
245
275
public unitytls_tlsctx_free_t unitytls_tlsctx_free ;
246
276
277
+ [ UnmanagedFunctionPointer ( CallingConvention . Cdecl ) ]
247
278
public delegate void unitytls_random_generate_bytes_t ( UInt8 * buffer , size_t bufferLen , unitytls_errorstate * errorState ) ;
248
279
public unitytls_random_generate_bytes_t unitytls_random_generate_bytes ;
249
280
}
0 commit comments