jruby-openssl 0.15.0-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: 73eeedd4b229adfc00f06a3732179a5f720e5c03224dc8c4e68f42755286d78a
4
- data.tar.gz: c293cce41dbef1214cdfc4d7971990ab936cd37d62ea33752e9073c00284d0f6
2
+ SHA1:
3
+ metadata.gz: e8bb3c7e2f2f97edfd979f79912f344dc7a28fea
4
+ data.tar.gz: 20b63ae82b2287f2c589fae82a40136087520e62
5
5
  SHA512:
6
- metadata.gz: 28daa5aa8813cfb50db8ae65b4b03c9ea8d968f8e4f0c68e28446801513d2bff3bf9b6f991521f87042028e8710a6424a64947b1db197309fe1f00e6ff8e9750
7
- data.tar.gz: 72c86427b868059f3d97875d33bdab8daf75d6a34902053dc7559d80d2b352a903b0d19612d0b96ad8963f6980ed1e0ab927d9920aa3720c1d0e89c963b5082b
6
+ metadata.gz: 77810561ee1d964842f7be3e7568c8891288bef32b958677528464ce9b3e38e51c27d3739c23b0693b999ac0b9343be562db792889a990eb0a1aca6209b576a0
7
+ data.tar.gz: 0b55e12fe6a730e4c1be62d7671074614bfc2713d6bf9bc296b576db2f4464f9368392d9c89281c8ea7b4e403a33dd517e21014ef05d04d1356b34dfe011628e
data/History.md CHANGED
@@ -1,3 +1,36 @@
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
+
24
+ ## 0.15.2
25
+
26
+ * [deps] upgrade BC to version 1.79
27
+ * [fix] avoid PKey::EC.new failing with specific DER (#318)
28
+ * [fix] have a useful OPENSSL_VERSION_NUMBER
29
+
30
+ ## 0.15.1
31
+
32
+ * [deps] upgrade BC to version 1.78.1
33
+
1
34
  ## 0.15.0
2
35
 
3
36
  This version upgraded to latest Bouncy-Castle (1.78) and the minimum supported
data/README.md CHANGED
@@ -28,7 +28,7 @@ the JRuby [mailing list][1] or the [bug tracker][2].
28
28
  | ~>0.12.x | 9.1.x-9.3.x | Java 8-15 | 1.65-1.68 |
29
29
  | ~>0.13.x | 9.1.x-9.4.x | Java 8-17 | 1.68-1.69 |
30
30
  | ~>0.14.x | 9.1.x-9.4.x | Java 8-21 | 1.71-1.74 |
31
- | ~>0.15.x | 9.2.x-9.4.x | Java 8-21 | 1.76-1.78 |
31
+ | ~>0.15.x | 9.2.x-9.4.x | Java 8-21 | 1.76-1.79 |
32
32
 
33
33
  NOTE: backwards JRuby compatibility was not handled for versions <= **0.9.6**
34
34
 
data/lib/jopenssl/load.rb CHANGED
@@ -1,5 +1,3 @@
1
- warn 'Loading jruby-openssl gem in a non-JRuby interpreter' unless defined? JRUBY_VERSION
2
-
3
1
  require 'jopenssl/version'
4
2
 
5
3
  # NOTE: assuming user does pull in BC .jars from somewhere else on the CP
@@ -25,16 +23,7 @@ unless ENV_JAVA['jruby.openssl.load.jars'].eql?('false')
25
23
  end
26
24
 
27
25
  require 'jopenssl.jar'
28
-
29
- if JRuby::Util.respond_to?(:load_ext) # JRuby 9.2
30
- JRuby::Util.load_ext('org.jruby.ext.openssl.OpenSSL')
31
- else; require 'jruby'
32
- org.jruby.ext.openssl.OpenSSL.load(JRuby.runtime)
33
- end
34
-
35
- if RUBY_VERSION > '2.3'
36
- load 'jopenssl/_compat23.rb'
37
- end
26
+ JRuby::Util.load_ext('org.jruby.ext.openssl.OpenSSL')
38
27
 
39
28
  # NOTE: content bellow should live in *lib/openssl.rb* but due RubyGems/Bundler
40
29
  # `autoload :OpenSSL` this will cause issues if an older version (0.11) is the
@@ -61,7 +50,6 @@ end
61
50
  require 'openssl/bn'
62
51
  require 'openssl/pkey'
63
52
  require 'openssl/cipher'
64
- #require 'openssl/config' if OpenSSL.const_defined?(:Config, false)
65
53
  require 'openssl/digest'
66
54
  require 'openssl/hmac'
67
55
  require 'openssl/x509'
@@ -80,4 +68,4 @@ module OpenSSL
80
68
  hashed_b = OpenSSL::Digest.digest('SHA256', b)
81
69
  OpenSSL.fixed_length_secure_compare(hashed_a, hashed_b) && a == b
82
70
  end
83
- end
71
+ end
@@ -1,6 +1,6 @@
1
1
  module JOpenSSL
2
- VERSION = '0.15.0'
3
- BOUNCY_CASTLE_VERSION = '1.78'
2
+ VERSION = '0.15.4'
3
+ BOUNCY_CASTLE_VERSION = '1.79'
4
4
  end
5
5
 
6
6
  Object.class_eval do
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.0</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>
@@ -60,13 +60,13 @@ DO NOT MODIFY - GENERATED CODE
60
60
  </snapshotRepository>
61
61
  </distributionManagement>
62
62
  <properties>
63
- <bc.versions>1.78</bc.versions>
63
+ <bc.versions>1.79</bc.versions>
64
64
  <invoker.skip>${maven.test.skip}</invoker.skip>
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>
@@ -77,22 +77,22 @@ DO NOT MODIFY - GENERATED CODE
77
77
  <dependency>
78
78
  <groupId>org.bouncycastle</groupId>
79
79
  <artifactId>bcprov-jdk18on</artifactId>
80
- <version>1.78</version>
80
+ <version>1.79</version>
81
81
  </dependency>
82
82
  <dependency>
83
83
  <groupId>org.bouncycastle</groupId>
84
84
  <artifactId>bcpkix-jdk18on</artifactId>
85
- <version>1.78</version>
85
+ <version>1.79</version>
86
86
  </dependency>
87
87
  <dependency>
88
88
  <groupId>org.bouncycastle</groupId>
89
89
  <artifactId>bctls-jdk18on</artifactId>
90
- <version>1.78</version>
90
+ <version>1.79</version>
91
91
  </dependency>
92
92
  <dependency>
93
93
  <groupId>org.bouncycastle</groupId>
94
94
  <artifactId>bcutil-jdk18on</artifactId>
95
- <version>1.78</version>
95
+ <version>1.79</version>
96
96
  </dependency>
97
97
  <dependency>
98
98
  <groupId>org.jruby</groupId>
@@ -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.0
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-06-21 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
@@ -42,10 +41,10 @@ files:
42
41
  - lib/openssl/pkey.rb
43
42
  - lib/openssl/ssl.rb
44
43
  - lib/openssl/x509.rb
45
- - lib/org/bouncycastle/bcpkix-jdk18on/1.78/bcpkix-jdk18on-1.78.jar
46
- - lib/org/bouncycastle/bcprov-jdk18on/1.78/bcprov-jdk18on-1.78.jar
47
- - lib/org/bouncycastle/bctls-jdk18on/1.78/bctls-jdk18on-1.78.jar
48
- - lib/org/bouncycastle/bcutil-jdk18on/1.78/bcutil-jdk18on-1.78.jar
44
+ - lib/org/bouncycastle/bcpkix-jdk18on/1.79/bcpkix-jdk18on-1.79.jar
45
+ - lib/org/bouncycastle/bcprov-jdk18on/1.79/bcprov-jdk18on-1.79.jar
46
+ - lib/org/bouncycastle/bctls-jdk18on/1.79/bctls-jdk18on-1.79.jar
47
+ - lib/org/bouncycastle/bcutil-jdk18on/1.79/bcutil-jdk18on-1.79.jar
49
48
  - pom.xml
50
49
  homepage: https://github.com/jruby/jruby-openssl
51
50
  licenses:
@@ -68,11 +67,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
67
  - !ruby/object:Gem::Version
69
68
  version: '0'
70
69
  requirements:
71
- - jar org.bouncycastle:bcprov-jdk18on, 1.78
72
- - jar org.bouncycastle:bcpkix-jdk18on, 1.78
73
- - jar org.bouncycastle:bctls-jdk18on, 1.78
74
- - jar org.bouncycastle:bcutil-jdk18on, 1.78
75
- rubygems_version: 3.1.6
70
+ - jar org.bouncycastle:bcprov-jdk18on, 1.79
71
+ - jar org.bouncycastle:bcpkix-jdk18on, 1.79
72
+ - jar org.bouncycastle:bctls-jdk18on, 1.79
73
+ - jar org.bouncycastle:bcutil-jdk18on, 1.79
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