summaryrefslogtreecommitdiff
path: root/sys/src/cmd/unix/u9fs/authnone.c
blob: 7a8145cc5f1f06897cfaf9f0d17bab24f3505525 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#include <plan9.h>
#include <fcall.h>
#include <u9fs.h>

static char*
noneauth(Fcall *rx, Fcall *tx)
{
	USED(rx);
	USED(tx);
	return "u9fs authnone: no authentication required";
}

static char*
noneattach(Fcall *rx, Fcall *tx)
{
	USED(rx);
	USED(tx);
	return nil;
}

Auth authnone = {
	"none",
	noneauth,
	noneattach,
};