Added OpenSSL include path globally.
authorArmin Novak <armin.novak@thincast.com>
Wed, 12 Dec 2018 14:40:50 +0000 (15:40 +0100)
committerArmin Novak <armin.novak@thincast.com>
Wed, 12 Dec 2018 14:41:29 +0000 (15:41 +0100)
CMakeLists.txt
channels/printer/client/printer_cups.c
channels/printer/client/printer_main.h

index 1ecad94..0469651 100644 (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)
index d6f0705..8af8752 100644 (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;
 
index dfb56d8..07bd608 100644 (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