tem_ruby 0.12.0 → 0.13.0

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.13.0. Public bits in TEM buffer stats (fw 1.13).
2
+
1
3
  v0.12.0. Direct version checking in the TEM (fw 1.12) and firmware upload files.
2
4
 
3
5
  v0.11.7. Fixed edge case in SEClosure execution exception handling.
data/Rakefile CHANGED
@@ -11,6 +11,8 @@ Echoe.new('tem_ruby') do |p|
11
11
  p.summary = 'TEM (Trusted Execution Module) driver, written in and for ruby.'
12
12
  p.url = 'http://tem.rubyforge.org'
13
13
  p.dependencies = ['smartcard >=0.4.6']
14
+ p.development_dependencies = ['echoe >=3.2',
15
+ 'flexmock >=0.8.6']
14
16
 
15
17
  p.need_tar_gz = !Gem.win_platform?
16
18
  p.need_zip = !Gem.win_platform?
@@ -75,9 +75,10 @@ module Buffers
75
75
  i = 0
76
76
  while offset < response.length do
77
77
  stat[:buffers][i] =
78
- {:type => memory_types[read_tem_ubyte(response, offset) & 0x3f],
78
+ {:type => memory_types[read_tem_ubyte(response, offset) & 0x1F],
79
79
  :pinned => (read_tem_ubyte(response, offset) & 0x80) != 0,
80
80
  :free => (read_tem_ubyte(response, offset) & 0x40) == 0,
81
+ :public => (read_tem_ubyte(response, offset) & 0x20) != 0,
81
82
  :length => read_tem_ushort(response, offset + 1),
82
83
  :xlength => read_tem_ushort(response, offset + 3)}
83
84
  offset += 5
Binary file
data/tem_ruby.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{tem_ruby}
5
- s.version = "0.12.0"
5
+ s.version = "0.13.0"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Victor Costan"]
9
- s.date = %q{2009-11-10}
9
+ s.date = %q{2009-11-11}
10
10
  s.description = %q{TEM (Trusted Execution Module) driver, written in and for ruby.}
11
11
  s.email = %q{victor@costan.us}
12
12
  s.executables = ["tem_bench", "tem_ca", "tem_irb", "tem_proxy", "tem_stat", "tem_upload_fw"]
@@ -26,10 +26,16 @@ Gem::Specification.new do |s|
26
26
 
27
27
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
28
28
  s.add_runtime_dependency(%q<smartcard>, [">= 0.4.6"])
29
+ s.add_development_dependency(%q<echoe>, [">= 3.2"])
30
+ s.add_development_dependency(%q<flexmock>, [">= 0.8.6"])
29
31
  else
30
32
  s.add_dependency(%q<smartcard>, [">= 0.4.6"])
33
+ s.add_dependency(%q<echoe>, [">= 3.2"])
34
+ s.add_dependency(%q<flexmock>, [">= 0.8.6"])
31
35
  end
32
36
  else
33
37
  s.add_dependency(%q<smartcard>, [">= 0.4.6"])
38
+ s.add_dependency(%q<echoe>, [">= 3.2"])
39
+ s.add_dependency(%q<flexmock>, [">= 0.8.6"])
34
40
  end
35
41
  end
data/test/test_driver.rb CHANGED
@@ -45,6 +45,7 @@ class DriverTest < TemTestCase
45
45
  assert bstat[:buffers][b_ids[i]][:type].kind_of?(Symbol), "buffer stat does not show the memory type for a #{b_lengths[i]}-bytes buffer"
46
46
  assert_equal b_lengths[i], bstat[:buffers][b_ids[i]][:length], "bad length in buffer stat entry for a #{b_lengths[i]}-bytes buffer"
47
47
  assert_equal false, bstat[:buffers][b_ids[i]][:pinned], "bad pinned flag in buffer stat entry for a #{b_lengths[i]}-bytes buffer"
48
+ assert_equal true, bstat[:buffers][b_ids[i]][:public], "bad public flag in buffer stat entry for a #{b_lengths[i]}-bytes buffer"
48
49
  end
49
50
 
50
51
  b_ids.each { |bid| @tem.release_buffer(bid) }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tem_ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Costan
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-10 00:00:00 -05:00
12
+ date: 2009-11-11 00:00:00 -05:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -22,6 +22,26 @@ dependencies:
22
22
  - !ruby/object:Gem::Version
23
23
  version: 0.4.6
24
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: "3.2"
34
+ version:
35
+ - !ruby/object:Gem::Dependency
36
+ name: flexmock
37
+ type: :development
38
+ version_requirement:
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - ">="
42
+ - !ruby/object:Gem::Version
43
+ version: 0.8.6
44
+ version:
25
45
  description: TEM (Trusted Execution Module) driver, written in and for ruby.
26
46
  email: victor@costan.us
27
47
  executables: