|
1 | 1 | require File.expand_path("../Abstract/portable-formula", __dir__) |
2 | 2 |
|
3 | 3 | class PortableOpenssl < PortableFormula |
4 | | - desc "SSL/TLS cryptography library" |
| 4 | + desc "Cryptography and SSL/TLS Toolkit" |
5 | 5 | homepage "https://openssl.org/" |
6 | | - url "https://www.openssl.org/source/openssl-3.1.4.tar.gz" |
7 | | - mirror "https://www.mirrorservice.org/sites/ftp.openssl.org/source/openssl-3.1.4.tar.gz" |
8 | | - mirror "https://www.openssl.org/source/old/3.1/openssl-3.1.4.tar.gz" |
9 | | - sha256 "840af5366ab9b522bde525826be3ef0fb0af81c6a9ebd84caa600fea1731eee3" |
| 6 | + url "https://github.com/openssl/openssl/releases/download/openssl-3.3.0/openssl-3.3.0.tar.gz" |
| 7 | + mirror "https://www.openssl.org/source/openssl-3.3.0.tar.gz" |
| 8 | + mirror "http://fresh-center.net/linux/misc/openssl-3.3.0.tar.gz" |
| 9 | + sha256 "53e66b043322a606abf0087e7699a0e033a37fa13feb9742df35c3a33b18fb02" |
10 | 10 | license "Apache-2.0" |
11 | 11 |
|
12 | 12 | resource "cacert" do |
13 | 13 | # https://curl.se/docs/caextract.html |
14 | | - url "https://curl.se/ca/cacert-2023-08-22.pem" |
15 | | - sha256 "23c2469e2a568362a62eecf1b49ed90a15621e6fa30e29947ded3436422de9b9" |
| 14 | + url "https://curl.se/ca/cacert-2024-03-11.pem" |
| 15 | + sha256 "1794c1d4f7055b7d02c2170337b61b48a2ef6c90d77e95444fd2596f4cac609f" |
16 | 16 | end |
17 | 17 |
|
18 | 18 | def openssldir |
@@ -52,7 +52,7 @@ def install |
52 | 52 | # OpenSSL is not fully portable and certificate paths are backed into the library. |
53 | 53 | # We therefore need to set the certificate path at runtime via an environment variable. |
54 | 54 | # We however don't want to touch _other_ OpenSSL usages, so we change the variable name to differ. |
55 | | - inreplace "include/internal/cryptlib.h", "\"SSL_CERT_FILE\"", "\"PORTABLE_RUBY_SSL_CERT_FILE\"" |
| 55 | + inreplace "include/internal/common.h", "\"SSL_CERT_FILE\"", "\"PORTABLE_RUBY_SSL_CERT_FILE\"" |
56 | 56 |
|
57 | 57 | openssldir.mkpath |
58 | 58 | system "perl", "./Configure", *(configure_args + arch_args) |
|
0 commit comments