Esempio n. 1
0
        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();
            }
        }
Esempio n. 2
0
 private static extern int SSLStreamInitializeImpl(
     SafeSslHandle sslHandle,
     [MarshalAs(UnmanagedType.U1)] bool isServer,
     SSLReadCallback streamRead,
     SSLWriteCallback streamWrite,
     int appBufferSize);