jruby-openssl 0.11.0-java → 0.12.1-java

Sign up to get free protection for your applications and to get access to all the features.
Files changed (59) hide show
  1. checksums.yaml +4 -4
  2. data/History.md +20 -0
  3. data/Mavenfile +21 -26
  4. data/README.md +3 -0
  5. data/Rakefile +21 -35
  6. data/lib/jopenssl/load.rb +0 -14
  7. data/lib/jopenssl/version.rb +1 -1
  8. data/lib/jopenssl.jar +0 -0
  9. data/lib/openssl/bn.rb +40 -9
  10. data/lib/openssl/buffering.rb +478 -9
  11. data/lib/openssl/cipher.rb +67 -9
  12. data/lib/openssl/config.rb +496 -12
  13. data/lib/openssl/digest.rb +73 -9
  14. data/lib/openssl/hmac.rb +13 -0
  15. data/lib/openssl/marshal.rb +30 -0
  16. data/lib/openssl/pkcs5.rb +3 -3
  17. data/lib/openssl/pkey.rb +42 -5
  18. data/lib/openssl/ssl.rb +543 -9
  19. data/lib/openssl/x509.rb +369 -9
  20. data/lib/openssl.rb +43 -1
  21. data/pom.xml +35 -127
  22. metadata +8 -42
  23. data/lib/jopenssl19/openssl/bn.rb +0 -29
  24. data/lib/jopenssl19/openssl/buffering.rb +0 -449
  25. data/lib/jopenssl19/openssl/cipher.rb +0 -28
  26. data/lib/jopenssl19/openssl/config.rb +0 -472
  27. data/lib/jopenssl19/openssl/digest.rb +0 -32
  28. data/lib/jopenssl19/openssl/ssl-internal.rb +0 -223
  29. data/lib/jopenssl19/openssl/ssl.rb +0 -2
  30. data/lib/jopenssl19/openssl/x509-internal.rb +0 -115
  31. data/lib/jopenssl19/openssl/x509.rb +0 -2
  32. data/lib/jopenssl19/openssl.rb +0 -22
  33. data/lib/jopenssl21/openssl/bn.rb +0 -28
  34. data/lib/jopenssl21/openssl/buffering.rb +0 -1
  35. data/lib/jopenssl21/openssl/cipher.rb +0 -1
  36. data/lib/jopenssl21/openssl/config.rb +0 -1
  37. data/lib/jopenssl21/openssl/digest.rb +0 -1
  38. data/lib/jopenssl21/openssl/ssl.rb +0 -1
  39. data/lib/jopenssl21/openssl/x509.rb +0 -119
  40. data/lib/jopenssl21/openssl.rb +0 -22
  41. data/lib/jopenssl22/openssl/bn.rb +0 -39
  42. data/lib/jopenssl22/openssl/buffering.rb +0 -456
  43. data/lib/jopenssl22/openssl/cipher.rb +0 -28
  44. data/lib/jopenssl22/openssl/config.rb +0 -313
  45. data/lib/jopenssl22/openssl/digest.rb +0 -54
  46. data/lib/jopenssl22/openssl/ssl.rb +0 -330
  47. data/lib/jopenssl22/openssl/x509.rb +0 -139
  48. data/lib/jopenssl22/openssl.rb +0 -22
  49. data/lib/jopenssl23/openssl/bn.rb +0 -38
  50. data/lib/jopenssl23/openssl/buffering.rb +0 -455
  51. data/lib/jopenssl23/openssl/cipher.rb +0 -25
  52. data/lib/jopenssl23/openssl/config.rb +0 -474
  53. data/lib/jopenssl23/openssl/digest.rb +0 -43
  54. data/lib/jopenssl23/openssl/pkey.rb +0 -25
  55. data/lib/jopenssl23/openssl/ssl.rb +0 -508
  56. data/lib/jopenssl23/openssl/x509.rb +0 -208
  57. data/lib/jopenssl23/openssl.rb +0 -19
  58. data/lib/openssl/ssl-internal.rb +0 -5
  59. data/lib/openssl/x509-internal.rb +0 -5
data/pom.xml CHANGED
@@ -2,7 +2,7 @@
2
2
  <!--
3
3
 
4
4
 
5
- DO NOT MODIFIY - GENERATED CODE
5
+ DO NOT MODIFY - GENERATED CODE
6
6
 
7
7
 
8
8
  -->
@@ -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.11.0</version>
14
+ <version>0.12.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>
@@ -63,7 +63,7 @@ DO NOT MODIFIY - GENERATED CODE
63
63
  <bc.versions>1.68</bc.versions>
64
64
  <invoker.skip>${maven.test.skip}</invoker.skip>
65
65
  <invoker.test>${bc.versions}</invoker.test>
66
- <jruby.plugins.version>1.1.8</jruby.plugins.version>
66
+ <jruby.plugins.version>2.0.1</jruby.plugins.version>
67
67
  <jruby.switches>-W0</jruby.switches>
68
68
  <jruby.version>9.1.17.0</jruby.version>
69
69
  <jruby.versions>9.1.17.0</jruby.versions>
@@ -92,9 +92,15 @@ DO NOT MODIFIY - GENERATED CODE
92
92
  <dependency>
93
93
  <groupId>org.jruby</groupId>
94
94
  <artifactId>jruby-core</artifactId>
95
- <version>1.7.20</version>
95
+ <version>9.1.11.0</version>
96
96
  <scope>provided</scope>
97
97
  </dependency>
98
+ <dependency>
99
+ <groupId>javax.annotation</groupId>
100
+ <artifactId>javax.annotation-api</artifactId>
101
+ <version>1.3.1</version>
102
+ <scope>compile</scope>
103
+ </dependency>
98
104
  <dependency>
99
105
  <groupId>junit</groupId>
100
106
  <artifactId>junit</artifactId>
@@ -175,7 +181,7 @@ DO NOT MODIFIY - GENERATED CODE
175
181
  <version>${jruby.plugins.version}</version>
176
182
  <executions>
177
183
  <execution>
178
- <id>default-initialize</id>
184
+ <id>default-package</id>
179
185
  <configuration>
180
186
  <addProjectClasspath>false</addProjectClasspath>
181
187
  <libDirectory>something-which-does-not-exists</libDirectory>
@@ -209,7 +215,7 @@ DO NOT MODIFIY - GENERATED CODE
209
215
  <executable>java</executable>
210
216
  <classpathScope>compile</classpathScope>
211
217
  <arguments>
212
- <argument>-Djruby.bytecode.version=1.7</argument>
218
+ <argument>-Djruby.bytecode.version=1.8</argument>
213
219
  <argument>-classpath</argument>
214
220
  <classpath />
215
221
  <argument>org.jruby.anno.InvokerGenerator</argument>
@@ -240,7 +246,7 @@ DO NOT MODIFIY - GENERATED CODE
240
246
  </plugin>
241
247
  <plugin>
242
248
  <artifactId>maven-compiler-plugin</artifactId>
243
- <version>3.1</version>
249
+ <version>3.9.0</version>
244
250
  <executions>
245
251
  <execution>
246
252
  <id>compile-populators</id>
@@ -261,8 +267,8 @@ DO NOT MODIFIY - GENERATED CODE
261
267
  </execution>
262
268
  </executions>
263
269
  <configuration>
264
- <source>1.7</source>
265
- <target>1.7</target>
270
+ <source>1.8</source>
271
+ <target>1.8</target>
266
272
  <encoding>UTF-8</encoding>
267
273
  <debug>true</debug>
268
274
  <showWarnings>true</showWarnings>
@@ -356,67 +362,6 @@ DO NOT MODIFIY - GENERATED CODE
356
362
  </plugins>
357
363
  </build>
358
364
  <profiles>
359
- <profile>
360
- <id>module-info</id>
361
- <activation>
362
- <jdk>[9,)</jdk>
363
- </activation>
364
- <build>
365
- <plugins>
366
- <plugin>
367
- <artifactId>maven-compiler-plugin</artifactId>
368
- <version>3.8.1</version>
369
- <configuration>
370
- <source>9</source>
371
- <target>1.7</target>
372
- <release>9</release>
373
- <includes>
374
- <include>module-info.java</include>
375
- </includes>
376
- </configuration>
377
- </plugin>
378
- </plugins>
379
- </build>
380
- </profile>
381
- <profile>
382
- <id>test-9.0.5.0</id>
383
- <build>
384
- <plugins>
385
- <plugin>
386
- <artifactId>maven-invoker-plugin</artifactId>
387
- <version>1.8</version>
388
- <executions>
389
- <execution>
390
- <id>tests-with-different-bc-versions</id>
391
- <goals>
392
- <goal>install</goal>
393
- <goal>run</goal>
394
- </goals>
395
- <configuration>
396
- <projectsDirectory>integration</projectsDirectory>
397
- <pomIncludes>
398
- <pomInclude>*/pom.xml</pomInclude>
399
- </pomIncludes>
400
- <streamLogs>true</streamLogs>
401
- <properties>
402
- <jruby.versions>${jruby.versions}</jruby.versions>
403
- <jruby.modes>${jruby.modes}</jruby.modes>
404
- <jruby.openssl.version>${project.version}</jruby.openssl.version>
405
- <bc.versions>${bc.versions}</bc.versions>
406
- <runit.dir>${runit.dir}</runit.dir>
407
- </properties>
408
- </configuration>
409
- </execution>
410
- </executions>
411
- </plugin>
412
- </plugins>
413
- </build>
414
- <properties>
415
- <bc.versions>1.58,1.59,1.60,1.61,1.62,1.63,1.64,1.65</bc.versions>
416
- <jruby.version>9.0.5.0</jruby.version>
417
- <jruby.versions>9.0.5.0</jruby.versions>
418
- </properties>
419
- </profile>
420
365
  <profile>
421
366
  <id>test-9.1.2.0</id>
422
367
  <build>
@@ -426,6 +371,7 @@ DO NOT MODIFIY - GENERATED CODE
426
371
  <version>1.8</version>
427
372
  <executions>
428
373
  <execution>
374
+ <id>tests-with-different-bc-versions</id>
429
375
  <goals>
430
376
  <goal>install</goal>
431
377
  <goal>run</goal>
@@ -450,7 +396,7 @@ DO NOT MODIFIY - GENERATED CODE
450
396
  </plugins>
451
397
  </build>
452
398
  <properties>
453
- <bc.versions>1.58,1.59,1.60,1.61,1.62,1.63,1.64,1.65</bc.versions>
399
+ <bc.versions>1.60,1.61,1.62,1.63,1.64,1.65,1.66,1.67,1.68</bc.versions>
454
400
  <jruby.version>9.1.2.0</jruby.version>
455
401
  <jruby.versions>9.1.2.0</jruby.versions>
456
402
  </properties>
@@ -488,7 +434,7 @@ DO NOT MODIFIY - GENERATED CODE
488
434
  </plugins>
489
435
  </build>
490
436
  <properties>
491
- <bc.versions>1.58,1.59,1.60,1.61,1.62,1.63,1.64,1.65</bc.versions>
437
+ <bc.versions>1.60,1.61,1.62,1.63,1.64,1.65,1.66,1.67,1.68</bc.versions>
492
438
  <jruby.version>9.1.8.0</jruby.version>
493
439
  <jruby.versions>9.1.8.0</jruby.versions>
494
440
  </properties>
@@ -526,7 +472,7 @@ DO NOT MODIFIY - GENERATED CODE
526
472
  </plugins>
527
473
  </build>
528
474
  <properties>
529
- <bc.versions>1.58,1.59,1.60,1.61,1.62,1.63,1.64,1.65</bc.versions>
475
+ <bc.versions>1.60,1.61,1.62,1.63,1.64,1.65,1.66,1.67,1.68</bc.versions>
530
476
  <jruby.version>9.1.12.0</jruby.version>
531
477
  <jruby.versions>9.1.12.0</jruby.versions>
532
478
  </properties>
@@ -564,7 +510,7 @@ DO NOT MODIFIY - GENERATED CODE
564
510
  </plugins>
565
511
  </build>
566
512
  <properties>
567
- <bc.versions>1.58,1.59,1.60,1.61,1.62,1.63,1.64,1.65</bc.versions>
513
+ <bc.versions>1.60,1.61,1.62,1.63,1.64,1.65,1.66,1.67,1.68</bc.versions>
568
514
  <jruby.version>9.1.16.0</jruby.version>
569
515
  <jruby.versions>9.1.16.0</jruby.versions>
570
516
  </properties>
@@ -602,7 +548,7 @@ DO NOT MODIFIY - GENERATED CODE
602
548
  </plugins>
603
549
  </build>
604
550
  <properties>
605
- <bc.versions>1.58,1.59,1.60,1.61,1.62,1.63,1.64,1.65</bc.versions>
551
+ <bc.versions>1.60,1.61,1.62,1.63,1.64,1.65,1.66,1.67,1.68</bc.versions>
606
552
  <jruby.version>9.1.17.0</jruby.version>
607
553
  <jruby.versions>9.1.17.0</jruby.versions>
608
554
  </properties>
@@ -640,7 +586,7 @@ DO NOT MODIFIY - GENERATED CODE
640
586
  </plugins>
641
587
  </build>
642
588
  <properties>
643
- <bc.versions>1.58,1.59,1.60,1.61,1.62,1.63,1.64,1.65</bc.versions>
589
+ <bc.versions>1.60,1.61,1.62,1.63,1.64,1.65,1.66,1.67,1.68</bc.versions>
644
590
  <jruby.version>9.2.0.0</jruby.version>
645
591
  <jruby.versions>9.2.0.0</jruby.versions>
646
592
  </properties>
@@ -678,51 +624,13 @@ DO NOT MODIFIY - GENERATED CODE
678
624
  </plugins>
679
625
  </build>
680
626
  <properties>
681
- <bc.versions>1.58,1.59,1.60,1.61,1.62,1.63,1.64,1.65</bc.versions>
627
+ <bc.versions>1.60,1.61,1.62,1.63,1.64,1.65,1.66,1.67,1.68</bc.versions>
682
628
  <jruby.version>9.2.5.0</jruby.version>
683
629
  <jruby.versions>9.2.5.0</jruby.versions>
684
630
  </properties>
685
631
  </profile>
686
632
  <profile>
687
- <id>test-9.2.6.0</id>
688
- <build>
689
- <plugins>
690
- <plugin>
691
- <artifactId>maven-invoker-plugin</artifactId>
692
- <version>1.8</version>
693
- <executions>
694
- <execution>
695
- <goals>
696
- <goal>install</goal>
697
- <goal>run</goal>
698
- </goals>
699
- <configuration>
700
- <projectsDirectory>integration</projectsDirectory>
701
- <pomIncludes>
702
- <pomInclude>*/pom.xml</pomInclude>
703
- </pomIncludes>
704
- <streamLogs>true</streamLogs>
705
- <properties>
706
- <jruby.versions>${jruby.versions}</jruby.versions>
707
- <jruby.modes>${jruby.modes}</jruby.modes>
708
- <jruby.openssl.version>${project.version}</jruby.openssl.version>
709
- <bc.versions>${bc.versions}</bc.versions>
710
- <runit.dir>${runit.dir}</runit.dir>
711
- </properties>
712
- </configuration>
713
- </execution>
714
- </executions>
715
- </plugin>
716
- </plugins>
717
- </build>
718
- <properties>
719
- <bc.versions>1.58,1.59,1.60,1.61,1.62,1.63,1.64,1.65</bc.versions>
720
- <jruby.version>9.2.6.0</jruby.version>
721
- <jruby.versions>9.2.6.0</jruby.versions>
722
- </properties>
723
- </profile>
724
- <profile>
725
- <id>test-9.2.7.0</id>
633
+ <id>test-9.2.10.0</id>
726
634
  <build>
727
635
  <plugins>
728
636
  <plugin>
@@ -754,13 +662,13 @@ DO NOT MODIFIY - GENERATED CODE
754
662
  </plugins>
755
663
  </build>
756
664
  <properties>
757
- <bc.versions>1.58,1.59,1.60,1.61,1.62,1.63,1.64,1.65</bc.versions>
758
- <jruby.version>9.2.7.0</jruby.version>
759
- <jruby.versions>9.2.7.0</jruby.versions>
665
+ <bc.versions>1.60,1.61,1.62,1.63,1.64,1.65,1.66,1.67,1.68</bc.versions>
666
+ <jruby.version>9.2.10.0</jruby.version>
667
+ <jruby.versions>9.2.10.0</jruby.versions>
760
668
  </properties>
761
669
  </profile>
762
670
  <profile>
763
- <id>test-9.2.8.0</id>
671
+ <id>test-9.2.17.0</id>
764
672
  <build>
765
673
  <plugins>
766
674
  <plugin>
@@ -792,13 +700,13 @@ DO NOT MODIFIY - GENERATED CODE
792
700
  </plugins>
793
701
  </build>
794
702
  <properties>
795
- <bc.versions>1.58,1.59,1.60,1.61,1.62,1.63,1.64,1.65</bc.versions>
796
- <jruby.version>9.2.8.0</jruby.version>
797
- <jruby.versions>9.2.8.0</jruby.versions>
703
+ <bc.versions>1.60,1.61,1.62,1.63,1.64,1.65,1.66,1.67,1.68</bc.versions>
704
+ <jruby.version>9.2.17.0</jruby.version>
705
+ <jruby.versions>9.2.17.0</jruby.versions>
798
706
  </properties>
799
707
  </profile>
800
708
  <profile>
801
- <id>test-9.2.9.0</id>
709
+ <id>test-9.2.19.0</id>
802
710
  <build>
803
711
  <plugins>
804
712
  <plugin>
@@ -830,9 +738,9 @@ DO NOT MODIFIY - GENERATED CODE
830
738
  </plugins>
831
739
  </build>
832
740
  <properties>
833
- <bc.versions>1.58,1.59,1.60,1.61,1.62,1.63,1.64,1.65</bc.versions>
834
- <jruby.version>9.2.9.0</jruby.version>
835
- <jruby.versions>9.2.9.0</jruby.versions>
741
+ <bc.versions>1.60,1.61,1.62,1.63,1.64,1.65,1.66,1.67,1.68</bc.versions>
742
+ <jruby.version>9.2.19.0</jruby.version>
743
+ <jruby.versions>9.2.19.0</jruby.versions>
836
744
  </properties>
837
745
  </profile>
838
746
  <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.11.0
4
+ version: 0.12.1
5
5
  platform: java
6
6
  authors:
7
7
  - Karol Bucek
@@ -10,9 +10,10 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2021-10-25 00:00:00.000000000 Z
13
+ date: 2022-02-02 00:00:00.000000000 Z
14
14
  dependencies: []
15
- description: JRuby-OpenSSL is an add-on gem for JRuby that emulates the Ruby OpenSSL native library.
15
+ description: JRuby-OpenSSL is an add-on gem for JRuby that emulates the Ruby OpenSSL
16
+ native library.
16
17
  email: self+jruby-openssl@kares.org
17
18
  executables: []
18
19
  extensions: []
@@ -27,41 +28,6 @@ files:
27
28
  - lib/jopenssl/_compat23.rb
28
29
  - lib/jopenssl/load.rb
29
30
  - lib/jopenssl/version.rb
30
- - lib/jopenssl19/openssl.rb
31
- - lib/jopenssl19/openssl/bn.rb
32
- - lib/jopenssl19/openssl/buffering.rb
33
- - lib/jopenssl19/openssl/cipher.rb
34
- - lib/jopenssl19/openssl/config.rb
35
- - lib/jopenssl19/openssl/digest.rb
36
- - lib/jopenssl19/openssl/ssl-internal.rb
37
- - lib/jopenssl19/openssl/ssl.rb
38
- - lib/jopenssl19/openssl/x509-internal.rb
39
- - lib/jopenssl19/openssl/x509.rb
40
- - lib/jopenssl21/openssl.rb
41
- - lib/jopenssl21/openssl/bn.rb
42
- - lib/jopenssl21/openssl/buffering.rb
43
- - lib/jopenssl21/openssl/cipher.rb
44
- - lib/jopenssl21/openssl/config.rb
45
- - lib/jopenssl21/openssl/digest.rb
46
- - lib/jopenssl21/openssl/ssl.rb
47
- - lib/jopenssl21/openssl/x509.rb
48
- - lib/jopenssl22/openssl.rb
49
- - lib/jopenssl22/openssl/bn.rb
50
- - lib/jopenssl22/openssl/buffering.rb
51
- - lib/jopenssl22/openssl/cipher.rb
52
- - lib/jopenssl22/openssl/config.rb
53
- - lib/jopenssl22/openssl/digest.rb
54
- - lib/jopenssl22/openssl/ssl.rb
55
- - lib/jopenssl22/openssl/x509.rb
56
- - lib/jopenssl23/openssl.rb
57
- - lib/jopenssl23/openssl/bn.rb
58
- - lib/jopenssl23/openssl/buffering.rb
59
- - lib/jopenssl23/openssl/cipher.rb
60
- - lib/jopenssl23/openssl/config.rb
61
- - lib/jopenssl23/openssl/digest.rb
62
- - lib/jopenssl23/openssl/pkey.rb
63
- - lib/jopenssl23/openssl/ssl.rb
64
- - lib/jopenssl23/openssl/x509.rb
65
31
  - lib/jruby-openssl.rb
66
32
  - lib/openssl.rb
67
33
  - lib/openssl/bn.rb
@@ -69,12 +35,12 @@ files:
69
35
  - lib/openssl/cipher.rb
70
36
  - lib/openssl/config.rb
71
37
  - lib/openssl/digest.rb
38
+ - lib/openssl/hmac.rb
39
+ - lib/openssl/marshal.rb
72
40
  - lib/openssl/pkcs12.rb
73
41
  - lib/openssl/pkcs5.rb
74
42
  - lib/openssl/pkey.rb
75
- - lib/openssl/ssl-internal.rb
76
43
  - lib/openssl/ssl.rb
77
- - lib/openssl/x509-internal.rb
78
44
  - lib/openssl/x509.rb
79
45
  - lib/org/bouncycastle/bcpkix-jdk15on/1.68/bcpkix-jdk15on-1.68.jar
80
46
  - lib/org/bouncycastle/bcprov-jdk15on/1.68/bcprov-jdk15on-1.68.jar
@@ -94,12 +60,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
94
60
  requirements:
95
61
  - - ">="
96
62
  - !ruby/object:Gem::Version
97
- version: 1.9.3
63
+ version: 2.3.0
98
64
  required_rubygems_version: !ruby/object:Gem::Requirement
99
65
  requirements:
100
66
  - - ">="
101
67
  - !ruby/object:Gem::Version
102
- version: 2.4.8
68
+ version: '0'
103
69
  requirements:
104
70
  - jar org.bouncycastle:bcprov-jdk15on, 1.68
105
71
  - jar org.bouncycastle:bcpkix-jdk15on, 1.68
@@ -1,29 +0,0 @@
1
- #--
2
- #
3
- # $RCSfile$
4
- #
5
- # = Ruby-space definitions that completes C-space funcs for BN
6
- #
7
- # = Info
8
- # 'OpenSSL for Ruby 2' project
9
- # Copyright (C) 2002 Michal Rokos <m.rokos@sh.cvut.cz>
10
- # All rights reserved.
11
- #
12
- # = Licence
13
- # This program is licenced under the same licence as Ruby.
14
- # (See the file 'LICENCE'.)
15
- #
16
- # = Version
17
- # $Id$
18
- #
19
- #++
20
-
21
- ##
22
- # Add double dispatch to Integer
23
- #
24
- class Integer
25
- def to_bn
26
- OpenSSL::BN::new(self)
27
- end
28
- end # Integer
29
-