]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
auth/AuthAuthorizeHandler: add get_supported_methods()
authorSage Weil <sage@redhat.com>
Sun, 20 Jan 2019 22:45:29 +0000 (16:45 -0600)
committerSage Weil <sage@redhat.com>
Thu, 7 Feb 2019 12:53:03 +0000 (06:53 -0600)
Signed-off-by: Sage Weil <sage@redhat.com>
src/auth/AuthAuthorizeHandler.h

index 8c3825881f9033dc9cf4e9f4c8ae8fb54cb9cb4b..59725caf21a11d164a646aa306dc8108dc359116 100644 (file)
@@ -55,7 +55,13 @@ public:
       supported{cct_, methods}
   {}
   ~AuthAuthorizeHandlerRegistry();
-  
+
+  void get_supported_methods(std::vector<uint32_t> *v) {
+    v->clear();
+    for (auto m : supported.get_supported_set()) {
+      v->push_back(m);
+    }
+  }
   AuthAuthorizeHandler *get_handler(int protocol);
 };