Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Baulig <mabaul@microsoft.com>2019-02-25 22:15:17 +0300
committerAlexander Köplinger <alex.koeplinger@outlook.com>2019-02-25 22:15:17 +0300
commit7f3a127b6d335f6f50d629a7904c6aa9386e0afb (patch)
treea82403fce2bc6c9a57ffa5a1a08b2c0cd6760a28 /mcs/class/System
parentfc171a192ae902db7a39d44b96c7ca0ef2d8e2ea (diff)
Remove unused (and broken) mono_btls_ssl_ctx_get_servername(). (#13184)
Diffstat (limited to 'mcs/class/System')
-rw-r--r--mcs/class/System/Mono.Btls/MonoBtlsSslCtx.cs12
1 files changed, 0 insertions, 12 deletions
diff --git a/mcs/class/System/Mono.Btls/MonoBtlsSslCtx.cs b/mcs/class/System/Mono.Btls/MonoBtlsSslCtx.cs
index ad3a86ff0a3..124370679ae 100644
--- a/mcs/class/System/Mono.Btls/MonoBtlsSslCtx.cs
+++ b/mcs/class/System/Mono.Btls/MonoBtlsSslCtx.cs
@@ -93,9 +93,6 @@ namespace Mono.Btls
[DllImport (BTLS_DYLIB)]
extern static void mono_btls_ssl_ctx_set_server_name_callback (IntPtr handle, IntPtr func);
- [DllImport (BTLS_DYLIB)]
- extern static IntPtr mono_btls_ssl_ctx_get_servername (IntPtr handle);
-
delegate int NativeVerifyFunc (IntPtr instance, int preverify_ok, IntPtr ctx);
delegate int NativeSelectFunc (IntPtr instance, int count, IntPtr sizes, IntPtr data);
delegate int NativeServerNameFunc (IntPtr instance);
@@ -333,15 +330,6 @@ namespace Mono.Btls
}
}
- public string GetServerName ()
- {
- CheckThrow ();
- var ptr = mono_btls_ssl_ctx_get_servername (Handle.DangerousGetHandle ());
- if (ptr == IntPtr.Zero)
- return null;
- return Marshal.PtrToStringAnsi (ptr);
- }
-
protected override void Close ()
{
if (store != null) {