From: Sage Weil Date: Fri, 22 Oct 2021 19:52:18 +0000 (-0500) Subject: auth/Crypto: add clear() X-Git-Tag: v18.0.0~39^2~26 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=fa8ad5568ccfded73d2d6a51f56f27c1bd314d9a;p=ceph.git auth/Crypto: add clear() Signed-off-by: Sage Weil --- diff --git a/src/auth/Crypto.h b/src/auth/Crypto.h index 3691d97feee0..a29ac1abd811 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;