mirror of
https://github.com/FreeRDP/FreeRDP.git
synced 2024-11-27 20:04:11 +08:00
71 lines
2.5 KiB
C
71 lines
2.5 KiB
C
/**
|
|
* FreeRDP: A Remote Desktop Protocol Implementation
|
|
* Connection Sequence
|
|
*
|
|
* Copyright 2011 Marc-Andre Moreau <marcandre.moreau@gmail.com>
|
|
*
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
* you may not use this file except in compliance with the License.
|
|
* You may obtain a copy of the License at
|
|
*
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
*
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
* See the License for the specific language governing permissions and
|
|
* limitations under the License.
|
|
*/
|
|
|
|
#ifndef __CONNECTION_H
|
|
#define __CONNECTION_H
|
|
|
|
#include "rdp.h"
|
|
#include "tpkt.h"
|
|
#include "tpdu.h"
|
|
#include "nego.h"
|
|
#include "mcs.h"
|
|
#include "activation.h"
|
|
|
|
#include <freerdp/settings.h>
|
|
|
|
enum CONNECTION_STATE
|
|
{
|
|
CONNECTION_STATE_INITIAL = 0,
|
|
CONNECTION_STATE_NEGO = 1,
|
|
CONNECTION_STATE_MCS_CONNECT = 2,
|
|
CONNECTION_STATE_MCS_ERECT_DOMAIN = 3,
|
|
CONNECTION_STATE_MCS_ATTACH_USER = 4,
|
|
CONNECTION_STATE_MCS_CHANNEL_JOIN = 5,
|
|
CONNECTION_STATE_RDP_SECURITY_COMMENCEMENT = 6,
|
|
CONNECTION_STATE_SECURE_SETTINGS_EXCHANGE = 7,
|
|
CONNECTION_STATE_CONNECT_TIME_AUTO_DETECT = 8,
|
|
CONNECTION_STATE_LICENSING = 9,
|
|
CONNECTION_STATE_MULTITRANSPORT_BOOTSTRAPPING = 10,
|
|
CONNECTION_STATE_CAPABILITIES_EXCHANGE = 11,
|
|
CONNECTION_STATE_FINALIZATION = 12,
|
|
CONNECTION_STATE_ACTIVE = 13
|
|
};
|
|
|
|
BOOL rdp_client_connect(rdpRdp* rdp);
|
|
BOOL rdp_client_redirect(rdpRdp* rdp);
|
|
BOOL rdp_client_connect_mcs_connect_response(rdpRdp* rdp, wStream* s);
|
|
BOOL rdp_client_connect_mcs_attach_user_confirm(rdpRdp* rdp, wStream* s);
|
|
BOOL rdp_client_connect_mcs_channel_join_confirm(rdpRdp* rdp, wStream* s);
|
|
int rdp_client_connect_license(rdpRdp* rdp, wStream* s);
|
|
int rdp_client_connect_demand_active(rdpRdp* rdp, wStream* s);
|
|
int rdp_client_connect_finalize(rdpRdp* rdp);
|
|
int rdp_client_transition_to_state(rdpRdp* rdp, int state);
|
|
|
|
BOOL rdp_server_accept_nego(rdpRdp* rdp, wStream* s);
|
|
BOOL rdp_server_accept_mcs_connect_initial(rdpRdp* rdp, wStream* s);
|
|
BOOL rdp_server_accept_mcs_erect_domain_request(rdpRdp* rdp, wStream* s);
|
|
BOOL rdp_server_accept_mcs_attach_user_request(rdpRdp* rdp, wStream* s);
|
|
BOOL rdp_server_accept_mcs_channel_join_request(rdpRdp* rdp, wStream* s);
|
|
BOOL rdp_server_accept_confirm_active(rdpRdp* rdp, wStream* s);
|
|
BOOL rdp_server_establish_keys(rdpRdp* rdp, wStream* s);
|
|
BOOL rdp_server_reactivate(rdpRdp* rdp);
|
|
int rdp_server_transition_to_state(rdpRdp* rdp, int state);
|
|
|
|
#endif /* __CONNECTION_H */
|