Added OpenSSL include path globally.

This commit is contained in:
Armin Novak
2018-12-12 15:40:50 +01:00
parent 31d5a3b0c3
commit 34c9404c98
3 changed files with 3 additions and 2 deletions

View File

@@ -934,6 +934,7 @@ endif()
if(OPENSSL_FOUND)
add_definitions("-DWITH_OPENSSL")
message(STATUS "Using OpenSSL Version: ${OPENSSL_VERSION}")
include_directories(${OPENSSL_INCLUDE_DIR})
endif()
if(MBEDTLS_FOUND)

View File

@@ -84,7 +84,7 @@ static void printer_cups_get_printjob_name(char* buf, int size)
*
* @return 0 on success, otherwise a Win32 error code
*/
static UINT printer_cups_write_printjob(rdpPrintJob* printjob, BYTE* data, int size)
static UINT printer_cups_write_printjob(rdpPrintJob* printjob, const BYTE* data, size_t size)
{
rdpCupsPrintJob* cups_printjob = (rdpCupsPrintJob*) printjob;

View File

@@ -54,7 +54,7 @@ struct rdp_printer
pcFreePrinter Free;
};
typedef UINT (*pcWritePrintJob) (rdpPrintJob* printjob, BYTE* data, int size);
typedef UINT (*pcWritePrintJob) (rdpPrintJob* printjob, const BYTE* data, size_t size);
typedef void (*pcClosePrintJob) (rdpPrintJob* printjob);
struct rdp_print_job