jruby-openssl 0.10.0-java → 0.10.1-java

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,8 +4,6 @@ elsif RUBY_VERSION > '2.2'
4
4
  load "jopenssl22/openssl/#{File.basename(__FILE__)}"
5
5
  elsif RUBY_VERSION > '2.1'
6
6
  load "jopenssl21/openssl/#{File.basename(__FILE__)}"
7
- elsif RUBY_VERSION > '1.9'
8
- load "jopenssl19/openssl/#{File.basename(__FILE__)}"
9
7
  else
10
- load "jopenssl18/openssl/#{File.basename(__FILE__)}"
8
+ load "jopenssl19/openssl/#{File.basename(__FILE__)}"
11
9
  end
@@ -28,10 +28,8 @@ module OpenSSL
28
28
  @der = str
29
29
  end
30
30
 
31
- p12_input_stream = java.io.StringBufferInputStream.new(@der)
32
-
33
31
  store = SecurityHelper.getKeyStore("PKCS12")
34
- store.load(p12_input_stream, password.to_java.to_char_array)
32
+ store.load(java.io.ByteArrayInputStream.new(@der.to_java_bytes), password.to_java.to_char_array)
35
33
 
36
34
  aliases = store.aliases
37
35
  aliases.each do |alias_name|
@@ -0,0 +1,22 @@
1
+ #--
2
+ # Ruby/OpenSSL Project
3
+ # Copyright (C) 2017 Ruby/OpenSSL Project Authors
4
+ #++
5
+
6
+ # JOpenSSL has these - here for explicit require 'openssl/pkcs5' compatibility
7
+
8
+ # module OpenSSL
9
+ # module PKCS5
10
+ # module_function
11
+ #
12
+ # # OpenSSL::PKCS5.pbkdf2_hmac has been renamed to OpenSSL::KDF.pbkdf2_hmac.
13
+ # # This method is provided for backwards compatibility.
14
+ # def pbkdf2_hmac(pass, salt, iter, keylen, digest)
15
+ # OpenSSL::KDF.pbkdf2_hmac(pass, salt: salt, iterations: iter, length: keylen, hash: digest)
16
+ # end
17
+ #
18
+ # def pbkdf2_hmac_sha1(pass, salt, iter, keylen)
19
+ # pbkdf2_hmac(pass, salt, iter, keylen, "sha1")
20
+ # end
21
+ # end
22
+ # end
@@ -1,7 +1,5 @@
1
1
  if RUBY_VERSION > '2.1'
2
2
  raise LoadError, "no such library in #{RUBY_VERSION}: openssl/ssl-internal.rb"
3
- elsif RUBY_VERSION > '1.9'
4
- load "jopenssl19/openssl/#{File.basename(__FILE__)}"
5
3
  else
6
- load "jopenssl18/openssl/#{File.basename(__FILE__)}"
4
+ load "jopenssl19/openssl/#{File.basename(__FILE__)}"
7
5
  end
@@ -4,8 +4,6 @@ elsif RUBY_VERSION > '2.2'
4
4
  load "jopenssl22/openssl/#{File.basename(__FILE__)}"
5
5
  elsif RUBY_VERSION > '2.1'
6
6
  load "jopenssl21/openssl/#{File.basename(__FILE__)}"
7
- elsif RUBY_VERSION > '1.9'
8
- load "jopenssl19/openssl/#{File.basename(__FILE__)}"
9
7
  else
10
- load "jopenssl18/openssl/#{File.basename(__FILE__)}"
8
+ load "jopenssl19/openssl/#{File.basename(__FILE__)}"
11
9
  end
@@ -1,7 +1,5 @@
1
1
  if RUBY_VERSION > '2.1'
2
2
  raise LoadError, "no such library in #{RUBY_VERSION}: openssl/x509-internal.rb"
3
- elsif RUBY_VERSION > '1.9'
4
- load "jopenssl19/openssl/#{File.basename(__FILE__)}"
5
3
  else
6
- load "jopenssl18/openssl/#{File.basename(__FILE__)}"
4
+ load "jopenssl19/openssl/#{File.basename(__FILE__)}"
7
5
  end
@@ -4,8 +4,6 @@ elsif RUBY_VERSION > '2.2'
4
4
  load "jopenssl22/openssl/#{File.basename(__FILE__)}"
5
5
  elsif RUBY_VERSION > '2.1'
6
6
  load "jopenssl21/openssl/#{File.basename(__FILE__)}"
7
- elsif RUBY_VERSION > '1.9'
8
- load "jopenssl19/openssl/#{File.basename(__FILE__)}"
9
7
  else
10
- load "jopenssl18/openssl/#{File.basename(__FILE__)}"
8
+ load "jopenssl19/openssl/#{File.basename(__FILE__)}"
11
9
  end
data/pom.xml CHANGED
@@ -11,7 +11,7 @@ DO NOT MODIFIY - GENERATED CODE
11
11
  <modelVersion>4.0.0</modelVersion>
12
12
  <groupId>rubygems</groupId>
13
13
  <artifactId>jruby-openssl</artifactId>
14
- <version>0.10.0</version>
14
+ <version>0.10.1</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>
@@ -57,7 +57,7 @@ DO NOT MODIFIY - GENERATED CODE
57
57
  </snapshotRepository>
58
58
  </distributionManagement>
59
59
  <properties>
60
- <bc.versions></bc.versions>
60
+ <bc.versions>1.59</bc.versions>
61
61
  <jruby.plugins.version>1.0.10</jruby.plugins.version>
62
62
  <invoker.skip>${maven.test.skip}</invoker.skip>
63
63
  <jruby.version>1.7.20</jruby.version>
@@ -109,7 +109,7 @@ DO NOT MODIFIY - GENERATED CODE
109
109
  <dependency>
110
110
  <groupId>org.jruby</groupId>
111
111
  <artifactId>jruby-core</artifactId>
112
- <version>1.7.17</version>
112
+ <version>1.7.20</version>
113
113
  <scope>provided</scope>
114
114
  </dependency>
115
115
  <dependency>
@@ -124,16 +124,6 @@ DO NOT MODIFIY - GENERATED CODE
124
124
  <id>rubygems-releases</id>
125
125
  <url>http://rubygems-proxy.torquebox.org/releases</url>
126
126
  </repository>
127
- <repository>
128
- <releases>
129
- <enabled>false</enabled>
130
- </releases>
131
- <snapshots>
132
- <enabled>true</enabled>
133
- </snapshots>
134
- <id>sonatype</id>
135
- <url>https://oss.sonatype.org/content/repositories/snapshots/</url>
136
- </repository>
137
127
  </repositories>
138
128
  <build>
139
129
  <extensions>
@@ -796,44 +786,6 @@ DO NOT MODIFIY - GENERATED CODE
796
786
  <jruby.versions>9.1.2.0</jruby.versions>
797
787
  </properties>
798
788
  </profile>
799
- <profile>
800
- <id>test-9.1.5.0</id>
801
- <build>
802
- <plugins>
803
- <plugin>
804
- <artifactId>maven-invoker-plugin</artifactId>
805
- <version>1.8</version>
806
- <executions>
807
- <execution>
808
- <goals>
809
- <goal>install</goal>
810
- <goal>run</goal>
811
- </goals>
812
- <configuration>
813
- <projectsDirectory>integration</projectsDirectory>
814
- <pomIncludes>
815
- <pomInclude>*/pom.xml</pomInclude>
816
- </pomIncludes>
817
- <streamLogs>true</streamLogs>
818
- <properties>
819
- <jruby.versions>${jruby.versions}</jruby.versions>
820
- <jruby.modes>${jruby.modes}</jruby.modes>
821
- <jruby.openssl.version>${project.version}</jruby.openssl.version>
822
- <bc.versions>${bc.versions}</bc.versions>
823
- <runit.dir>${runit.dir}</runit.dir>
824
- </properties>
825
- </configuration>
826
- </execution>
827
- </executions>
828
- </plugin>
829
- </plugins>
830
- </build>
831
- <properties>
832
- <bc.versions>1.55,1.56,1.57,1.58,1.59</bc.versions>
833
- <jruby.version>9.1.5.0</jruby.version>
834
- <jruby.versions>9.1.5.0</jruby.versions>
835
- </properties>
836
- </profile>
837
789
  <profile>
838
790
  <id>test-9.1.8.0</id>
839
791
  <build>
@@ -911,7 +863,7 @@ DO NOT MODIFIY - GENERATED CODE
911
863
  </properties>
912
864
  </profile>
913
865
  <profile>
914
- <id>test-9.1.13.0</id>
866
+ <id>test-9.1.16.0</id>
915
867
  <build>
916
868
  <plugins>
917
869
  <plugin>
@@ -944,12 +896,12 @@ DO NOT MODIFIY - GENERATED CODE
944
896
  </build>
945
897
  <properties>
946
898
  <bc.versions>1.55,1.56,1.57,1.58,1.59</bc.versions>
947
- <jruby.version>9.1.13.0</jruby.version>
948
- <jruby.versions>9.1.13.0</jruby.versions>
899
+ <jruby.version>9.1.16.0</jruby.version>
900
+ <jruby.versions>9.1.16.0</jruby.versions>
949
901
  </properties>
950
902
  </profile>
951
903
  <profile>
952
- <id>test-9.1.16.0</id>
904
+ <id>test-9.1.17.0</id>
953
905
  <build>
954
906
  <plugins>
955
907
  <plugin>
@@ -982,12 +934,12 @@ DO NOT MODIFIY - GENERATED CODE
982
934
  </build>
983
935
  <properties>
984
936
  <bc.versions>1.55,1.56,1.57,1.58,1.59</bc.versions>
985
- <jruby.version>9.1.16.0</jruby.version>
986
- <jruby.versions>9.1.16.0</jruby.versions>
937
+ <jruby.version>9.1.17.0</jruby.version>
938
+ <jruby.versions>9.1.17.0</jruby.versions>
987
939
  </properties>
988
940
  </profile>
989
941
  <profile>
990
- <id>test-9.1.17.0</id>
942
+ <id>test-9.2.0.0</id>
991
943
  <build>
992
944
  <plugins>
993
945
  <plugin>
@@ -1020,8 +972,8 @@ DO NOT MODIFIY - GENERATED CODE
1020
972
  </build>
1021
973
  <properties>
1022
974
  <bc.versions>1.55,1.56,1.57,1.58,1.59</bc.versions>
1023
- <jruby.version>9.1.17.0</jruby.version>
1024
- <jruby.versions>9.1.17.0</jruby.versions>
975
+ <jruby.version>9.2.0.0</jruby.version>
976
+ <jruby.versions>9.2.0.0</jruby.versions>
1025
977
  </properties>
1026
978
  </profile>
1027
979
  <profile>
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.10.0
4
+ version: 0.10.1
5
5
  platform: java
6
6
  authors:
7
7
  - Ola Bini
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-05-17 00:00:00.000000000 Z
12
+ date: 2018-06-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  requirement: !ruby/object:Gem::Requirement
@@ -64,13 +64,8 @@ files:
64
64
  - Mavenfile
65
65
  - README.md
66
66
  - 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
67
  - lib/jopenssl.jar
68
+ - lib/jopenssl/_compat23.rb
74
69
  - lib/jopenssl/load.rb
75
70
  - lib/jopenssl/version.rb
76
71
  - lib/jopenssl19/openssl.rb
@@ -108,7 +103,6 @@ files:
108
103
  - lib/jopenssl23/openssl/pkey.rb
109
104
  - lib/jopenssl23/openssl/ssl.rb
110
105
  - lib/jopenssl23/openssl/x509.rb
111
- - lib/jopenssl24.rb
112
106
  - lib/jruby-openssl.rb
113
107
  - lib/openssl.rb
114
108
  - lib/openssl/bn.rb
@@ -117,7 +111,7 @@ files:
117
111
  - lib/openssl/config.rb
118
112
  - lib/openssl/digest.rb
119
113
  - lib/openssl/pkcs12.rb
120
- - lib/openssl/pkcs7.rb
114
+ - lib/openssl/pkcs5.rb
121
115
  - lib/openssl/pkey.rb
122
116
  - lib/openssl/ssl-internal.rb
123
117
  - lib/openssl/ssl.rb
@@ -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>