• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/fs/ceph/

Lines Matching defs:ac

17 static void ceph_x_validate_tickets(struct ceph_auth_client *ac, int *pneed);
19 static int ceph_x_is_authenticated(struct ceph_auth_client *ac)
21 struct ceph_x_info *xi = ac->private;
24 ceph_x_validate_tickets(ac, &need);
26 ac->want_keys, need, xi->have_keys);
27 return (ac->want_keys & xi->have_keys) == ac->want_keys;
30 static int ceph_x_should_authenticate(struct ceph_auth_client *ac)
32 struct ceph_x_info *xi = ac->private;
35 ceph_x_validate_tickets(ac, &need);
37 ac->want_keys, need, xi->have_keys);
91 get_ticket_handler(struct ceph_auth_client *ac, int service)
94 struct ceph_x_info *xi = ac->private;
118 static void remove_ticket_handler(struct ceph_auth_client *ac,
121 struct ceph_x_info *xi = ac->private;
131 static int ceph_x_proc_ticket_reply(struct ceph_auth_client *ac,
135 struct ceph_x_info *xi = ac->private;
183 th = get_ticket_handler(ac, type);
272 static int ceph_x_build_authorizer(struct ceph_auth_client *ac,
303 msg_a->global_id = cpu_to_le64(ac->global_id);
360 static void ceph_x_validate_tickets(struct ceph_auth_client *ac, int *pneed)
362 int want = ac->want_keys;
363 struct ceph_x_info *xi = ac->private;
366 *pneed = ac->want_keys & ~(xi->have_keys);
371 if (!(ac->want_keys & service))
377 th = get_ticket_handler(ac, service);
392 static int ceph_x_build_request(struct ceph_auth_client *ac,
395 struct ceph_x_info *xi = ac->private;
400 get_ticket_handler(ac, CEPH_ENTITY_TYPE_AUTH);
405 ceph_x_validate_tickets(ac, &need);
408 ac->want_keys, xi->have_keys, need);
456 ret = ceph_x_build_authorizer(ac, th, &xi->auth_authorizer);
471 static int ceph_x_handle_reply(struct ceph_auth_client *ac, int result,
474 struct ceph_x_info *xi = ac->private;
504 ret = ceph_x_proc_ticket_reply(ac, &xi->secret,
509 th = get_ticket_handler(ac, CEPH_ENTITY_TYPE_AUTH);
512 ret = ceph_x_proc_ticket_reply(ac, &th->session_key,
521 if (ac->want_keys == xi->have_keys)
527 struct ceph_auth_client *ac, int peer_type,
536 th = get_ticket_handler(ac, peer_type);
544 ret = ceph_x_build_authorizer(ac, th, au);
558 static int ceph_x_verify_authorizer_reply(struct ceph_auth_client *ac,
568 th = get_ticket_handler(ac, au->service);
586 static void ceph_x_destroy_authorizer(struct ceph_auth_client *ac,
596 static void ceph_x_reset(struct ceph_auth_client *ac)
598 struct ceph_x_info *xi = ac->private;
605 static void ceph_x_destroy(struct ceph_auth_client *ac)
607 struct ceph_x_info *xi = ac->private;
610 dout("ceph_x_destroy %p\n", ac);
616 remove_ticket_handler(ac, th);
622 kfree(ac->private);
623 ac->private = NULL;
626 static void ceph_x_invalidate_authorizer(struct ceph_auth_client *ac,
631 th = get_ticket_handler(ac, peer_type);
633 remove_ticket_handler(ac, th);
652 int ceph_x_init(struct ceph_auth_client *ac)
657 dout("ceph_x_init %p\n", ac);
664 if (!ac->secret) {
669 ret = ceph_crypto_key_unarmor(&xi->secret, ac->secret);
676 ac->protocol = CEPH_AUTH_CEPHX;
677 ac->private = xi;
678 ac->ops = &ceph_x_ops;