Commit b967c32
committed
tlshd: Add tlshd_genl_put_handshake_parms() API
Manage dynamically-allocated resources in struct
tlshd_handshake_parms by adding a function to release these
resources before the handshake child process exits.
This improves the ability of tlshd to dynamically allocate and
manage memory containing variably-sized arguments such as hostnames,
arrays, and socket addresses.
The parms.peername and parms.peeraddr fields will be included in the
set of dynamically-allocated resources, so add the new "release" API
call /after/ the handshake completion notice.
Signed-off-by: Chuck Lever <[email protected]>1 parent d0ffb5f commit b967c32
3 files changed
+15
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
| 186 | + | |
191 | 187 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
405 | 405 | | |
406 | 406 | | |
407 | 407 | | |
| 408 | + | |
| 409 | + | |
| 410 | + | |
| 411 | + | |
| 412 | + | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
408 | 420 | | |
409 | 421 | | |
410 | 422 | | |
| |||
423 | 435 | | |
424 | 436 | | |
425 | 437 | | |
426 | | - | |
| 438 | + | |
427 | 439 | | |
428 | 440 | | |
429 | 441 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| 119 | + | |
119 | 120 | | |
120 | 121 | | |
121 | 122 | | |
| |||
0 commit comments