jruby-openssl 0.12.1-java → 0.14.0-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
- SHA1:
3
- metadata.gz: 2b73e2783a26e7aa5254c66e325fa6c824c78b8d
4
- data.tar.gz: feb0ad37fca2ead87ed151f8c543214f7912508b
2
+ SHA256:
3
+ metadata.gz: 2548bc2fe716c409cd989bf2d8dadfae326993f955aca85cfe03ca4bf3afb659
4
+ data.tar.gz: 5f6606773272d521abefb77c475d80a6437091d33b37c15d5daf6c8ccdb87e9b
5
5
  SHA512:
6
- metadata.gz: aba588920a82b3a568183ee03bcbee3175c033863654521bfc6a624be84072d510853ea2b457f8742d222e19a230c8ce67592a3df16e1ae625d1b644c7e858bf
7
- data.tar.gz: ce31f7f99e2352871b2fdefc084eef1d8497a97baacf4a99a6459e39abf0cb35e66a1a4b422e454db6e9433cd6c698b22e07dc1e7688e7c580a397cc0a7ae37b
6
+ metadata.gz: 05f1f9700cd0e52761a80c4c841dc5afa80f1dbffcb47dadc1761ccf59bb3315b6baa8cbff18b3d611b6094f0ef9b1e930800f07ed2cc1cad4f5c3951047fca8
7
+ data.tar.gz: 5ca2d93939853cdc3ae2055db4e32ba71e9c6127297ec14c5de5745db2ebbe27c4182ee7325045123a91d8b3b8bac5cebf80471aaab2e67ec5458803ba85805c
data/History.md CHANGED
@@ -1,3 +1,34 @@
1
+ ## 0.14.0
2
+
3
+ This version upgraded to latest Bouncy-Castle (1.71) and is only compatible with
4
+ the new version mostly due artifact naming and breaking chances in BC itself.
5
+
6
+ - [deps] upgrade BC to latest 1.71
7
+ - [fix] make set_minmax_proto_version private
8
+
9
+ ## 0.13.0
10
+
11
+ * [fix] ASN1::EndOfContent ancestor hierarchy (#228)
12
+ * [fix] handle X509::Name type conversion (#206)
13
+ * [fix] handle invalid type when creating `X509::Name`
14
+ * [fix] `OpenSSL::X509::Name#inspect` compatibility
15
+ * [fix] escaping with `OpenSSL::X509::Name::RFC2253`
16
+ * [feat] implement `OpenSSL::X509::Name#to_utf8`
17
+ * [fix] compat missing `OpenSSL::SSL::OP_NO_TLSv1_3`
18
+ * [refactor] performance - do not encode/decode cert objects
19
+ * [fix] make sure `Context.ciphers` are not mutated (#219)
20
+ * [feat] support `to_java` conversion for CRL
21
+ * [feat] support `to_java` protocol for PKey (#250)
22
+
23
+ ## 0.12.2
24
+
25
+ * [fix] work-around JRuby 9.2 autoload behavior (#248)
26
+ to be able to install jruby-openssl >= 0.12 on JRuby 9.2
27
+ while the default gem (shipped with JRuby) is < 0.12
28
+ * [feat] support alpn negotiation in ssl context (#247)
29
+ * [feat] support Java cipher names on `SSLContext#ciphers=`
30
+ * [fix] properly handle `require_jar` fallback
31
+
1
32
  ## 0.12.1
2
33
 
3
34
  * improved compatibility with the openssl gem (version 2.2.1)
data/README.md CHANGED
@@ -27,6 +27,8 @@ the JRuby [mailing list][1] or the [bug tracker][2].
27
27
  | ~>0.10.5 | 1.7.20-9.3.x | Java 7-11 | 1.60-1.68 |
28
28
  | ~>0.11.x | 9.0.x-9.3.x | Java 7-11 | 1.62-1.68 |
29
29
  | ~>0.12.x | 9.1.x-9.3.x | Java 8-15 | 1.65-1.68 |
30
+ | ~>0.13.x | 9.1.x-9.3.x | Java 8-17 | 1.68-1.69 |
31
+ | ~>0.14.x | 9.1.x-9.3.x | Java 8-17 | 1.71 |
30
32
 
31
33
  NOTE: backwards JRuby compatibility was not handled for versions <= **0.9.6**
32
34
 
data/lib/jopenssl/load.rb CHANGED
@@ -5,21 +5,22 @@ require 'jopenssl/version'
5
5
  # NOTE: assuming user does pull in BC .jars from somewhere else on the CP
6
6
  unless ENV_JAVA['jruby.openssl.load.jars'].eql?('false')
7
7
  version = JOpenSSL::BOUNCY_CASTLE_VERSION
8
- bc_jars = nil
9
8
  begin
10
9
  require 'jar-dependencies'
11
10
  # if we have jar-dependencies we let it track the jars
12
- require_jar( 'org.bouncycastle', 'bcprov-jdk15on', version )
13
- require_jar( 'org.bouncycastle', 'bcpkix-jdk15on', version )
14
- require_jar( 'org.bouncycastle', 'bctls-jdk15on', version )
11
+ require_jar 'org.bouncycastle', 'bcprov-jdk18on', version
12
+ require_jar 'org.bouncycastle', 'bcpkix-jdk18on', version
13
+ require_jar 'org.bouncycastle', 'bcutil-jdk18on', version
14
+ require_jar 'org.bouncycastle', 'bctls-jdk18on', version
15
15
  bc_jars = true
16
- rescue LoadError
16
+ rescue LoadError, RuntimeError
17
17
  bc_jars = false
18
18
  end
19
19
  unless bc_jars
20
- load "org/bouncycastle/bcprov-jdk15on/#{version}/bcprov-jdk15on-#{version}.jar"
21
- load "org/bouncycastle/bcpkix-jdk15on/#{version}/bcpkix-jdk15on-#{version}.jar"
22
- load "org/bouncycastle/bctls-jdk15on/#{version}/bctls-jdk15on-#{version}.jar"
20
+ load "org/bouncycastle/bcprov-jdk18on/#{version}/bcprov-jdk18on-#{version}.jar"
21
+ load "org/bouncycastle/bcpkix-jdk18on/#{version}/bcpkix-jdk18on-#{version}.jar"
22
+ load "org/bouncycastle/bcutil-jdk18on/#{version}/bcutil-jdk18on-#{version}.jar"
23
+ load "org/bouncycastle/bctls-jdk18on/#{version}/bctls-jdk18on-#{version}.jar"
23
24
  end
24
25
  end
25
26
 
@@ -34,3 +35,48 @@ end
34
35
  if RUBY_VERSION > '2.3'
35
36
  load 'jopenssl/_compat23.rb'
36
37
  end
38
+
39
+ # NOTE: content bellow should live in *lib/openssl.rb* but due RubyGems/Bundler
40
+ # `autoload :OpenSSL` this will cause issues if an older version (0.11) is the
41
+ # default gem under JRuby 9.2 (which on auto-load does not trigger a dynamic
42
+ # require - this is only fixed in JRuby 9.3)
43
+
44
+ module OpenSSL
45
+ autoload :Config, 'openssl/config' unless const_defined?(:Config, false)
46
+ autoload :PKCS12, 'openssl/pkcs12'
47
+ end
48
+
49
+ =begin
50
+ = Info
51
+ 'OpenSSL for Ruby 2' project
52
+ Copyright (C) 2002 Michal Rokos <[email protected]>
53
+ All rights reserved.
54
+
55
+ = Licence
56
+ This program is licensed under the same licence as Ruby.
57
+ (See the file 'LICENCE'.)
58
+ =end
59
+
60
+ require 'openssl/bn'
61
+ require 'openssl/pkey'
62
+ require 'openssl/cipher'
63
+ #require 'openssl/config' if OpenSSL.const_defined?(:Config, false)
64
+ require 'openssl/digest'
65
+ require 'openssl/hmac'
66
+ require 'openssl/x509'
67
+ require 'openssl/ssl'
68
+ require 'openssl/pkcs5'
69
+
70
+ module OpenSSL
71
+ # call-seq:
72
+ # OpenSSL.secure_compare(string, string) -> boolean
73
+ #
74
+ # Constant time memory comparison. Inputs are hashed using SHA-256 to mask
75
+ # the length of the secret. Returns +true+ if the strings are identical,
76
+ # +false+ otherwise.
77
+ def self.secure_compare(a, b)
78
+ hashed_a = OpenSSL::Digest.digest('SHA256', a)
79
+ hashed_b = OpenSSL::Digest.digest('SHA256', b)
80
+ OpenSSL.fixed_length_secure_compare(hashed_a, hashed_b) && a == b
81
+ end
82
+ end
@@ -1,9 +1,10 @@
1
1
  module JOpenSSL
2
- VERSION = '0.12.1'
3
- BOUNCY_CASTLE_VERSION = '1.68'
2
+ VERSION = '0.14.0'
3
+ BOUNCY_CASTLE_VERSION = '1.71'
4
4
  end
5
5
 
6
6
  Object.class_eval do
7
7
  Jopenssl = JOpenSSL
8
8
  private_constant :Jopenssl if respond_to?(:private_constant)
9
+ deprecate_constant :Jopenssl if respond_to?(:deprecate_constant)
9
10
  end
data/lib/jopenssl.jar CHANGED
Binary file
data/lib/openssl.rb CHANGED
@@ -1,43 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  require 'jopenssl/load'
4
-
5
- module OpenSSL
6
- autoload :Config, 'openssl/config' unless const_defined?(:Config, false)
7
- autoload :PKCS12, 'openssl/pkcs12'
8
- end
9
-
10
- =begin
11
- = Info
12
- 'OpenSSL for Ruby 2' project
13
- Copyright (C) 2002 Michal Rokos <[email protected]>
14
- All rights reserved.
15
-
16
- = Licence
17
- This program is licensed under the same licence as Ruby.
18
- (See the file 'LICENCE'.)
19
- =end
20
-
21
- require_relative 'openssl/bn'
22
- require_relative 'openssl/pkey'
23
- require_relative 'openssl/cipher'
24
- #require_relative 'openssl/config' if OpenSSL.const_defined?(:Config, false)
25
- require_relative 'openssl/digest'
26
- require_relative 'openssl/hmac'
27
- require_relative 'openssl/x509'
28
- require_relative 'openssl/ssl'
29
- require_relative 'openssl/pkcs5'
30
-
31
- module OpenSSL
32
- # call-seq:
33
- # OpenSSL.secure_compare(string, string) -> boolean
34
- #
35
- # Constant time memory comparison. Inputs are hashed using SHA-256 to mask
36
- # the length of the secret. Returns +true+ if the strings are identical,
37
- # +false+ otherwise.
38
- def self.secure_compare(a, b)
39
- hashed_a = OpenSSL::Digest.digest('SHA256', a)
40
- hashed_b = OpenSSL::Digest.digest('SHA256', b)
41
- OpenSSL.fixed_length_secure_compare(hashed_a, hashed_b) && a == b
42
- end
43
- end
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.12.1</version>
14
+ <version>0.14.0</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.68</bc.versions>
63
+ <bc.versions>1.71</bc.versions>
64
64
  <invoker.skip>${maven.test.skip}</invoker.skip>
65
65
  <invoker.test>${bc.versions}</invoker.test>
66
66
  <jruby.plugins.version>2.0.1</jruby.plugins.version>
67
67
  <jruby.switches>-W0</jruby.switches>
68
- <jruby.version>9.1.17.0</jruby.version>
69
- <jruby.versions>9.1.17.0</jruby.versions>
68
+ <jruby.version>9.2.19.0</jruby.version>
69
+ <jruby.versions>9.2.19.0</jruby.versions>
70
70
  <mavengem-wagon.version>1.0.3</mavengem-wagon.version>
71
71
  <mavengem.wagon.version>1.0.3</mavengem.wagon.version>
72
72
  <polyglot.dump.pom>pom.xml</polyglot.dump.pom>
@@ -76,18 +76,23 @@ DO NOT MODIFY - GENERATED CODE
76
76
  <dependencies>
77
77
  <dependency>
78
78
  <groupId>org.bouncycastle</groupId>
79
- <artifactId>bcprov-jdk15on</artifactId>
80
- <version>1.68</version>
79
+ <artifactId>bcprov-jdk18on</artifactId>
80
+ <version>1.71</version>
81
81
  </dependency>
82
82
  <dependency>
83
83
  <groupId>org.bouncycastle</groupId>
84
- <artifactId>bcpkix-jdk15on</artifactId>
85
- <version>1.68</version>
84
+ <artifactId>bcpkix-jdk18on</artifactId>
85
+ <version>1.71</version>
86
86
  </dependency>
87
87
  <dependency>
88
88
  <groupId>org.bouncycastle</groupId>
89
- <artifactId>bctls-jdk15on</artifactId>
90
- <version>1.68</version>
89
+ <artifactId>bctls-jdk18on</artifactId>
90
+ <version>1.71</version>
91
+ </dependency>
92
+ <dependency>
93
+ <groupId>org.bouncycastle</groupId>
94
+ <artifactId>bcutil-jdk18on</artifactId>
95
+ <version>1.71</version>
91
96
  </dependency>
92
97
  <dependency>
93
98
  <groupId>org.jruby</groupId>
@@ -269,6 +274,7 @@ DO NOT MODIFY - GENERATED CODE
269
274
  <configuration>
270
275
  <source>1.8</source>
271
276
  <target>1.8</target>
277
+ <release>8</release>
272
278
  <encoding>UTF-8</encoding>
273
279
  <debug>true</debug>
274
280
  <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.12.1
4
+ version: 0.14.0
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: 2022-02-02 00:00:00.000000000 Z
13
+ date: 2022-06-30 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.
@@ -42,9 +42,10 @@ files:
42
42
  - lib/openssl/pkey.rb
43
43
  - lib/openssl/ssl.rb
44
44
  - lib/openssl/x509.rb
45
- - lib/org/bouncycastle/bcpkix-jdk15on/1.68/bcpkix-jdk15on-1.68.jar
46
- - lib/org/bouncycastle/bcprov-jdk15on/1.68/bcprov-jdk15on-1.68.jar
47
- - lib/org/bouncycastle/bctls-jdk15on/1.68/bctls-jdk15on-1.68.jar
45
+ - lib/org/bouncycastle/bcpkix-jdk18on/1.71/bcpkix-jdk18on-1.71.jar
46
+ - lib/org/bouncycastle/bcprov-jdk18on/1.71/bcprov-jdk18on-1.71.jar
47
+ - lib/org/bouncycastle/bctls-jdk18on/1.71/bctls-jdk18on-1.71.jar
48
+ - lib/org/bouncycastle/bcutil-jdk18on/1.71/bcutil-jdk18on-1.71.jar
48
49
  - pom.xml
49
50
  homepage: https://github.com/jruby/jruby-openssl
50
51
  licenses:
@@ -67,11 +68,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
67
68
  - !ruby/object:Gem::Version
68
69
  version: '0'
69
70
  requirements:
70
- - jar org.bouncycastle:bcprov-jdk15on, 1.68
71
- - jar org.bouncycastle:bcpkix-jdk15on, 1.68
72
- - jar org.bouncycastle:bctls-jdk15on, 1.68
73
- rubyforge_project:
74
- rubygems_version: 2.6.14.1
71
+ - jar org.bouncycastle:bcprov-jdk18on, 1.71
72
+ - jar org.bouncycastle:bcpkix-jdk18on, 1.71
73
+ - jar org.bouncycastle:bctls-jdk18on, 1.71
74
+ - jar org.bouncycastle:bcutil-jdk18on, 1.71
75
+ rubygems_version: 3.1.6
75
76
  signing_key:
76
77
  specification_version: 4
77
78
  summary: JRuby OpenSSL