FreeRDP
TestSchannel.c File Reference
#include <winpr/crt.h>
#include <winpr/sspi.h>
#include <winpr/file.h>
#include <winpr/pipe.h>
#include <winpr/path.h>
#include <winpr/tchar.h>
#include <winpr/print.h>
#include <winpr/synch.h>
#include <winpr/thread.h>
#include <winpr/crypto.h>
#include <winpr/wlog.h>
#include <winpr/schannel.h>

Functions

static int schannel_send (PSecurityFunctionTable table, HANDLE hPipe, PCtxtHandle phContext, BYTE *buffer, UINT32 length)
 
static int schannel_recv (PSecurityFunctionTable table, HANDLE hPipe, PCtxtHandle phContext)
 
static DWORD WINAPI schannel_test_server_thread (LPVOID arg)
 
static int dump_test_certificate_files (void)
 
int TestSchannel (int argc, char *argv[])
 

Variables

static BOOL g_ClientWait = FALSE
 
static BOOL g_ServerWait = FALSE
 
static HANDLE g_ClientReadPipe = NULL
 
static HANDLE g_ClientWritePipe = NULL
 
static HANDLE g_ServerReadPipe = NULL
 
static HANDLE g_ServerWritePipe = NULL
 
static const BYTE test_localhost_crt [1029]
 
static const BYTE test_localhost_key [1704]
 
static const BYTE test_DummyMessage [64]
 
static const BYTE test_LastDummyMessage [64]
 

Function Documentation

◆ dump_test_certificate_files()

static int dump_test_certificate_files ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ schannel_recv()

static int schannel_recv ( PSecurityFunctionTable  table,
HANDLE  hPipe,
PCtxtHandle  phContext 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ schannel_send()

static int schannel_send ( PSecurityFunctionTable  table,
HANDLE  hPipe,
PCtxtHandle  phContext,
BYTE buffer,
UINT32  length 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ schannel_test_server_thread()

static DWORD WINAPI schannel_test_server_thread ( LPVOID  arg)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ TestSchannel()

int TestSchannel ( int  argc,
char *  argv[] 
)

SupportedAlgs: 15 0x660E 0x6610 0x6801 0x6603 0x6601 0x8003 0x8004 0x800C 0x800D 0x800E 0x2400 0xAA02 0xAE06 0x2200 0x2203

Here is the call graph for this function:

Variable Documentation

◆ g_ClientReadPipe

HANDLE g_ClientReadPipe = NULL
static

◆ g_ClientWait

BOOL g_ClientWait = FALSE
static

◆ g_ClientWritePipe

HANDLE g_ClientWritePipe = NULL
static

◆ g_ServerReadPipe

HANDLE g_ServerReadPipe = NULL
static

◆ g_ServerWait

BOOL g_ServerWait = FALSE
static

◆ g_ServerWritePipe

HANDLE g_ServerWritePipe = NULL
static

◆ test_DummyMessage

const BYTE test_DummyMessage[64]
static
Initial value:
= {
0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA, 0xAA,
0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB, 0xBB,
0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC, 0xCC,
0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD, 0xDD
}

◆ test_LastDummyMessage

const BYTE test_LastDummyMessage[64]
static
Initial value:
= {
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF,
0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00
}

◆ test_localhost_crt

const BYTE test_localhost_crt[1029]
static

◆ test_localhost_key

const BYTE test_localhost_key[1704]
static