Skip to content

Commit bff4080

Browse files
committed
Ruby/OpenSSL 3.0.0
1 parent 3bab2ef commit bff4080

File tree

3 files changed

+104
-2
lines changed

3 files changed

+104
-2
lines changed

History.md

+102
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,105 @@
1+
Version 3.0.0
2+
=============
3+
4+
Compatibility notes
5+
-------------------
6+
7+
* OpenSSL 1.0.1 and Ruby 2.3-2.5 are no longer supported.
8+
[[GitHub #396]](https://github.com/ruby/openssl/pull/396)
9+
[[GitHub #466]](https://github.com/ruby/openssl/pull/466)
10+
11+
* OpenSSL 3.0 support is added. It is the first major version bump from OpenSSL
12+
1.1 and contains incompatible changes that affect Ruby/OpenSSL.
13+
Note that OpenSSL 3.0 support is preliminary and not all features are
14+
currently available:
15+
[[GitHub #369]](https://github.com/ruby/openssl/issues/369)
16+
17+
- Deprecate the ability to modify `OpenSSL::PKey::PKey` instances. OpenSSL 3.0
18+
made EVP_PKEY structure immutable, and hence the following methods are not
19+
available when Ruby/OpenSSL is linked against OpenSSL 3.0.
20+
[[GitHub #480]](https://github.com/ruby/openssl/pull/480)
21+
22+
- `OpenSSL::PKey::RSA#set_key`, `#set_factors`, `#set_crt_params`
23+
- `OpenSSL::PKey::DSA#set_pqg`, `#set_key`
24+
- `OpenSSL::PKey::DH#set_pqg`, `#set_key`, `#generate_key!`
25+
- `OpenSSL::PKey::EC#private_key=`, `#public_key=`, `#group=`, `#generate_key!`
26+
27+
- Deprecate `OpenSSL::Engine`. The ENGINE API has been deprecated in OpenSSL 3.0
28+
in favor of the new "provider" concept and will be removed in a future
29+
version.
30+
[[GitHub #481]](https://github.com/ruby/openssl/pull/481)
31+
32+
* `OpenSSL::SSL::SSLContext#tmp_ecdh_callback` has been removed. It has been
33+
deprecated since v2.0.0 because it is incompatible with modern OpenSSL
34+
versions.
35+
[[GitHub #394]](https://github.com/ruby/openssl/pull/394)
36+
37+
* `OpenSSL::SSL::SSLSocket#read` and `#write` now raise `OpenSSL::SSL::SSLError`
38+
if called before a TLS connection is established. Historically, they
39+
read/wrote unencrypted data to the underlying socket directly in that case.
40+
[[GitHub #9]](https://github.com/ruby/openssl/issues/9)
41+
[[GitHub #469]](https://github.com/ruby/openssl/pull/469)
42+
43+
44+
Notable changes
45+
---------------
46+
47+
* Enhance OpenSSL::PKey's common interface.
48+
[[GitHub #370]](https://github.com/ruby/openssl/issues/370)
49+
50+
- Key deserialization: Enhance `OpenSSL::PKey.read` to handle PEM encoding of
51+
DH parameters, which used to be only deserialized by `OpenSSL::PKey::DH.new`.
52+
[[GitHub #328]](https://github.com/ruby/openssl/issues/328)
53+
- Key generation: Add `OpenSSL::PKey.generate_parameters` and
54+
`OpenSSL::PKey.generate_key`.
55+
[[GitHub #329]](https://github.com/ruby/openssl/issues/329)
56+
- Public key signing: Enhance `OpenSSL::PKey::PKey#sign` and `#verify` to use
57+
the new EVP_DigestSign() family to enable PureEdDSA support on OpenSSL 1.1.1
58+
or later. They also now take optional algorithm-specific parameters for more
59+
control.
60+
[[GitHub #329]](https://github.com/ruby/openssl/issues/329)
61+
- Low-level public key signing and verification: Add
62+
`OpenSSL::PKey::PKey#sign_raw`, `#verify_raw`, and `#verify_recover`.
63+
[[GitHub #382]](https://github.com/ruby/openssl/issues/382)
64+
- Public key encryption: Add `OpenSSL::PKey::PKey#encrypt` and `#decrypt`.
65+
[[GitHub #382]](https://github.com/ruby/openssl/issues/382)
66+
- Key agreement: Add `OpenSSL::PKey::PKey#derive`.
67+
[[GitHub #329]](https://github.com/ruby/openssl/issues/329)
68+
- Key comparison: Add `OpenSSL::PKey::PKey#compare?` to conveniently check
69+
that two keys have common parameters and a public key.
70+
[[GitHub #383]](https://github.com/ruby/openssl/issues/383)
71+
72+
* Add `OpenSSL::BN#set_flags` and `#get_flags`. This can be used in combination
73+
with `OpenSSL::BN::CONSTTIME` to force constant-time computation.
74+
[[GitHub #417]](https://github.com/ruby/openssl/issues/417)
75+
76+
* Add `OpenSSL::BN#abs` to get the absolute value of the BIGNUM.
77+
[[GitHub #430]](https://github.com/ruby/openssl/issues/430)
78+
79+
* Add `OpenSSL::SSL::SSLSocket#getbyte`.
80+
[[GitHub #438]](https://github.com/ruby/openssl/issues/438)
81+
82+
* Add `OpenSSL::SSL::SSLContext#tmp_dh=`.
83+
[[GitHub #459]](https://github.com/ruby/openssl/pull/459)
84+
85+
* Add `OpenSSL::X509::Certificate.load` to load a PEM-encoded and concatenated
86+
list of X.509 certificates at once.
87+
[[GitHub #441]](https://github.com/ruby/openssl/pull/441)
88+
89+
* Change `OpenSSL::X509::Certificate.new` to attempt to deserialize the given
90+
string first as DER encoding first and then as PEM encoding to ensure the
91+
round-trip consistency.
92+
[[GitHub #442]](https://github.com/ruby/openssl/pull/442)
93+
94+
* Update various part of the code base to use the modern API. No breaking
95+
changes are intended with this. This includes:
96+
97+
- `OpenSSL::HMAC` uses the EVP API.
98+
[[GitHub #371]](https://github.com/ruby/openssl/issues/371)
99+
- `OpenSSL::Config` uses native OpenSSL API to parse config files.
100+
[[GitHub #342]](https://github.com/ruby/openssl/issues/342)
101+
102+
1103
Version 2.2.1
2104
=============
3105

lib/openssl/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module OpenSSL
4-
VERSION = "3.0.0.pre"
4+
VERSION = "3.0.0"
55
end

openssl.gemspec

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |spec|
22
spec.name = "openssl"
3-
spec.version = "3.0.0.pre"
3+
spec.version = "3.0.0"
44
spec.authors = ["Martin Bosslet", "SHIBATA Hiroshi", "Zachary Scott", "Kazuki Yamaguchi"]
55
spec.email = ["[email protected]"]
66
spec.summary = %q{OpenSSL provides SSL, TLS and general purpose cryptography.}

0 commit comments

Comments
 (0)