naoki 1.0.1-x86-linux → 1.0.4-x86-linux
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Rakefile +19 -16
- data/ext/binding.c +1 -1
- metadata +4 -4
data/Rakefile
CHANGED
@@ -29,28 +29,31 @@ file MODULE => SRC do |t|
|
|
29
29
|
end
|
30
30
|
|
31
31
|
desc "Build the native library"
|
32
|
-
|
33
|
-
|
32
|
+
if RUBY_PLATFORM.match /linux/
|
33
|
+
task :build => MODULE
|
34
|
+
else
|
35
|
+
task :build
|
36
|
+
end
|
34
37
|
|
35
38
|
PKG_FILES = FileList[
|
36
|
-
|
39
|
+
"Rakefile", "ext/*.[ch]", "ext/extconf.rb", "ext/*.so"
|
37
40
|
]
|
38
41
|
|
39
42
|
SPEC = Gem::Specification.new do |s|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
43
|
+
s.name = "naoki"
|
44
|
+
s.version = "1.0.4"
|
45
|
+
s.platform = Gem::Platform::CURRENT
|
46
|
+
s.homepage = ""
|
47
|
+
s.summary = "C bindings for SafeNet DataSecure ICAPI"
|
48
|
+
s.files = PKG_FILES
|
49
|
+
s.required_ruby_version = '>= 1.9.2'
|
50
|
+
s.extensions = "ext/extconf.rb" if RUBY_PLATFORM.match /linux/
|
51
|
+
s.authors = ["Chris Apolzon", "Liron Yahdav"]
|
52
|
+
s.email = ["apolzon@gmail.com"]
|
53
|
+
s.description = "C bindings for SafeNet DataSecure ICAPI"
|
51
54
|
end
|
52
55
|
|
53
56
|
Rake::GemPackageTask.new(SPEC) do |pkg|
|
54
|
-
|
55
|
-
|
57
|
+
pkg.need_tar = true
|
58
|
+
pkg.need_zip = true
|
56
59
|
end
|
data/ext/binding.c
CHANGED
@@ -97,7 +97,7 @@ static VALUE decrypt(VALUE self, VALUE rb_algorithm, VALUE rb_key_name, VALUE rb
|
|
97
97
|
I_T_BYTE *decrypted_data;
|
98
98
|
int return_code;
|
99
99
|
|
100
|
-
return_code = I_C_CreateCipherSpec("AES/CBC/PKCS5Padding",
|
100
|
+
return_code = I_C_CreateCipherSpec("AES/CBC/PKCS5Padding", key_name, &cipherspec);
|
101
101
|
|
102
102
|
if(return_code != I_E_OK) {
|
103
103
|
close_session();
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: naoki
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 1.0.
|
5
|
+
version: 1.0.4
|
6
6
|
platform: x86-linux
|
7
7
|
authors:
|
8
8
|
- Chris Apolzon
|
@@ -11,11 +11,11 @@ autorequire:
|
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
13
|
|
14
|
-
date: 2011-03-
|
14
|
+
date: 2011-03-15 00:00:00 -07:00
|
15
15
|
default_executable:
|
16
16
|
dependencies: []
|
17
17
|
|
18
|
-
description: C
|
18
|
+
description: C bindings for SafeNet DataSecure ICAPI
|
19
19
|
email:
|
20
20
|
- apolzon@gmail.com
|
21
21
|
executables: []
|
@@ -26,8 +26,8 @@ extra_rdoc_files: []
|
|
26
26
|
|
27
27
|
files:
|
28
28
|
- Rakefile
|
29
|
-
- ext/binding.c
|
30
29
|
- ext/icapierr.h
|
30
|
+
- ext/binding.c
|
31
31
|
- ext/icapi.h
|
32
32
|
- ext/extconf.rb
|
33
33
|
- ext/libICAPI.so
|