1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
// @Author: ronan
// @Date: 21-12-2016
// @Email: ronan.lashermes@inria.fr
// @Last modified by: ronan
// @Last modified time: 22-12-2016
use *;
use ;
use ;
use Arc;
///The card reader is what is really plugged into the computer.
//Test requires a reader and a smartcard to be plugged.
// #[test]
// fn test_reader() {
// let context = Context::establish_context_auto().unwrap();
// let mut readers = context.list_readers().unwrap();
// let reader = match readers.pop() {
// Some(r) => r,
// None => panic!("No reader found!")
// };
//
// let _ = reader.connect_to(&context, ShareMode::Auto, Protocol::Auto).unwrap();
// }