shithub: riscv

ref: d8487e98c64cc1473e6d4158392850a9d434e418
dir: /sys/src/cmd/unix/u9fs/authnone.c/

View raw version
#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,
};