jruby-openssl 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of jruby-openssl might be problematic. Click here for more details.
- data/lib/jopenssl.jar +0 -0
- data/lib/jopenssl/version.rb +1 -1
- data/test/test_cipher.rb +15 -0
- data/test/test_openssl.rb +20 -16
- metadata +3 -2
data/lib/jopenssl.jar
CHANGED
Binary file
|
data/lib/jopenssl/version.rb
CHANGED
data/test/test_cipher.rb
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
begin
|
2
|
+
require "openssl"
|
3
|
+
rescue LoadError
|
4
|
+
end
|
5
|
+
|
6
|
+
require "test/unit"
|
7
|
+
|
8
|
+
class TestCipher < Test::Unit::TestCase
|
9
|
+
def test_encrypt_takes_parameter
|
10
|
+
enc = OpenSSL::Cipher::Cipher.new('DES-EDE3-CBC')
|
11
|
+
enc.encrypt("123")
|
12
|
+
data = enc.update("password")
|
13
|
+
data << enc.final
|
14
|
+
end
|
15
|
+
end
|
data/test/test_openssl.rb
CHANGED
@@ -1,21 +1,25 @@
|
|
1
1
|
|
2
2
|
require 'java' if RUBY_PLATFORM =~ /java/
|
3
|
-
|
4
|
-
|
5
|
-
require
|
6
|
-
require 'openssl/test_digest'
|
7
|
-
require 'openssl/test_hmac'
|
8
|
-
require 'openssl/test_ns_spki'
|
9
|
-
require 'openssl/test_pair'
|
10
|
-
require 'openssl/test_pkey_rsa'
|
11
|
-
require 'openssl/test_ssl'
|
12
|
-
require 'openssl/test_x509cert'
|
13
|
-
require 'openssl/test_x509crl'
|
14
|
-
require 'openssl/test_x509ext'
|
15
|
-
require 'openssl/test_x509name'
|
16
|
-
require 'openssl/test_x509req'
|
17
|
-
require 'openssl/test_x509store'
|
3
|
+
|
4
|
+
def protect_require(name)
|
5
|
+
require name
|
18
6
|
rescue Exception => e
|
19
|
-
$stderr.puts "Had exception: #{e.inspect}"
|
7
|
+
$stderr.puts "Had exception in #{name}: #{e.inspect}"
|
20
8
|
$stderr.puts(*(e.backtrace))
|
21
9
|
end
|
10
|
+
|
11
|
+
protect_require 'openssl/test_asn1'
|
12
|
+
protect_require 'openssl/test_cipher'
|
13
|
+
protect_require 'openssl/test_digest'
|
14
|
+
protect_require 'openssl/test_hmac'
|
15
|
+
protect_require 'openssl/test_ns_spki'
|
16
|
+
protect_require 'openssl/test_pair'
|
17
|
+
protect_require 'openssl/test_pkey_rsa'
|
18
|
+
protect_require 'openssl/test_ssl'
|
19
|
+
protect_require 'openssl/test_x509cert'
|
20
|
+
protect_require 'openssl/test_x509crl'
|
21
|
+
protect_require 'openssl/test_x509ext'
|
22
|
+
protect_require 'openssl/test_x509name'
|
23
|
+
protect_require 'openssl/test_x509req'
|
24
|
+
protect_require 'openssl/test_x509store'
|
25
|
+
protect_require 'test_cipher'
|
metadata
CHANGED
@@ -45,6 +45,7 @@ files:
|
|
45
45
|
- lib/openssl/ssl.rb
|
46
46
|
- lib/openssl/x509.rb
|
47
47
|
- test/openssl
|
48
|
+
- test/test_cipher.rb
|
48
49
|
- test/test_openssl.rb
|
49
50
|
- test/ut_eof.rb
|
50
51
|
- test/openssl/ssl_server.rb
|
@@ -74,12 +75,12 @@ rubygems_version: 1.1.0
|
|
74
75
|
requirements: []
|
75
76
|
authors:
|
76
77
|
- Ola Bini and JRuby contributors
|
77
|
-
date: 2008-04-
|
78
|
+
date: 2008-04-27 23:00:00 +00:00
|
78
79
|
platform: ruby
|
79
80
|
test_files:
|
80
81
|
- test/test_openssl.rb
|
81
82
|
version: !ruby/object:Gem::Version
|
82
|
-
version: 0.2.
|
83
|
+
version: 0.2.2
|
83
84
|
require_paths:
|
84
85
|
- lib
|
85
86
|
dependencies: []
|