xref: /plan9/sys/src/cmd/unix/u9fs/authnone.c (revision 9a747e4fd48b9f4522c70c07e8f882a15030f964)
1 #include <plan9.h>
2 #include <fcall.h>
3 #include <u9fs.h>
4 
5 static char*
noneauth(Fcall * rx,Fcall * tx)6 noneauth(Fcall *rx, Fcall *tx)
7 {
8 	USED(rx);
9 	USED(tx);
10 	return "u9fs authnone: no authentication required";
11 }
12 
13 static char*
noneattach(Fcall * rx,Fcall * tx)14 noneattach(Fcall *rx, Fcall *tx)
15 {
16 	USED(rx);
17 	USED(tx);
18 	return nil;
19 }
20 
21 Auth authnone = {
22 	"none",
23 	noneauth,
24 	noneattach,
25 };
26