tem_openssl 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,5 @@
1
+ v0.3.4. Updated to the API of tem_ruby 0.10.0.
2
+
1
3
  v0.3.3. Updated to the API of tem_ruby 0.9.1.
2
4
 
3
5
  v0.3.2. Updated to the API of tem_ruby 0.7.1 (Tem#pubek instead of an ugly hack).
data/Rakefile ADDED
@@ -0,0 +1,21 @@
1
+ require 'rubygems'
2
+ gem 'echoe'
3
+ require 'echoe'
4
+
5
+ Echoe.new('tem_openssl') do |p|
6
+ p.project = 'tem' # rubyforge project
7
+
8
+ p.author = 'Victor Costan'
9
+ p.email = 'victor@costan.us'
10
+ p.summary = 'TEM (Trusted Execution Module) engine for OpenSSL.'
11
+ p.url = 'http://tem.rubyforge.org'
12
+ p.dependencies = ['tem_ruby >=0.9.0']
13
+
14
+ p.need_tar_gz = false
15
+ p.rdoc_pattern = /^(lib|bin|tasks|ext)|^BUILD|^README|^CHANGELOG|^TODO|^LICENSE|^COPYING$/
16
+ end
17
+
18
+ if $0 == __FILE__
19
+ Rake.application = Rake::Application.new
20
+ Rake.application.run
21
+ end
data/lib/ossl/executor.rb CHANGED
@@ -93,20 +93,9 @@ class Tem::OpenSSL::Executor
93
93
  end
94
94
 
95
95
  def connect_to_tem
96
- @terminal = Tem::SCard::JCOPRemoteTerminal.new
97
- if !@terminal.connect or @test_options[:no_tem]
98
- @terminal.disconnect
99
- @terminal = Tem::SCard::PCSCTerminal.new
100
- if !@terminal.connect or @test_options[:no_tem]
101
- @terminal.disconnect
102
- @terminal = nil
103
- end
104
- end
105
- unless @terminal.nil?
106
- @javacard = Tem::SCard::JavaCard.new(@terminal)
107
- @tem = Tem::Session.new(@javacard)
108
-
109
- @cleanup_procs << Proc.new { @tem.disconnect; @terminal.disconnect }
96
+ @tem = Tem.auto_tem
97
+ if @tem
98
+ @cleanup_procs << Proc.new { @tem.disconnect; }
110
99
  end
111
100
  end
112
101
 
data/lib/tem_openssl.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'rubygems'
1
2
  require 'tem_ruby'
2
3
 
3
4
  module Tem::OpenSSL
@@ -6,4 +7,3 @@ end
6
7
  require 'ossl/tem_tools.rb'
7
8
  require 'ossl/key.rb'
8
9
  require 'ossl/executor.rb'
9
-
data/tem_openssl.gemspec CHANGED
@@ -1,57 +1,40 @@
1
-
2
- # Gem::Specification for Tem_openssl-0.3.3
3
- # Originally generated by Echoe
1
+ # -*- encoding: utf-8 -*-
4
2
 
5
3
  Gem::Specification.new do |s|
6
4
  s.name = %q{tem_openssl}
7
- s.version = "0.3.3"
8
-
9
- s.specification_version = 2 if s.respond_to? :specification_version=
5
+ s.version = "0.3.4"
10
6
 
11
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
12
8
  s.authors = ["Victor Costan"]
13
- s.date = %q{2008-06-13}
9
+ s.date = %q{2009-04-08}
14
10
  s.default_executable = %q{openssl_tem}
15
11
  s.description = %q{TEM (Trusted Execution Module) engine for OpenSSL.}
16
12
  s.email = %q{victor@costan.us}
17
13
  s.executables = ["openssl_tem"]
18
14
  s.extra_rdoc_files = ["bin/openssl_tem", "LICENSE", "lib/ossl/key.rb", "lib/ossl/executor.rb", "lib/ossl/tem_tools.rb", "lib/tem_openssl.rb", "README", "CHANGELOG"]
19
- s.files = ["bin/openssl_tem", "Manifest", "LICENSE", "test/test_executor.rb", "lib/ossl/key.rb", "lib/ossl/executor.rb", "lib/ossl/tem_tools.rb", "lib/tem_openssl.rb", "README", "CHANGELOG", "tem_openssl.gemspec"]
15
+ s.files = ["bin/openssl_tem", "Manifest", "LICENSE", "test/test_executor.rb", "lib/ossl/key.rb", "lib/ossl/executor.rb", "lib/ossl/tem_tools.rb", "lib/tem_openssl.rb", "README", "CHANGELOG", "tem_openssl.gemspec", "Rakefile"]
20
16
  s.has_rdoc = true
21
17
  s.homepage = %q{http://tem.rubyforge.org}
22
18
  s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Tem_openssl", "--main", "README"]
23
19
  s.require_paths = ["lib"]
24
20
  s.rubyforge_project = %q{tem}
25
- s.rubygems_version = %q{1.1.1}
21
+ s.rubygems_version = %q{1.3.1}
26
22
  s.summary = %q{TEM (Trusted Execution Module) engine for OpenSSL.}
27
23
  s.test_files = ["test/test_executor.rb"]
28
24
 
29
- s.add_dependency(%q<tem_ruby>, [">= 0.9.0"])
30
- end
25
+ if s.respond_to? :specification_version then
26
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
27
+ s.specification_version = 2
31
28
 
32
-
33
- # # Original Rakefile source (requires the Echoe gem):
34
- #
35
- # require 'rubygems'
36
- # gem 'echoe'
37
- # require 'echoe'
38
- #
39
- # Echoe.new('tem_openssl') do |p|
40
- # p.project = 'tem' # rubyforge project
41
- # p.docs_host = "costan@rubyforge.org:/var/www/gforge-projects/tem/rdoc/"
42
- #
43
- # p.author = 'Victor Costan'
44
- # p.email = 'victor@costan.us'
45
- # p.summary = 'TEM (Trusted Execution Module) engine for OpenSSL.'
46
- # p.url = 'http://tem.rubyforge.org'
47
- # p.dependencies = ['tem_ruby >=0.9.0']
48
- #
49
- # p.need_tar_gz = true
50
- # p.need_zip = true
51
- # p.rdoc_pattern = /^(lib|bin|tasks|ext)|^BUILD|^README|^CHANGELOG|^TODO|^LICENSE|^COPYING$/
52
- # end
53
- #
54
- # if $0 == __FILE__
55
- # Rake.application = Rake::Application.new
56
- # Rake.application.run
57
- # end
29
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
30
+ s.add_runtime_dependency(%q<tem_ruby>, [">= 0.9.0"])
31
+ s.add_development_dependency(%q<echoe>, [">= 0"])
32
+ else
33
+ s.add_dependency(%q<tem_ruby>, [">= 0.9.0"])
34
+ s.add_dependency(%q<echoe>, [">= 0"])
35
+ end
36
+ else
37
+ s.add_dependency(%q<tem_ruby>, [">= 0.9.0"])
38
+ s.add_dependency(%q<echoe>, [">= 0"])
39
+ end
40
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tem_openssl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Costan
@@ -9,11 +9,12 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-06-13 00:00:00 -04:00
12
+ date: 2009-04-08 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: tem_ruby
17
+ type: :runtime
17
18
  version_requirement:
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
@@ -21,6 +22,16 @@ dependencies:
21
22
  - !ruby/object:Gem::Version
22
23
  version: 0.9.0
23
24
  version:
25
+ - !ruby/object:Gem::Dependency
26
+ name: echoe
27
+ type: :development
28
+ version_requirement:
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: "0"
34
+ version:
24
35
  description: TEM (Trusted Execution Module) engine for OpenSSL.
25
36
  email: victor@costan.us
26
37
  executables:
@@ -48,6 +59,7 @@ files:
48
59
  - README
49
60
  - CHANGELOG
50
61
  - tem_openssl.gemspec
62
+ - Rakefile
51
63
  has_rdoc: true
52
64
  homepage: http://tem.rubyforge.org
53
65
  post_install_message:
@@ -70,12 +82,12 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
82
  requirements:
71
83
  - - ">="
72
84
  - !ruby/object:Gem::Version
73
- version: "0"
85
+ version: "1.2"
74
86
  version:
75
87
  requirements: []
76
88
 
77
89
  rubyforge_project: tem
78
- rubygems_version: 1.1.1
90
+ rubygems_version: 1.3.1
79
91
  signing_key:
80
92
  specification_version: 2
81
93
  summary: TEM (Trusted Execution Module) engine for OpenSSL.