]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/auth/unknown/AuthUnknownSessionHandler.h
update sources to ceph Nautilus 14.2.1
[ceph.git] / ceph / src / auth / unknown / AuthUnknownSessionHandler.h
index d78a6d21aaa36c32347c5013c64df9f5fc10336e..7230663da29b8413a7029facda897c4e5fbbc776 100644 (file)
  */
 
 #include "auth/AuthSessionHandler.h"
-#include "msg/Message.h"
-
-#define dout_subsys ceph_subsys_auth
-
-class CephContext;
-
-class AuthUnknownSessionHandler  : public AuthSessionHandler {
-public:
-  AuthUnknownSessionHandler(CephContext *cct_, CryptoKey session_key)
-    : AuthSessionHandler(cct_, CEPH_AUTH_UNKNOWN, session_key) {}
-  ~AuthUnknownSessionHandler() override {}
-  
-  bool no_security() override {
-    return true;
-  }
-
-  // The Unknown suite neither signs nor encrypts messages, so these functions just return success.
-  // Since nothing was signed or encrypted, don't increment the stats.  PLR
-
-  int sign_message(Message *m) override {
-    return 0;
-  }
-
-  int check_message_signature(Message *m) override {
-    return 0;
-  }
-
-  int encrypt_message(Message *m) override {
-    return 0;
-  }
-
-  int decrypt_message(Message *m) override {
-    return 0;
-  }
 
+struct AuthUnknownSessionHandler : DummyAuthSessionHandler {
 };