| 66 | } |
| 67 | |
| 68 | AuthServiceHandler *get_auth_service_handler(int type, CephContext *cct, KeyServer *ks) |
| 69 | { |
| 70 | switch (type) { |
| 71 | case CEPH_AUTH_CEPHX: |
| 72 | return new CephxServiceHandler(cct, ks); |
| 73 | case CEPH_AUTH_NONE: |
| 74 | return new AuthNoneServiceHandler(cct); |
| 75 | #ifdef HAVE_GSSAPI |
| 76 | case CEPH_AUTH_GSS: |
| 77 | return new KrbServiceHandler(cct, ks); |
| 78 | #endif |
| 79 | default: |
| 80 | return nullptr; |
| 81 | } |
| 82 | } |
no outgoing calls
no test coverage detected