FreeRDP
|
#include <freerdp/config.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/un.h>
#include <pwd.h>
#include <unistd.h>
#include <errno.h>
#include <winpr/crt.h>
#include <winpr/synch.h>
#include <winpr/thread.h>
#include <winpr/stream.h>
#include "sshagent_main.h"
#include <freerdp/freerdp.h>
#include <freerdp/client/channels.h>
#include <freerdp/channels/log.h>
Macros | |
#define | TAG CHANNELS_TAG("sshagent.client") |
Functions | |
static int | connect_to_sshagent (const char *udspath) |
static DWORD WINAPI | sshagent_read_thread (LPVOID data) |
static UINT | sshagent_on_data_received (IWTSVirtualChannelCallback *pChannelCallback, wStream *data) |
static UINT | sshagent_on_close (IWTSVirtualChannelCallback *pChannelCallback) |
static UINT | sshagent_on_new_channel_connection (IWTSListenerCallback *pListenerCallback, IWTSVirtualChannel *pChannel, BYTE *Data, BOOL *pbAccept, IWTSVirtualChannelCallback **ppCallback) |
static UINT | sshagent_plugin_initialize (IWTSPlugin *pPlugin, IWTSVirtualChannelManager *pChannelMgr) |
static UINT | sshagent_plugin_terminated (IWTSPlugin *pPlugin) |
if (!sshagent) | |
Variables | |
SSHAGENT_PLUGIN * | sshagent |
return | status |
#define TAG CHANNELS_TAG("sshagent.client") |
FreeRDP: A Remote Desktop Protocol Implementation SSH Agent Virtual Channel Extension
Copyright 2013 Christian Hofstaedtler Copyright 2015 Thincast Technologies GmbH Copyright 2015 DI (FH) Martin Haimberger marti Copyright 2017 Ben Cohen n.ha imber ger@ thinc ast. 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.
|
static |
Function to open the connection to the sshagent
if | ( | ! | sshagent | ) |
|
static |
Callback for when the virtual channel is closed
|
static |
Callback for data received from the RDP server; forward this to ssh-agent
|
static |
Callback for when a new virtual channel is opened
|
static |
Callback for when the plugin is initialised
|
static |
Callback for when the plugin is terminated
|
static |
Entry point for thread to read from the ssh-agent socket and forward the data to RDP
sshagent |
Main entry point for sshagent DVC plugin
return status |