pkcs11_protect_server 0.2.2-x86-mingw32 → 0.2.3-x86-mingw32
Sign up to get free protection for your applications and to get access to all the features.
data/ext/pk11_version.h
CHANGED
Binary file
|
Binary file
|
@@ -58,6 +58,15 @@ module ProtectServer
|
|
58
58
|
#
|
59
59
|
# See also PKCS11::Library#initialize[http://pkcs11.rubyforge.org/pkcs11/PKCS11/Library.html#initialize-instance_method] of pkcs11.gem
|
60
60
|
def initialize(so_path = nil, args = {})
|
61
|
+
super(so_path, args)
|
62
|
+
end
|
63
|
+
|
64
|
+
def load_library(so_path)
|
65
|
+
@so_path = resolve_so_path(so_path)
|
66
|
+
super(@so_path)
|
67
|
+
end
|
68
|
+
|
69
|
+
def resolve_so_path(so_path)
|
61
70
|
if [:sw, :hsm].include?(so_path)
|
62
71
|
if RUBY_PLATFORM =~ /mswin|mingw/
|
63
72
|
libctsw_so = "cryptoki.dll"
|
@@ -80,10 +89,9 @@ module ProtectServer
|
|
80
89
|
|
81
90
|
raise "#{libctsw_so} not found - please install ProtectServer PTK-C or set ENV['CRYPTOKI_SO']" unless so_path
|
82
91
|
end
|
83
|
-
|
84
|
-
@so_path = so_path
|
85
|
-
super(so_path, args)
|
92
|
+
return so_path
|
86
93
|
end
|
94
|
+
private :resolve_so_path
|
87
95
|
|
88
96
|
def vendor_const_get(name)
|
89
97
|
return ProtectServer.const_get(name) if ProtectServer.const_defined?(name)
|
@@ -47,4 +47,13 @@ class TestPkcs11ProtectServer < Test::Unit::TestCase
|
|
47
47
|
pk = PKCS11::ProtectServer::Library.new(so_path, :flags=>0)
|
48
48
|
pk.close
|
49
49
|
end
|
50
|
+
|
51
|
+
def test_loading2
|
52
|
+
pk = PKCS11::ProtectServer::Library.new
|
53
|
+
pk.load_library(:sw)
|
54
|
+
pk.C_GetFunctionList
|
55
|
+
pk.C_Initialize(:flags=>0)
|
56
|
+
pk.info
|
57
|
+
pk.close
|
58
|
+
end
|
50
59
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pkcs11_protect_server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 3
|
10
|
+
version: 0.2.3
|
11
11
|
platform: x86-mingw32
|
12
12
|
authors:
|
13
13
|
- Lars Kanis
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-01-25 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: pkcs11
|
@@ -25,12 +25,12 @@ dependencies:
|
|
25
25
|
requirements:
|
26
26
|
- - "="
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
hash:
|
28
|
+
hash: 17
|
29
29
|
segments:
|
30
30
|
- 0
|
31
31
|
- 2
|
32
|
-
-
|
33
|
-
version: 0.2.
|
32
|
+
- 3
|
33
|
+
version: 0.2.3
|
34
34
|
type: :runtime
|
35
35
|
version_requirements: *id001
|
36
36
|
- !ruby/object:Gem::Dependency
|
@@ -64,33 +64,33 @@ dependencies:
|
|
64
64
|
type: :development
|
65
65
|
version_requirements: *id003
|
66
66
|
- !ruby/object:Gem::Dependency
|
67
|
-
name:
|
67
|
+
name: rdoc
|
68
68
|
prerelease: false
|
69
69
|
requirement: &id004 !ruby/object:Gem::Requirement
|
70
70
|
none: false
|
71
71
|
requirements:
|
72
72
|
- - ~>
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
hash:
|
74
|
+
hash: 19
|
75
75
|
segments:
|
76
|
-
-
|
77
|
-
-
|
78
|
-
version: "
|
76
|
+
- 3
|
77
|
+
- 10
|
78
|
+
version: "3.10"
|
79
79
|
type: :development
|
80
80
|
version_requirements: *id004
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
|
-
name:
|
82
|
+
name: hoe
|
83
83
|
prerelease: false
|
84
84
|
requirement: &id005 !ruby/object:Gem::Requirement
|
85
85
|
none: false
|
86
86
|
requirements:
|
87
87
|
- - ~>
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
hash:
|
89
|
+
hash: 27
|
90
90
|
segments:
|
91
|
-
-
|
92
|
-
-
|
93
|
-
version: "
|
91
|
+
- 2
|
92
|
+
- 12
|
93
|
+
version: "2.12"
|
94
94
|
type: :development
|
95
95
|
version_requirements: *id005
|
96
96
|
description: This module allows Ruby programs to use vendor extensions for Safenet Protect Server.
|
@@ -158,10 +158,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
158
|
requirements: []
|
159
159
|
|
160
160
|
rubyforge_project: pkcs11_protect_server
|
161
|
-
rubygems_version: 1.8.
|
161
|
+
rubygems_version: 1.8.6
|
162
162
|
signing_key:
|
163
163
|
specification_version: 3
|
164
164
|
summary: Safenet-ProtectServer extensions for PKCS#11-Ruby
|
165
165
|
test_files:
|
166
|
-
- test/test_pkcs11_protect_server.rb
|
167
166
|
- test/test_pkcs11_protect_server_crypt.rb
|
167
|
+
- test/test_pkcs11_protect_server.rb
|