From fa8ad5568ccfded73d2d6a51f56f27c1bd314d9a Mon Sep 17 00:00:00 2001 From: Sage Weil Date: Fri, 22 Oct 2021 14:52:18 -0500 Subject: [PATCH] auth/Crypto: add clear() Signed-off-by: Sage Weil --- src/auth/Crypto.h | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/auth/Crypto.h b/src/auth/Crypto.h index 3691d97feee..a29ac1abd81 100644 --- a/src/auth/Crypto.h +++ b/src/auth/Crypto.h @@ -112,6 +112,10 @@ public: void encode(ceph::buffer::list& bl) const; void decode(ceph::buffer::list::const_iterator& bl); + void clear() { + *this = CryptoKey(); + } + int get_type() const { return type; } utime_t get_created() const { return created; } void print(std::ostream& out) const; -- 2.39.5