You've already forked linux-packaging-mono
Imported Upstream version 5.8.0.22
Former-commit-id: df344e34b07851d296efb3e6604c8db42b6f7aa3
This commit is contained in:
parent
5f4a27cc8a
commit
7d05485754
@@ -130,6 +130,12 @@ namespace Mono.Btls
|
||||
[DllImport (BTLS_DYLIB)]
|
||||
extern static IntPtr mono_btls_ssl_get_server_name (IntPtr handle);
|
||||
|
||||
[DllImport (BTLS_DYLIB)]
|
||||
extern static void mono_btls_ssl_set_renegotiate_mode (IntPtr handle, int mode);
|
||||
|
||||
[DllImport (BTLS_DYLIB)]
|
||||
extern static int mono_btls_ssl_renegotiate_pending (IntPtr handle);
|
||||
|
||||
static BoringSslHandle Create_internal (MonoBtlsSslCtx ctx)
|
||||
{
|
||||
var handle = mono_btls_ssl_new (ctx.Handle.DangerousGetHandle ());
|
||||
@@ -448,6 +454,17 @@ namespace Mono.Btls
|
||||
if (!Handle.IsInvalid)
|
||||
mono_btls_ssl_close (Handle.DangerousGetHandle ());
|
||||
}
|
||||
|
||||
public void SetRenegotiateMode (MonoBtlsSslRenegotiateMode mode)
|
||||
{
|
||||
CheckThrow ();
|
||||
mono_btls_ssl_set_renegotiate_mode (Handle.DangerousGetHandle (), (int)mode);
|
||||
}
|
||||
|
||||
public bool RenegotiatePending ()
|
||||
{
|
||||
return mono_btls_ssl_renegotiate_pending (Handle.DangerousGetHandle ()) != 0;
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user