mirror of
https://github.com/ceph/ceph
synced 2025-02-22 10:37:15 +00:00
auth: add versioning to ClientTicket
This commit is contained in:
parent
25df09b99d
commit
8631573366
@ -24,6 +24,8 @@ struct ClientTicket {
|
||||
__u32 flags;
|
||||
|
||||
void encode(bufferlist& bl) const {
|
||||
__u8 v = 1;
|
||||
::encode(v, bl);
|
||||
::encode(client, bl);
|
||||
::encode(addr, bl);
|
||||
::encode(created, bl);
|
||||
@ -31,6 +33,8 @@ struct ClientTicket {
|
||||
::encode(flags, bl);
|
||||
}
|
||||
void decode(bufferlist::iterator& bl) {
|
||||
__u8 v;
|
||||
::decode(v, bl);
|
||||
::decode(client, bl);
|
||||
::decode(addr, bl);
|
||||
::decode(created, bl);
|
||||
|
Loading…
Reference in New Issue
Block a user