summarylogtreecommitdiffstats
path: root/ssl.patch
blob: e7101f79a8d4941423bcca08dbd9714853f515f8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
diff --git a/src/cpp/core/CMakeLists.txt b/src/cpp/core/CMakeLists.txt
index 5803988968..eb8d4d5efd 100644
--- a/src/cpp/core/CMakeLists.txt
+++ b/src/cpp/core/CMakeLists.txt
@@ -201,8 +201,12 @@ if (UNIX)
    endif()
 
    if(RSTUDIO_SERVER)
-      find_package(OpenSSL REQUIRED QUIET)
+           #find_package(OpenSSL REQUIRED QUIET)
       find_package(PAM REQUIRED)
+      find_library(SSL ssl PATHS /usr/lib/openssl-1.0)
+      find_library(CRYPTO crypto PATHS /usr/lib/openssl-1.0)
+      set(OPENSSL_INCLUDE_DIRS /usr/include/openssl-1.0)
+      set(OPENSSL_LIBRARIES /usr/lib/openssl-1.0/libssl.so /usr/lib/openssl-1.0/libcrypto.so)
       set(CORE_SYSTEM_LIBRARIES
          ${CORE_SYSTEM_LIBRARIES}
          ${OPENSSL_LIBRARIES}
diff --git a/src/cpp/core/system/PosixCrypto.cpp b/src/cpp/core/system/PosixCrypto.cpp
index 2e4c01bb12..9653edb244 100644
--- a/src/cpp/core/system/PosixCrypto.cpp
+++ b/src/cpp/core/system/PosixCrypto.cpp
@@ -18,14 +18,14 @@
 
 #include <fcntl.h>
 
-#include <openssl/err.h>
-#include <openssl/hmac.h>
-#include <openssl/bio.h>
-#include <openssl/buffer.h>
-#include <openssl/evp.h>
-#include <openssl/pem.h>
-#include <openssl/rand.h>
-#include <openssl/rsa.h>
+#include <openssl-1.0/openssl/err.h>
+#include <openssl-1.0/openssl/hmac.h>
+#include <openssl-1.0/openssl/bio.h>
+#include <openssl-1.0/openssl/buffer.h>
+#include <openssl-1.0/openssl/evp.h>
+#include <openssl-1.0/openssl/pem.h>
+#include <openssl-1.0/openssl/rand.h>
+#include <openssl-1.0/openssl/rsa.h>
 
 #include <algorithm>