mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
prototypes
This commit is contained in:
@ -45,7 +45,7 @@ sudo make install
|
||||
```
|
||||
cd wrapper/CSharp
|
||||
|
||||
msc wolfSSL_CSharp/wolfSSL.cs wolfSSL_CSharp/X509.cs \
|
||||
mcs wolfSSL_CSharp/wolfSSL.cs wolfSSL_CSharp/X509.cs \
|
||||
wolfSSL-TLS-Server/wolfSSL-TLS-Server.cs
|
||||
```
|
||||
|
||||
|
@ -290,6 +290,17 @@ namespace wolfSSL.CSharp {
|
||||
[DllImport(wolfssl_dll, CallingConvention = CallingConvention.Cdecl)]
|
||||
private extern static int wolfSSL_CTX_use_psk_identity_hint(IntPtr ctx, StringBuilder identity);
|
||||
|
||||
/********************************
|
||||
* SNI
|
||||
*/
|
||||
[UnmanagedFunctionPointer(CallingConvention.Cdecl)]
|
||||
public delegate int sni_delegate(IntPtr ssl, IntPtr ret, IntPtr exArg);
|
||||
[DllImport(wolfssl_dll, CallingConvention = CallingConvention.Cdecl)]
|
||||
private extern static void wolfSSL_CTX_set_servername_callback(IntPtr ctx, sni_delegate sni_cb);
|
||||
[DllImport(wolfssl_dll, CallingConvention = CallingConvention.Cdecl)]
|
||||
private extern static void wolfSSL_CTX_set_tlsext_servername_callback(IntPtr ctx, sni_delegate sni_cb);
|
||||
[DllImport(wolfssl_dll, CallingConvention = CallingConvention.Cdecl)]
|
||||
private extern static void wolfSSL_CTX_set_servername_arg(IntPtr ctx, IntPtr arg);
|
||||
|
||||
/********************************
|
||||
* SSL Structure
|
||||
|
Reference in New Issue
Block a user