FreeRDP
Loading...
Searching...
No Matches
sf_encomsp.c
1
22#include <freerdp/config.h>
23
24#include <winpr/assert.h>
25
26#include "sf_encomsp.h"
27
28BOOL sf_peer_encomsp_init(testPeerContext* context)
29{
30 WINPR_ASSERT(context);
31
32 context->encomsp = encomsp_server_context_new(context->vcm);
33 if (!context->encomsp)
34 return FALSE;
35
36 context->encomsp->rdpcontext = &context->_p;
37
38 WINPR_ASSERT(context->encomsp->Start);
39 if (context->encomsp->Start(context->encomsp) != CHANNEL_RC_OK)
40 return FALSE;
41
42 return TRUE;
43}