Commit 8d3a80d
committed
sss: sss-encrypt must read pipe data until EOF is reached
With current implementation sss-encrypt opens a pipe to the child pin,
then tries to read this pipe *only once*. This might return only partial
data or not data at all in case if the child pin response is slow.
Fix it by reading the pipe until it is closed, and only then process the
data.
Also increase the response buffer from 1024 bytes to 4096 bytes to
accound for larger subpin responses that can be larger than 1024 bytes.
Fixes latchset#3891 parent 9196653 commit 8d3a80d
1 file changed
+18
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
118 | 121 | | |
119 | | - | |
120 | | - | |
121 | | - | |
| 122 | + | |
| 123 | + | |
122 | 124 | | |
123 | | - | |
| 125 | + | |
124 | 126 | | |
125 | 127 | | |
126 | 128 | | |
127 | 129 | | |
128 | | - | |
129 | | - | |
130 | | - | |
| 130 | + | |
131 | 131 | | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | | - | |
135 | | - | |
136 | | - | |
| 135 | + | |
| 136 | + | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
138 | 146 | | |
139 | 147 | | |
140 | 148 | | |
| |||
0 commit comments