Lines Matching full:protocol

17  * get protocol handler
34 pr_err("bad auth protocol %d\n", proto); in init_protocol()
118 * Initiate protocol negotiation with monitor. Include entity name
134 ceph_encode_32(&p, CEPH_AUTH_UNKNOWN); /* no protocol, yet */ in ceph_auth_build_hello()
173 /* struct ceph_mon_request_header + protocol */ in build_request()
177 ceph_encode_32_safe(&p, end, ac->protocol, e_range); in build_request()
183 pr_err("auth protocol '%s' building request failed: %d\n", in build_request()
184 ceph_auth_proto_name(ac->protocol), ret); in build_request()
204 int protocol; in ceph_handle_auth_reply() local
216 protocol = ceph_decode_32(&p); in ceph_handle_auth_reply()
236 if (!protocol && result < 0) { in ceph_handle_auth_reply()
240 /* set up (new) protocol handler? */ in ceph_handle_auth_reply()
241 if (ac->protocol && ac->protocol != protocol) { in ceph_handle_auth_reply()
243 ac->protocol = 0; in ceph_handle_auth_reply()
246 if (ac->protocol != protocol) { in ceph_handle_auth_reply()
247 ret = init_protocol(ac, protocol); in ceph_handle_auth_reply()
249 pr_err("auth protocol '%s' init failed: %d\n", in ceph_handle_auth_reply()
250 ceph_auth_proto_name(protocol), ret); in ceph_handle_auth_reply()
259 pr_err("auth protocol '%s' mauth authentication failed: %d\n", in ceph_handle_auth_reply()
260 ceph_auth_proto_name(ac->protocol), result); in ceph_handle_auth_reply()
329 *proto = ac->protocol; in __ceph_auth_get_authorizer()
436 if (ac->protocol == CEPH_AUTH_UNKNOWN) { in ceph_auth_get_request()
439 pr_err("auth protocol '%s' init failed: %d\n", in ceph_auth_get_request()
444 WARN_ON(ac->protocol != proto); in ceph_auth_get_request()
449 ceph_encode_32_safe(&p, end, ac->protocol, e_range); in ceph_auth_get_request()
513 WARN_ON(used_proto != ac->protocol); in ceph_auth_handle_bad_method()
516 if (!contains(allowed_protos, proto_cnt, ac->protocol)) { in ceph_auth_handle_bad_method()
517 pr_err("auth protocol '%s' not allowed\n", in ceph_auth_handle_bad_method()
518 ceph_auth_proto_name(ac->protocol)); in ceph_auth_handle_bad_method()
536 pr_err("auth protocol '%s' msgr authentication failed: %d\n", in ceph_auth_handle_bad_method()
537 ceph_auth_proto_name(ac->protocol), result); in ceph_auth_handle_bad_method()
619 WARN_ON(used_proto != ac->protocol); in ceph_auth_handle_bad_authorizer()
622 if (!contains(allowed_protos, proto_cnt, ac->protocol)) { in ceph_auth_handle_bad_authorizer()
623 pr_err("auth protocol '%s' not allowed by %s\n", in ceph_auth_handle_bad_authorizer()
624 ceph_auth_proto_name(ac->protocol), in ceph_auth_handle_bad_authorizer()
645 pr_err("auth protocol '%s' authorization to %s failed: %d\n", in ceph_auth_handle_bad_authorizer()
646 ceph_auth_proto_name(ac->protocol), in ceph_auth_handle_bad_authorizer()