aboutsummaryrefslogtreecommitdiffstats
path: root/testing/racket/libressl.patch
blob: 0b2e83b6f89db719b175211a4ad3e5d7ddde2132 (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
46
47
48
49
50
51
52
53
diff -ru racket-6.12.orig/collects/openssl/libcrypto.rkt racket-6.12/collects/openssl/libcrypto.rkt
--- racket-6.12.orig/collects/openssl/libcrypto.rkt	2017-01-07 15:34:14.000000000 +0200
+++ racket-6.12/collects/openssl/libcrypto.rkt	2018-04-09 09:42:53.241968324 +0300
@@ -37,7 +37,13 @@
     ;; Other specific known versions
     "1.0.1k" "1.0.1j" "1.0.1g" "1.0.1e"
     "1.0" "1.0.0" "1.0.0e" "1.0.0d" "1.0.0c" "1.0.0b" "1.0.0a"
-    "0.9.8e" "0.9.8b" "0.9.8" "0.9.7"))
+    "0.9.8e" "0.9.8b" "0.9.8" "0.9.7"
+
+    ;; LibreSSL
+    "43"  ;; 2.7.2+
+    "42"  ;; 2.6.3+
+    "41"  ;; 2.5.5+
+))
 
 (define libcrypto-load-fail-reason #f)
 
diff -ru racket-6.12.orig/collects/openssl/libssl.rkt racket-6.12/collects/openssl/libssl.rkt
--- racket-6.12.orig/collects/openssl/libssl.rkt	2016-04-15 23:33:56.000000000 +0300
+++ racket-6.12/collects/openssl/libssl.rkt	2018-04-09 09:43:20.028984576 +0300
@@ -9,6 +9,25 @@
 (provide libssl
          libssl-load-fail-reason)
 
+(define libssl-versions
+  '(;; Versionless (eg from devel pkg)
+    ""
+
+    ;; Compatibility-based version / SONAME
+    "10"     ;; Fedora
+    "1.0.0"  ;; Debian, Ubuntu
+
+    ;; Other specific known versions
+    "1.0.1k" "1.0.1j" "1.0.1g" "1.0.1e"
+    "1.0" "1.0.0" "1.0.0e" "1.0.0d" "1.0.0c" "1.0.0b" "1.0.0a"
+    "0.9.8e" "0.9.8b" "0.9.8" "0.9.7"
+
+    ;; LibreSSL
+    "45"  ;; 2.7.2+
+    "44"  ;; 2.6.3+
+    "43"  ;; 2.5.3+
+))
+
 (define libssl-load-fail-reason #f)
 
 ;; We need to declare because they might be distributed with PLT Scheme
@@ -28,4 +47,4 @@
                         (lambda (x)
                           (set! libssl-load-fail-reason (exn-message x))
                           #f)])
-         (ffi-lib libssl-so openssl-lib-versions))))
+         (ffi-lib libssl-so libssl-versions))))