authnone.c 321 B

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