droyo / styx

Go library for the 9P filesystem protocol
MIT License
64 stars 18 forks source link

Add factotum RPC support for plan9 #14

Closed majiru closed 5 years ago

majiru commented 5 years ago

This adds support for the use of the factotum RPC for authentication. This allows for clients to authenticate through the use of dp9ik or 9psk1 to the server, if the server is running on plan9.

This required another Auth function be added to the styx.Server struct for opening an auth file in the same style of the Ropen function used by handlers. This was necessary to keep information regarding incoming Tread and Twrite sizes that are otherwise lost when using a styxfile.dumpPipe.