Lines Matching refs:auth
1394 struct ceph_auth_handshake *auth; in get_connect_authorizer() local
1404 auth = con->ops->get_authorizer(con, auth_proto, con->auth_retry); in get_connect_authorizer()
1407 if (IS_ERR(auth)) in get_connect_authorizer()
1408 return auth; in get_connect_authorizer()
1412 con->auth_reply_buf = auth->authorizer_reply_buf; in get_connect_authorizer()
1413 con->auth_reply_buf_len = auth->authorizer_reply_buf_len; in get_connect_authorizer()
1414 return auth; in get_connect_authorizer()
1435 struct ceph_auth_handshake *auth; in prepare_write_connect() local
1463 auth = get_connect_authorizer(con, &auth_proto); in prepare_write_connect()
1464 if (IS_ERR(auth)) in prepare_write_connect()
1465 return PTR_ERR(auth); in prepare_write_connect()
1468 con->out_connect.authorizer_len = auth ? in prepare_write_connect()
1469 cpu_to_le32(auth->authorizer_buf_len) : 0; in prepare_write_connect()
1473 if (auth && auth->authorizer_buf_len) in prepare_write_connect()
1474 con_out_kvec_add(con, auth->authorizer_buf_len, in prepare_write_connect()
1475 auth->authorizer_buf); in prepare_write_connect()