Skip to content

Commit b122ffb

Browse files
authored
Merge pull request #802 from Unity-Technologies/unity-master-unitytls
Updated unitytls_interface_struct to newest version
2 parents e01ef6d + 3ea4ed4 commit b122ffb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

mcs/class/System/Mono.UnityTls/UnityTls.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ public struct unitytls_tlsctx_callbacks
168168
public class unitytls_interface_struct
169169
{
170170
public readonly UInt64 UNITYTLS_INVALID_HANDLE;
171+
public readonly unitytls_tlsctx_protocolrange UNITYTLS_TLSCTX_PROTOCOLRANGE_DEFAULT;
171172

172173
public delegate unitytls_errorstate unitytls_errorstate_create_t();
173174
public unitytls_errorstate_create_t unitytls_errorstate_create;
@@ -176,7 +177,9 @@ public class unitytls_interface_struct
176177

177178
public delegate unitytls_key_ref unitytls_key_get_ref_t(unitytls_key* key, unitytls_errorstate* errorState);
178179
public unitytls_key_get_ref_t unitytls_key_get_ref;
179-
public delegate unitytls_key* unitytls_key_parse_der_t(UInt8* buffer, size_t bufferLen, UInt8* password, size_t passwordLen, unitytls_errorstate* errorState);
180+
public delegate unitytls_key* unitytls_key_parse_pem_t(Int8* buffer, size_t bufferLen, Int8* password, size_t passwordLen, unitytls_errorstate* errorState);
181+
public unitytls_key_parse_der_t unitytls_key_parse_pem;
182+
public delegate unitytls_key* unitytls_key_parse_der_t(UInt8* buffer, size_t bufferLen, Int8* password, size_t passwordLen, unitytls_errorstate* errorState);
180183
public unitytls_key_parse_der_t unitytls_key_parse_der;
181184
public delegate void unitytls_key_free_t(unitytls_key* key);
182185
public unitytls_key_free_t unitytls_key_free;
@@ -194,6 +197,8 @@ public class unitytls_interface_struct
194197
public unitytls_x509list_append_t unitytls_x509list_append;
195198
public delegate void unitytls_x509list_append_der_t(unitytls_x509list* list, UInt8* buffer, size_t bufferLen, unitytls_errorstate* errorState);
196199
public unitytls_x509list_append_der_t unitytls_x509list_append_der;
200+
public delegate void unitytls_x509list_append_pem_t(unitytls_x509list* list, Int8* buffer, size_t bufferLen, unitytls_errorstate* errorState);
201+
public unitytls_x509list_append_der_t unitytls_x509list_append_pem;
197202
public delegate void unitytls_x509list_free_t(unitytls_x509list* list);
198203
public unitytls_x509list_free_t unitytls_x509list_free;
199204

0 commit comments

Comments
 (0)