smartcard 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/lib/smartcard/pcsc/card.rb +3 -3
- data/lib/smartcard/pcsc/ffi_structs.rb +3 -0
- data/smartcard.gemspec +1 -1
- metadata +3 -3
data/CHANGELOG
CHANGED
data/lib/smartcard/pcsc/card.rb
CHANGED
@@ -36,8 +36,8 @@ class Card
|
|
36
36
|
|
37
37
|
@context = context
|
38
38
|
@sharing_mode = sharing_mode
|
39
|
-
@_handle = handle_ptr[:value]
|
40
|
-
set_protocol FFILib::
|
39
|
+
@_handle = handle_ptr[:value]
|
40
|
+
set_protocol FFILib::PROTOCOLS[protocol_ptr[:value]]
|
41
41
|
end
|
42
42
|
|
43
43
|
# Updates internal buffers to reflect a change in the communication protocol.
|
@@ -268,7 +268,7 @@ class Card
|
|
268
268
|
end
|
269
269
|
|
270
270
|
{ :readers => Context.decode_multi_string(readers_ptr),
|
271
|
-
:protocol => FFILib::
|
271
|
+
:protocol => FFILib::PROTOCOLS[protocol_ptr[:value]],
|
272
272
|
:atr => atr_ptr.get_bytes(0, atr_length_ptr[:value]),
|
273
273
|
:state => state }
|
274
274
|
ensure
|
data/smartcard.gemspec
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: smartcard
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 3
|
10
|
+
version: 0.5.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Victor Costan
|