jruby-openssl 0.15.2-java → 0.15.4-java

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 3b322a7977111ba9770b41e0401f501af7409f3b9d37299e1e7b792fb2987b63
4
- data.tar.gz: 9a5b49175af58f39f0d2c5113eb0487fed68bfbb3cff76e2417dcf8d874030d0
2
+ SHA1:
3
+ metadata.gz: e8bb3c7e2f2f97edfd979f79912f344dc7a28fea
4
+ data.tar.gz: 20b63ae82b2287f2c589fae82a40136087520e62
5
5
  SHA512:
6
- metadata.gz: ed0d9547185e0ade1eff94d60b2c926cfc8c2c69bf273db53ce978f45a75067a4436caf0cf68f3c52a79b07abe5fa9067262c1701044dc8d6537bf5b5fcdfb50
7
- data.tar.gz: f0083caf3519b9815b675ab9c65a33f6f77f71409f5e77613bc01c7bed8c82b39e8c9f75b886a2616979ffe52f880688fbaedbcd09a46db17e4e33ba1102ee35
6
+ metadata.gz: 77810561ee1d964842f7be3e7568c8891288bef32b958677528464ce9b3e38e51c27d3739c23b0693b999ac0b9343be562db792889a990eb0a1aca6209b576a0
7
+ data.tar.gz: 0b55e12fe6a730e4c1be62d7671074614bfc2713d6bf9bc296b576db2f4464f9368392d9c89281c8ea7b4e403a33dd517e21014ef05d04d1356b34dfe011628e
data/History.md CHANGED
@@ -1,3 +1,26 @@
1
+ ## 0.15.4
2
+
3
+ * [fix] Verify hostname by default (CVE-2025-46551)
4
+
5
+ ## 0.15.3
6
+
7
+ * [fix] keep curve name when group is set into another key
8
+ * [fix] make sure `OpenSSL::PKey::EC#dup` (copying) works
9
+ * [compat] make sure `OpenSSL::PKey::EC#generate_key!` exists
10
+ * [compat] missing OpenSSL:BN `to_int`, `-@`, `+@`, `abs`, `negative?`
11
+ * [compat] implement PKey::EC `public_to_pem` and `xxx_to_der`
12
+ * [fix] initialize @unused_bits = 0 for BitString
13
+ * [fix] raise ASN1Error when unused_bits out of range
14
+ * [fix] respect @unused_bits in BitString (#323)
15
+ * [fix] missing `OpenSSL::ASN1::ObjectId#==` (#311)
16
+ * [compat] implement PKey::DSA `public_to_der` and `public_to_pem`
17
+ * [compat] implement PKey::RSA `public_to_der` and `public_to_pem`
18
+ * [fix] DSA private key should generate after `set_key`
19
+ * [refactor] RSA key internals to always consider params
20
+ * [fix] DSA key compatibility when `set_pqg`
21
+ * [fix] RSA private key should generate after `set_key`
22
+ * [compat] add private? and public? methods on `PKey::EC`
23
+
1
24
  ## 0.15.2
2
25
 
3
26
  * [deps] upgrade BC to version 1.79
data/lib/jopenssl/load.rb CHANGED
@@ -69,5 +69,3 @@ module OpenSSL
69
69
  OpenSSL.fixed_length_secure_compare(hashed_a, hashed_b) && a == b
70
70
  end
71
71
  end
72
-
73
- load 'jopenssl/_compat23.rb'
@@ -1,5 +1,5 @@
1
1
  module JOpenSSL
2
- VERSION = '0.15.2'
2
+ VERSION = '0.15.4'
3
3
  BOUNCY_CASTLE_VERSION = '1.79'
4
4
  end
5
5
 
data/lib/jopenssl.jar CHANGED
Binary file
data/lib/openssl/ssl.rb CHANGED
@@ -20,7 +20,7 @@ module OpenSSL
20
20
  DEFAULT_PARAMS = { # :nodoc:
21
21
  :min_version => OpenSSL::SSL::TLS1_VERSION,
22
22
  :verify_mode => OpenSSL::SSL::VERIFY_PEER,
23
- :verify_hostname => nil, # TODO => true needs JRuby support to call verify_certificate_identity
23
+ :verify_hostname => true,
24
24
  :options => OpenSSL::SSL::OP_ALL | OpenSSL::SSL::OP_NO_COMPRESSION
25
25
  }
26
26
 
data/pom.xml CHANGED
@@ -11,7 +11,7 @@ DO NOT MODIFY - GENERATED CODE
11
11
  <modelVersion>4.0.0</modelVersion>
12
12
  <groupId>rubygems</groupId>
13
13
  <artifactId>jruby-openssl</artifactId>
14
- <version>0.15.2</version>
14
+ <version>0.15.4</version>
15
15
  <packaging>gem</packaging>
16
16
  <name>JRuby OpenSSL</name>
17
17
  <description>JRuby-OpenSSL is an add-on gem for JRuby that emulates the Ruby OpenSSL native library.</description>
@@ -65,8 +65,8 @@ DO NOT MODIFY - GENERATED CODE
65
65
  <invoker.test>${bc.versions}</invoker.test>
66
66
  <jruby.plugins.version>3.0.2</jruby.plugins.version>
67
67
  <jruby.switches>-W0</jruby.switches>
68
- <jruby.version>9.2.19.0</jruby.version>
69
- <jruby.versions>9.2.19.0</jruby.versions>
68
+ <jruby.version>9.1.17.0</jruby.version>
69
+ <jruby.versions>9.1.17.0</jruby.versions>
70
70
  <mavengem-wagon.version>2.0.2</mavengem-wagon.version>
71
71
  <mavengem.wagon.version>2.0.2</mavengem.wagon.version>
72
72
  <polyglot.dump.pom>pom.xml</polyglot.dump.pom>
@@ -274,7 +274,6 @@ DO NOT MODIFY - GENERATED CODE
274
274
  <configuration>
275
275
  <source>1.8</source>
276
276
  <target>1.8</target>
277
- <release>8</release>
278
277
  <encoding>UTF-8</encoding>
279
278
  <debug>true</debug>
280
279
  <showWarnings>true</showWarnings>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jruby-openssl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.2
4
+ version: 0.15.4
5
5
  platform: java
6
6
  authors:
7
7
  - Karol Bucek
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2024-11-24 00:00:00.000000000 Z
13
+ date: 2025-05-07 00:00:00.000000000 Z
14
14
  dependencies: []
15
15
  description: JRuby-OpenSSL is an add-on gem for JRuby that emulates the Ruby OpenSSL
16
16
  native library.
@@ -25,7 +25,6 @@ files:
25
25
  - README.md
26
26
  - Rakefile
27
27
  - lib/jopenssl.jar
28
- - lib/jopenssl/_compat23.rb
29
28
  - lib/jopenssl/load.rb
30
29
  - lib/jopenssl/version.rb
31
30
  - lib/jruby-openssl.rb
@@ -72,7 +71,8 @@ requirements:
72
71
  - jar org.bouncycastle:bcpkix-jdk18on, 1.79
73
72
  - jar org.bouncycastle:bctls-jdk18on, 1.79
74
73
  - jar org.bouncycastle:bcutil-jdk18on, 1.79
75
- rubygems_version: 3.1.6
74
+ rubyforge_project:
75
+ rubygems_version: 2.6.14.1
76
76
  signing_key:
77
77
  specification_version: 4
78
78
  summary: JRuby OpenSSL
@@ -1,71 +0,0 @@
1
- # frozen_string_literal: false
2
-
3
- module OpenSSL
4
-
5
- module PKey
6
-
7
- class DH
8
-
9
- def set_key(pub_key, priv_key)
10
- self.pub_key = pub_key
11
- self.priv_key = priv_key
12
- self
13
- end
14
-
15
- def set_pqg(p, q, g)
16
- self.p = p
17
- if respond_to?(:q=)
18
- self.q = q
19
- else
20
- OpenSSL.warn "JRuby-OpenSSL does not support setting q param on #{inspect}" if q
21
- end
22
- self.g = g
23
- self
24
- end
25
-
26
- end
27
-
28
- class DSA
29
-
30
- def set_key(pub_key, priv_key)
31
- self.pub_key = pub_key
32
- self.priv_key = priv_key
33
- self
34
- end
35
-
36
- def set_pqg(p, q, g)
37
- self.p = p
38
- self.q = q
39
- self.g = g
40
- self
41
- end
42
-
43
- end
44
-
45
- class RSA
46
-
47
- def set_key(n, e, d)
48
- self.n = n
49
- self.e = e
50
- self.d = d
51
- self
52
- end
53
-
54
- def set_factors(p, q)
55
- self.p = p
56
- self.q = q
57
- self
58
- end
59
-
60
- def set_crt_params(dmp1, dmq1, iqmp)
61
- self.dmp1 = dmp1
62
- self.dmq1 = dmq1
63
- self.iqmp = iqmp
64
- self
65
- end
66
-
67
- end
68
-
69
- end
70
-
71
- end