assistance.h (2787B)
1/** 2 * FreeRDP: A Remote Desktop Protocol Implementation 3 * Remote Assistance 4 * 5 * Copyright 2014 Marc-Andre Moreau <marcandre.moreau@gmail.com> 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); 8 * you may not use this file except in compliance with the License. 9 * You may obtain a copy of the License at 10 * 11 * http://www.apache.org/licenses/LICENSE-2.0 12 * 13 * Unless required by applicable law or agreed to in writing, software 14 * distributed under the License is distributed on an "AS IS" BASIS, 15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 16 * See the License for the specific language governing permissions and 17 * limitations under the License. 18 */ 19 20#ifndef FREERDP_REMOTE_ASSISTANCE_H 21#define FREERDP_REMOTE_ASSISTANCE_H 22 23#include <freerdp/api.h> 24#include <freerdp/freerdp.h> 25 26typedef struct rdp_assistance_file rdpAssistanceFile; 27 28#ifdef __cplusplus 29extern "C" 30{ 31#endif 32 33 FREERDP_API BYTE* freerdp_assistance_hex_string_to_bin(const void* str, size_t* size); 34 FREERDP_API char* freerdp_assistance_bin_to_hex_string(const void* data, size_t size); 35 36 FREERDP_API char* freerdp_assistance_generate_pass_stub(DWORD flags); 37 FREERDP_API char* freerdp_assistance_construct_expert_blob(const char* name, const char* pass); 38 FREERDP_API BYTE* freerdp_assistance_encrypt_pass_stub(const char* password, 39 const char* passStub, 40 size_t* pEncryptedSize); 41 42 FREERDP_API int freerdp_assistance_set_connection_string2(rdpAssistanceFile* file, 43 const char* string, 44 const char* password); 45 46 FREERDP_API int freerdp_assistance_parse_file_buffer(rdpAssistanceFile* file, 47 const char* buffer, size_t size, 48 const char* password); 49 FREERDP_API int freerdp_assistance_parse_file(rdpAssistanceFile* file, const char* name, 50 const char* password); 51 52 FREERDP_API BOOL freerdp_assistance_populate_settings_from_assistance_file( 53 rdpAssistanceFile* file, rdpSettings* settings); 54 FREERDP_API BOOL freerdp_assistance_get_encrypted_pass_stub(rdpAssistanceFile* file, 55 const char** pwd, size_t* size); 56 57 FREERDP_API rdpAssistanceFile* freerdp_assistance_file_new(void); 58 FREERDP_API void freerdp_assistance_file_free(rdpAssistanceFile* file); 59 60 FREERDP_API void freerdp_assistance_print_file(rdpAssistanceFile* file, wLog* log, DWORD level); 61 62#ifdef __cplusplus 63} 64#endif 65 66#endif /* FREERDP_REMOTE_ASSISTANCE_H */