aboutsummaryrefslogtreecommitdiffstats
path: root/fs/ceph/auth.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/ceph/auth.c')
-rw-r--r--fs/ceph/auth.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/fs/ceph/auth.c b/fs/ceph/auth.c
index b34ce0e41b4c..abb204fea6c7 100644
--- a/fs/ceph/auth.c
+++ b/fs/ceph/auth.c
@@ -5,6 +5,7 @@
5 5
6#include "types.h" 6#include "types.h"
7#include "auth_none.h" 7#include "auth_none.h"
8#include "auth_x.h"
8#include "decode.h" 9#include "decode.h"
9#include "super.h" 10#include "super.h"
10 11
@@ -14,7 +15,8 @@
14 * get protocol handler 15 * get protocol handler
15 */ 16 */
16static u32 supported_protocols[] = { 17static u32 supported_protocols[] = {
17 CEPH_AUTH_NONE 18 CEPH_AUTH_NONE,
19 CEPH_AUTH_CEPHX
18}; 20};
19 21
20int ceph_auth_init_protocol(struct ceph_auth_client *ac, int protocol) 22int ceph_auth_init_protocol(struct ceph_auth_client *ac, int protocol)
@@ -22,6 +24,8 @@ int ceph_auth_init_protocol(struct ceph_auth_client *ac, int protocol)
22 switch (protocol) { 24 switch (protocol) {
23 case CEPH_AUTH_NONE: 25 case CEPH_AUTH_NONE:
24 return ceph_auth_none_init(ac); 26 return ceph_auth_none_init(ac);
27 case CEPH_AUTH_CEPHX:
28 return ceph_x_init(ac);
25 default: 29 default:
26 return -ENOENT; 30 return -ENOENT;
27 } 31 }