summaryrefslogtreecommitdiff
path: root/p11p-daemon/src/p11p_server_sup.erl
Commit message (Collapse)AuthorAgeFilesLines
* add a genserver for handling remotes and start forwarding dataLinus Nordberg2019-06-271-1/+1
| | | | | | | | | | Current status is that p11tool successfully performs a --list-tokens request over p11p, yay! Only once though -- the next request hangs. heh. Also, the timeout logic is wrong and should move to the server, measuring the time it takes to get a full p11 response. This reqires parsing of the p11-kit rpc protocol, which we need anyway.
* keep tokens and their modules in mapsLinus Nordberg2019-06-261-2/+2
| | | | | | For convenient lookup by name. Not the most storage efficient, and maybe proplists would be better suited. Learning maps is useful though.
* stop exposing config recordsLinus Nordberg2019-06-241-8/+2
|
* init servers from config; cleanup on app stopLinus Nordberg2019-06-241-8/+22
|
* start one sock_server per token; give servers a chance to clean upLinus Nordberg2019-06-241-13/+19
| | | | still not rm'ing the socket file though. wonder where that should happen.
* include unix pid in socket nameLinus Nordberg2019-06-241-3/+4
|
* server side accepting connections, reading from socketLinus Nordberg2019-06-201-0/+42