internal static void SSLStreamInitialize( SafeSslHandle sslHandle, bool isServer, SSLReadCallback streamRead, SSLWriteCallback streamWrite, int appBufferSize) { int ret = SSLStreamInitializeImpl(sslHandle, isServer, streamRead, streamWrite, appBufferSize); if (ret != SUCCESS) { throw new SslException(); } }
private static extern int SSLStreamInitializeImpl( SafeSslHandle sslHandle, [MarshalAs(UnmanagedType.U1)] bool isServer, SSLReadCallback streamRead, SSLWriteCallback streamWrite, int appBufferSize);