summaryrefslogtreecommitdiff
path: root/p11p-daemon/src/p11p_server.erl
Commit message (Collapse)AuthorAgeFilesLines
* don't send that version octet by itselfLinus Nordberg2019-06-281-4/+3
| | | | Instead, add it to new remote outbuf.
* parse rpc requests and don't send until we've got a full requestLinus Nordberg2019-06-281-14/+30
|
* add a genserver for handling remotes and start forwarding dataLinus Nordberg2019-06-271-18/+25
| | | | | | | | | | 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.
* stop exposing config recordsLinus Nordberg2019-06-241-1/+0
|
* init servers from config; cleanup on app stopLinus Nordberg2019-06-241-1/+0
|
* start one sock_server per token; give servers a chance to clean upLinus Nordberg2019-06-241-18/+44
| | | | still not rm'ing the socket file though. wonder where that should happen.
* server side accepting connections, reading from socketLinus Nordberg2019-06-201-0/+58