]> 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)
committerAdam King <adking@redhat.com>
Thu, 8 Sep 2022 20:11:30 +0000 (16:11 -0400)
Signed-off-by: Sage Weil <sage@newdream.net>
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;