linux/net/ceph/auth_x_protocol.h

/* SPDX-License-Identifier: GPL-2.0 */
#ifndef __FS_CEPH_AUTH_X_PROTOCOL
#define __FS_CEPH_AUTH_X_PROTOCOL

#define CEPHX_GET_AUTH_SESSION_KEY
#define CEPHX_GET_PRINCIPAL_SESSION_KEY
#define CEPHX_GET_ROTATING_KEY

/* common bits */
struct ceph_x_ticket_blob {} __attribute__ ((packed));


/* common request/reply headers */
struct ceph_x_request_header {} __attribute__ ((packed));

struct ceph_x_reply_header {} __attribute__ ((packed));


/* authenticate handshake */

/* initial hello (no reply header) */
struct ceph_x_server_challenge {} __attribute__ ((packed));

struct ceph_x_authenticate {} __attribute__ ((packed));

struct ceph_x_service_ticket_request {} __attribute__ ((packed));

struct ceph_x_challenge_blob {} __attribute__ ((packed));



/* authorize handshake */

/*
 * The authorizer consists of two pieces:
 *  a - service id, ticket blob
 *  b - encrypted with session key
 */
struct ceph_x_authorize_a {} __attribute__ ((packed));

struct ceph_x_authorize_b {} __attribute__ ((packed));

struct ceph_x_authorize_challenge {} __attribute__ ((packed));

struct ceph_x_authorize_reply {} __attribute__ ((packed));


/*
 * encryption bundle
 */
#define CEPHX_ENC_MAGIC

struct ceph_x_encrypt_header {} __attribute__ ((packed));

#endif