jruby-openssl 0.10.0-java → 0.10.5-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. checksums.yaml +4 -4
  2. data/History.md +58 -0
  3. data/Mavenfile +45 -63
  4. data/README.md +6 -9
  5. data/Rakefile +4 -0
  6. data/lib/jopenssl.jar +0 -0
  7. data/lib/jopenssl/_compat23.rb +71 -0
  8. data/lib/jopenssl/load.rb +13 -7
  9. data/lib/jopenssl/version.rb +8 -3
  10. data/lib/jopenssl19/openssl/ssl-internal.rb +104 -0
  11. data/lib/jopenssl22/openssl/ssl.rb +16 -16
  12. data/lib/jopenssl23/openssl.rb +1 -1
  13. data/lib/jopenssl23/openssl/bn.rb +2 -1
  14. data/lib/jopenssl23/openssl/buffering.rb +39 -35
  15. data/lib/jopenssl23/openssl/config.rb +65 -64
  16. data/lib/jopenssl23/openssl/digest.rb +1 -1
  17. data/lib/jopenssl23/openssl/pkey.rb +22 -34
  18. data/lib/jopenssl23/openssl/ssl.rb +205 -124
  19. data/lib/jopenssl23/openssl/x509.rb +76 -1
  20. data/lib/openssl/bn.rb +1 -3
  21. data/lib/openssl/buffering.rb +1 -3
  22. data/lib/openssl/cipher.rb +1 -3
  23. data/lib/openssl/config.rb +10 -4
  24. data/lib/openssl/digest.rb +1 -3
  25. data/lib/openssl/pkcs12.rb +1 -3
  26. data/lib/openssl/pkcs5.rb +22 -0
  27. data/lib/openssl/ssl-internal.rb +1 -3
  28. data/lib/openssl/ssl.rb +1 -3
  29. data/lib/openssl/x509-internal.rb +1 -3
  30. data/lib/openssl/x509.rb +1 -3
  31. data/lib/org/bouncycastle/bcpkix-jdk15on/1.65/bcpkix-jdk15on-1.65.jar +0 -0
  32. data/lib/org/bouncycastle/bcprov-jdk15on/1.65/bcprov-jdk15on-1.65.jar +0 -0
  33. data/lib/org/bouncycastle/bctls-jdk15on/1.65/bctls-jdk15on-1.65.jar +0 -0
  34. data/pom.xml +94 -283
  35. metadata +16 -63
  36. data/integration/1.47/pom.xml +0 -15
  37. data/integration/1.48/pom.xml +0 -15
  38. data/integration/1.49/pom.xml +0 -15
  39. data/integration/1.50/pom.xml +0 -15
  40. data/integration/Mavenfile +0 -57
  41. data/integration/pom.xml +0 -122
  42. data/lib/jopenssl24.rb +0 -112
  43. data/lib/openssl/pkcs7.rb +0 -5
  44. data/lib/org/bouncycastle/bcpkix-jdk15on/1.59/bcpkix-jdk15on-1.59.jar +0 -0
  45. data/lib/org/bouncycastle/bcprov-jdk15on/1.59/bcprov-jdk15on-1.59.jar +0 -0
  46. data/lib/org/bouncycastle/bctls-jdk15on/1.59/bctls-jdk15on-1.59.jar +0 -0
metadata CHANGED
@@ -1,60 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jruby-openssl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.5
5
5
  platform: java
6
6
  authors:
7
+ - Karol Bucek
7
8
  - Ola Bini
8
9
  - JRuby contributors
9
10
  autorequire:
10
11
  bindir: bin
11
12
  cert_chain: []
12
- date: 2018-05-17 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ~>
18
- - !ruby/object:Gem::Version
19
- version: '0.1'
20
- name: jar-dependencies
21
- prerelease: false
22
- type: :development
23
- version_requirements: !ruby/object:Gem::Requirement
24
- requirements:
25
- - - ~>
26
- - !ruby/object:Gem::Version
27
- version: '0.1'
28
- - !ruby/object:Gem::Dependency
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ~>
32
- - !ruby/object:Gem::Version
33
- version: 1.1.0
34
- name: mocha
35
- prerelease: false
36
- type: :development
37
- version_requirements: !ruby/object:Gem::Requirement
38
- requirements:
39
- - - ~>
40
- - !ruby/object:Gem::Version
41
- version: 1.1.0
42
- - !ruby/object:Gem::Dependency
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ~>
46
- - !ruby/object:Gem::Version
47
- version: '3.0'
48
- name: ruby-maven
49
- prerelease: false
50
- type: :development
51
- version_requirements: !ruby/object:Gem::Requirement
52
- requirements:
53
- - - ~>
54
- - !ruby/object:Gem::Version
55
- version: '3.0'
13
+ date: 2020-10-01 00:00:00.000000000 Z
14
+ dependencies: []
56
15
  description: JRuby-OpenSSL is an add-on gem for JRuby that emulates the Ruby OpenSSL native library.
57
- email: ola.bini@gmail.com
16
+ email: self+jruby-openssl@kares.org
58
17
  executables: []
59
18
  extensions: []
60
19
  extra_rdoc_files: []
@@ -64,13 +23,8 @@ files:
64
23
  - Mavenfile
65
24
  - README.md
66
25
  - Rakefile
67
- - integration/1.47/pom.xml
68
- - integration/1.48/pom.xml
69
- - integration/1.49/pom.xml
70
- - integration/1.50/pom.xml
71
- - integration/Mavenfile
72
- - integration/pom.xml
73
26
  - lib/jopenssl.jar
27
+ - lib/jopenssl/_compat23.rb
74
28
  - lib/jopenssl/load.rb
75
29
  - lib/jopenssl/version.rb
76
30
  - lib/jopenssl19/openssl.rb
@@ -108,7 +62,6 @@ files:
108
62
  - lib/jopenssl23/openssl/pkey.rb
109
63
  - lib/jopenssl23/openssl/ssl.rb
110
64
  - lib/jopenssl23/openssl/x509.rb
111
- - lib/jopenssl24.rb
112
65
  - lib/jruby-openssl.rb
113
66
  - lib/openssl.rb
114
67
  - lib/openssl/bn.rb
@@ -117,15 +70,15 @@ files:
117
70
  - lib/openssl/config.rb
118
71
  - lib/openssl/digest.rb
119
72
  - lib/openssl/pkcs12.rb
120
- - lib/openssl/pkcs7.rb
73
+ - lib/openssl/pkcs5.rb
121
74
  - lib/openssl/pkey.rb
122
75
  - lib/openssl/ssl-internal.rb
123
76
  - lib/openssl/ssl.rb
124
77
  - lib/openssl/x509-internal.rb
125
78
  - lib/openssl/x509.rb
126
- - lib/org/bouncycastle/bcpkix-jdk15on/1.59/bcpkix-jdk15on-1.59.jar
127
- - lib/org/bouncycastle/bcprov-jdk15on/1.59/bcprov-jdk15on-1.59.jar
128
- - lib/org/bouncycastle/bctls-jdk15on/1.59/bctls-jdk15on-1.59.jar
79
+ - lib/org/bouncycastle/bcpkix-jdk15on/1.65/bcpkix-jdk15on-1.65.jar
80
+ - lib/org/bouncycastle/bcprov-jdk15on/1.65/bcprov-jdk15on-1.65.jar
81
+ - lib/org/bouncycastle/bctls-jdk15on/1.65/bctls-jdk15on-1.65.jar
129
82
  - pom.xml
130
83
  homepage: https://github.com/jruby/jruby-openssl
131
84
  licenses:
@@ -139,20 +92,20 @@ require_paths:
139
92
  - lib
140
93
  required_ruby_version: !ruby/object:Gem::Requirement
141
94
  requirements:
142
- - - '>='
95
+ - - ">="
143
96
  - !ruby/object:Gem::Version
144
97
  version: 1.9.3
145
98
  required_rubygems_version: !ruby/object:Gem::Requirement
146
99
  requirements:
147
- - - '>='
100
+ - - ">="
148
101
  - !ruby/object:Gem::Version
149
102
  version: 2.4.8
150
103
  requirements:
151
- - jar org.bouncycastle:bcprov-jdk15on, 1.59
152
- - jar org.bouncycastle:bcpkix-jdk15on, 1.59
153
- - jar org.bouncycastle:bctls-jdk15on, 1.59
104
+ - jar org.bouncycastle:bcprov-jdk15on, 1.65
105
+ - jar org.bouncycastle:bcpkix-jdk15on, 1.65
106
+ - jar org.bouncycastle:bctls-jdk15on, 1.65
154
107
  rubyforge_project:
155
- rubygems_version: 2.4.6
108
+ rubygems_version: 2.6.14.1
156
109
  signing_key:
157
110
  specification_version: 4
158
111
  summary: JRuby OpenSSL
@@ -1,15 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
- <modelVersion>4.0.0</modelVersion>
5
- <parent>
6
- <groupId>none</groupId>
7
- <artifactId>base</artifactId>
8
- <version>0</version>
9
- </parent>
10
- <artifactId>bouncy-castle</artifactId>
11
- <version>1.47</version>
12
- <properties>
13
- <bc.version>${project.version}</bc.version>
14
- </properties>
15
- </project>
@@ -1,15 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
- <modelVersion>4.0.0</modelVersion>
5
- <parent>
6
- <groupId>none</groupId>
7
- <artifactId>base</artifactId>
8
- <version>0</version>
9
- </parent>
10
- <artifactId>bouncy-castle</artifactId>
11
- <version>1.48</version>
12
- <properties>
13
- <bc.version>${project.version}</bc.version>
14
- </properties>
15
- </project>
@@ -1,15 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
- <modelVersion>4.0.0</modelVersion>
5
- <parent>
6
- <groupId>none</groupId>
7
- <artifactId>base</artifactId>
8
- <version>0</version>
9
- </parent>
10
- <artifactId>bouncy-castle</artifactId>
11
- <version>1.49</version>
12
- <properties>
13
- <bc.version>${project.version}</bc.version>
14
- </properties>
15
- </project>
@@ -1,15 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
- <modelVersion>4.0.0</modelVersion>
5
- <parent>
6
- <groupId>none</groupId>
7
- <artifactId>base</artifactId>
8
- <version>0</version>
9
- </parent>
10
- <artifactId>bouncy-castle</artifactId>
11
- <version>1.50</version>
12
- <properties>
13
- <bc.version>${project.version}</bc.version>
14
- </properties>
15
- </project>
@@ -1,57 +0,0 @@
1
- #-*- mode: ruby -*-
2
-
3
- id 'none:base:0'
4
- packaging :pom
5
-
6
- snapshot_repository :id => 'jruby', :url => 'http://ci.jruby.org/snapshots/maven'
7
-
8
- # TODO should be setup whenever a plugin uses gems
9
- plugin_repository :id => 'rubygems-releases', :url => 'http://rubygems-proxy.torquebox.org/releases'
10
-
11
- base_path = File.expand_path('..', File.dirname(__FILE__))
12
- bc_version = File.read("#{base_path}/lib/jopenssl/version.rb")[/BOUNCY_CASTLE_VERSION\s?=\s?'(.*?)'/, 1]
13
-
14
- properties( 'bc.version' => bc_version, # to satisfy maven
15
- 'jruby.openssl.version' => '0.9.7', # to satisfy maven
16
- # use the gem-maven-plugin repo for the tests
17
- 'gem.home' => '${basedir}/../pkg/rubygems',
18
- 'gem.path' => '${basedir}/../pkg/rubygems',
19
- 'tesla.dump.pom' => 'pom.xml',
20
- 'tesla.dump.readonly' => true,
21
- 'jruby.version' => '1.7.19', # for jruby-maven-plugins
22
- 'jruby.plugins.version' => '1.0.9' )
23
-
24
- jruby_plugin :gem, :gemHomes => { 'gem-maven-plugin' => '${gem.home}' } do
25
- execute_goal :initialize
26
-
27
- gem 'jar-dependencies', '0.1.8' # TODO change after 0.1.15 is out
28
- spec = Gem::Specification.load "#{base_path}/jruby-openssl.gemspec"
29
- spec.development_dependencies.each do |dev_spec|
30
- gem dev_spec.name, *dev_spec.requirements_list
31
- end
32
-
33
- # make sure we have those in the local repo
34
- # BUT not be part of the runit-classloader
35
- # otherwise jruby-1.7.x and jruby-1.6.x will not use those
36
- # required in the test_*.rb files
37
- jar 'org.bouncycastle', 'bcpkix-jdk15on', '${bc.version}'
38
- jar 'org.bouncycastle', 'bcprov-jdk15on', '${bc.version}'
39
- #spec.requirements.each do |req|
40
- # req = req.sub('jar', '').split(',').each(&:strip!)
41
- # jar req[0], req[1]
42
- #end
43
-
44
- gem 'jruby-openssl', '${jruby.openssl.version}'
45
-
46
- end
47
-
48
- jruby_plugin :runit do
49
- execute_goal( :test,
50
- :env => { 'BC_VERSION' => '${bc.version}' },
51
- :jrubySwitches => '-I../../lib',
52
- :runitDirectory => '../../src/test/ruby/**/test_*.rb',
53
- :versions => '${jruby.versions}',
54
- :modes => '${jruby.modes}' )
55
- end
56
-
57
- # vim: syntax=Ruby
@@ -1,122 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?>
2
- <project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns="http://maven.apache.org/POM/4.0.0"
3
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
4
- <modelVersion>4.0.0</modelVersion>
5
- <groupId>none</groupId>
6
- <artifactId>base</artifactId>
7
- <version>0</version>
8
- <packaging>pom</packaging>
9
- <name>integration</name>
10
- <properties>
11
- <jruby.version>1.7.19</jruby.version>
12
- <tesla.dump.readonly>true</tesla.dump.readonly>
13
- <jruby.openssl.version>0.9.7</jruby.openssl.version>
14
- <gem.path>${basedir}/../pkg/rubygems</gem.path>
15
- <jruby.plugins.version>1.0.9</jruby.plugins.version>
16
- <gem.home>${basedir}/../pkg/rubygems</gem.home>
17
- <bc.version>1.50</bc.version>
18
- <tesla.dump.pom>pom.xml</tesla.dump.pom>
19
- </properties>
20
- <repositories>
21
- <repository>
22
- <releases>
23
- <enabled>false</enabled>
24
- </releases>
25
- <snapshots>
26
- <enabled>true</enabled>
27
- </snapshots>
28
- <id>jruby</id>
29
- <url>http://ci.jruby.org/snapshots/maven</url>
30
- </repository>
31
- </repositories>
32
- <pluginRepositories>
33
- <pluginRepository>
34
- <id>rubygems-releases</id>
35
- <url>http://rubygems-proxy.torquebox.org/releases</url>
36
- </pluginRepository>
37
- </pluginRepositories>
38
- <build>
39
- <plugins>
40
- <plugin>
41
- <groupId>de.saumya.mojo</groupId>
42
- <artifactId>gem-maven-plugin</artifactId>
43
- <version>${jruby.plugins.version}</version>
44
- <executions>
45
- <execution>
46
- <goals>
47
- <goal>initialize</goal>
48
- </goals>
49
- </execution>
50
- </executions>
51
- <dependencies>
52
- <dependency>
53
- <groupId>rubygems</groupId>
54
- <artifactId>jar-dependencies</artifactId>
55
- <version>0.1.8</version>
56
- <type>gem</type>
57
- </dependency>
58
- <dependency>
59
- <groupId>rubygems</groupId>
60
- <artifactId>jar-dependencies</artifactId>
61
- <version>[0.1.0,0.1.99999]</version>
62
- <type>gem</type>
63
- </dependency>
64
- <dependency>
65
- <groupId>rubygems</groupId>
66
- <artifactId>mocha</artifactId>
67
- <version>[1.1.0,1.1.99999]</version>
68
- <type>gem</type>
69
- </dependency>
70
- <dependency>
71
- <groupId>rubygems</groupId>
72
- <artifactId>ruby-maven</artifactId>
73
- <version>[0,)</version>
74
- <type>gem</type>
75
- </dependency>
76
- <dependency>
77
- <groupId>org.bouncycastle</groupId>
78
- <artifactId>bcpkix-jdk15on</artifactId>
79
- <version>${bc.version}</version>
80
- </dependency>
81
- <dependency>
82
- <groupId>org.bouncycastle</groupId>
83
- <artifactId>bcprov-jdk15on</artifactId>
84
- <version>${bc.version}</version>
85
- </dependency>
86
- <dependency>
87
- <groupId>rubygems</groupId>
88
- <artifactId>jruby-openssl</artifactId>
89
- <version>${jruby.openssl.version}</version>
90
- <type>gem</type>
91
- </dependency>
92
- </dependencies>
93
- <configuration>
94
- <gemHomes>
95
- <gem-maven-plugin>${gem.home}</gem-maven-plugin>
96
- </gemHomes>
97
- </configuration>
98
- </plugin>
99
- <plugin>
100
- <groupId>de.saumya.mojo</groupId>
101
- <artifactId>runit-maven-plugin</artifactId>
102
- <version>${jruby.plugins.version}</version>
103
- <executions>
104
- <execution>
105
- <goals>
106
- <goal>test</goal>
107
- </goals>
108
- <configuration>
109
- <env>
110
- <BC_VERSION>${bc.version}</BC_VERSION>
111
- </env>
112
- <jrubySwitches>-I../../lib</jrubySwitches>
113
- <runitDirectory>../../src/test/ruby/**/test_*.rb</runitDirectory>
114
- <versions>${jruby.versions}</versions>
115
- <modes>${jruby.modes}</modes>
116
- </configuration>
117
- </execution>
118
- </executions>
119
- </plugin>
120
- </plugins>
121
- </build>
122
- </project>
@@ -1,112 +0,0 @@
1
- # frozen_string_literal: false
2
-
3
- # Ruby 2.4 preliminary compatibility script, loaded after all (2.3) jruby-openssl files
4
-
5
- module OpenSSL
6
-
7
- module SSL
8
- class SSLContext
9
- # OpenSSL 1.1.0 introduced "security level"
10
- def security_level; 0 end
11
- def security_level=(level); raise NotImplementedError end
12
- end
13
- end
14
-
15
- module PKey
16
-
17
- class DH
18
-
19
- def set_key(pub_key, priv_key)
20
- self.public_key = pub_key
21
- self.priv_key = priv_key
22
- self
23
- end
24
-
25
- def set_pqg(p, q, g)
26
- self.p = p
27
- # TODO self.q = q
28
- if respond_to?(:q)
29
- self.q = q
30
- else
31
- OpenSSL.warn "JRuby-OpenSSL does not support setting q param on #{inspect}" if q
32
- end
33
- self.g = g
34
- self
35
- end
36
-
37
- end
38
-
39
- class DSA
40
-
41
- def set_key(pub_key, priv_key)
42
- self.public_key = pub_key
43
- self.priv_key = priv_key
44
- self
45
- end
46
-
47
- def set_pqg(p, q, g)
48
- self.p = p
49
- self.q = q
50
- self.g = g
51
- self
52
- end
53
-
54
- end
55
-
56
- class RSA
57
-
58
- def set_key(n, e, d)
59
- self.n = n
60
- self.e = e
61
- self.d = d
62
- self
63
- end
64
-
65
- def set_factors(p, q)
66
- self.p = p
67
- self.q = q
68
- self
69
- end
70
-
71
- def set_crt_params(dmp1, dmq1, iqmp)
72
- self.dmp1 = dmp1
73
- self.dmq1 = dmq1
74
- self.iqmp = iqmp
75
- self
76
- end
77
-
78
- end
79
-
80
- # openssl/lib/openssl/pkey.rb :
81
-
82
- class DH
83
-
84
- remove_const :DEFAULT_512 if const_defined?(:DEFAULT_512)
85
-
86
- DEFAULT_2048 = new <<-_end_of_pem_
87
- -----BEGIN DH PARAMETERS-----
88
- MIIBCAKCAQEA7E6kBrYiyvmKAMzQ7i8WvwVk9Y/+f8S7sCTN712KkK3cqd1jhJDY
89
- JbrYeNV3kUIKhPxWHhObHKpD1R84UpL+s2b55+iMd6GmL7OYmNIT/FccKhTcveab
90
- VBmZT86BZKYyf45hUF9FOuUM9xPzuK3Vd8oJQvfYMCd7LPC0taAEljQLR4Edf8E6
91
- YoaOffgTf5qxiwkjnlVZQc3whgnEt9FpVMvQ9eknyeGB5KHfayAc3+hUAvI3/Cr3
92
- 1bNveX5wInh5GDx1FGhKBZ+s1H+aedudCm7sCgRwv8lKWYGiHzObSma8A86KG+MD
93
- 7Lo5JquQ3DlBodj3IDyPrxIv96lvRPFtAwIBAg==
94
- -----END DH PARAMETERS-----
95
- _end_of_pem_
96
-
97
- end
98
-
99
- remove_const :DEFAULT_TMP_DH_CALLBACK if const_defined?(:DEFAULT_TMP_DH_CALLBACK)
100
-
101
- DEFAULT_TMP_DH_CALLBACK = lambda { |ctx, is_export, keylen|
102
- warn "using default DH parameters." if $VERBOSE
103
- case keylen
104
- when 1024 then OpenSSL::PKey::DH::DEFAULT_1024
105
- when 2048 then OpenSSL::PKey::DH::DEFAULT_2048
106
- else nil
107
- end
108
- }
109
-
110
- end
111
-
112
- end