]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
auth/Crypto: add clear()
authorSage Weil <sage@newdream.net>
Fri, 22 Oct 2021 19:52:18 +0000 (14:52 -0500)
committerRadoslaw Zarzynski <rzarzyns@redhat.com>
Wed, 14 Sep 2022 16:15:56 +0000 (16:15 +0000)
Signed-off-by: Sage Weil <sage@newdream.net>
(cherry picked from commit fa8ad5568ccfded73d2d6a51f56f27c1bd314d9a)

src/auth/Crypto.h

index 3691d97feee0f80c8ac37add93e960003da3e65f..a29ac1abd8116fd2dcb940acba39f4c64036c97d 100644 (file)
@@ -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;