auth_none.h 501 B

12345678910111213141516171819202122232425262728
  1. #ifndef _FS_CEPH_AUTH_NONE_H
  2. #define _FS_CEPH_AUTH_NONE_H
  3. #include "auth.h"
  4. /*
  5. * null security mode.
  6. *
  7. * we use a single static authorizer that simply encodes our entity name
  8. * and global id.
  9. */
  10. struct ceph_none_authorizer {
  11. char buf[128];
  12. int buf_len;
  13. char reply_buf[0];
  14. };
  15. struct ceph_auth_none_info {
  16. bool starting;
  17. bool built_authorizer;
  18. struct ceph_none_authorizer au; /* we only need one; it's static */
  19. };
  20. extern int ceph_auth_none_init(struct ceph_auth_client *ac);
  21. #endif