From: Sage Weil Date: Sun, 20 Jan 2019 22:45:29 +0000 (-0600) Subject: auth/AuthAuthorizeHandler: add get_supported_methods() X-Git-Tag: v14.1.0~183^2~49 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=a7d6a54f736bfb09e5d7a5deb9c65350d35736bd;p=ceph.git auth/AuthAuthorizeHandler: add get_supported_methods() Signed-off-by: Sage Weil --- diff --git a/src/auth/AuthAuthorizeHandler.h b/src/auth/AuthAuthorizeHandler.h index 8c3825881f90..59725caf21a1 100644 --- a/src/auth/AuthAuthorizeHandler.h +++ b/src/auth/AuthAuthorizeHandler.h @@ -55,7 +55,13 @@ public: supported{cct_, methods} {} ~AuthAuthorizeHandlerRegistry(); - + + void get_supported_methods(std::vector *v) { + v->clear(); + for (auto m : supported.get_supported_set()) { + v->push_back(m); + } + } AuthAuthorizeHandler *get_handler(int protocol); };