aboutsummaryrefslogtreecommitdiff
path: root/cryptech_muxd
AgeCommit message (Collapse)Author
2017-05-31Automatic logout when client disconnects or muxd restarts.Rob Austein
The HSM itself should be detecting carrier drop on its RPC port, but I haven't figured out where the DCD bit is hiding in the STM32 UART API, and the muxd has to be involved in this in any case, since only the muxd knows when an individual client connection has dropped. So, for the moment, we handle all of this in the muxd.
2017-05-03Tweak PySerial write_timeout setting.Rob Austein
2017-04-26Don't intefere with sys.exit().Rob Austein
2017-04-23Log exit conditionsRob Austein
2017-04-15Write to console socket and console log in parallel.Rob Austein
We're using non-blocking I/O in any case, might as well take advantage of it to keep console output a little smoother.
2017-04-15Add console log support to muxd.Rob Austein
2017-04-11Log packet drops.Rob Austein
2017-04-11Reject malformed messages from RPC UART, not just too-short ones.Rob Austein
2017-03-06Debugging code to track message flow.Rob Austein
2017-01-12Probing wants a brief delay after probe string on some machines.Rob Austein
Probably reached the point of diminishing returns for trying to get probing to work better. Best option, where practical, is to avoid probing completely; when necessary, best run it once then avoid repeating it. cryptech_muxd will probe if requested, but probing is never going to be reliable. Dedicated VID:PID would be much better.
2017-01-12Finish logging code, skip initialization for missing devices.Rob Austein
2017-01-11Cleanup.Rob Austein
2017-01-11Add internal port probing code (like running cryptech_probe first).Rob Austein
Internal probe code mostly works, probably about as well as cryptech_probe ever did, but almost certainly needs timeouts around its I/O calls, and perhaps additional error handling. At the moment, it works except when it doesn't, just like cryptech_probe. Some day we'll get away from this kludge, but not today.
2017-01-10Handle connection close events properly, use logging library.Rob Austein
2017-01-05Whack multiplexer to handle console too.Rob Austein
Renamed multiplexer to cryptech_muxd, since it now handles both RPC and CTY. Added new program cryptech_console to act as client for CTY multiplexer. Might want to add console logging capability eventually, not today. Probably want to incorporate UART probing (what cryptech_probe does now) eventually, also not today.
v class='alt'>
802a6f3
4a38cf6
a5850b4
26f1290
4c6b056
4a38cf6
684b0c0
26f1290
4c6b056
ee19acb
79b1ba7
4a38cf6
79b1ba7

4a38cf6

9915d1b

ee19acb









26f1290
4c6b056
fb73e2d






26f1290
4c6b056

26f1290

4c6b056
a59302f
7f390d5
9278e9b
a5850b4







4c6b056
26f1290
4a38cf6





f296bc7
26f1290
fb73e2d
d41a024
fb73e2d
4a38cf6

26f1290
79b1ba7

fb73e2d
e9cd8ff
9bbc072

4a38cf6


a5850b4
4a38cf6

79b1ba7

26f1290
79b1ba7
b61dc66
9278e9b
802a6f3


79b1ba7

9278e9b
764c6f6
a59302f

684b0c0


4c6b056
79b1ba7

f296bc7
9278e9b
26f1290
79b1ba7

e9cd8ff
4a38cf6
79b1ba7
a59302f
26f1290

4a38cf6

79b1ba7

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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161