!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.4.18 (Ubuntu). PHP/7.0.33-0ubuntu0.16.04.16 

uname -a: Linux digifus 3.13.0-57-generic #95-Ubuntu SMP Fri Jun 19 09:28:15 UTC 2015 x86_64 

uid=33(www-data) gid=33(www-data) groups=33(www-data) 

Safe-mode: OFF (not secure)

/usr/src/linux-headers-3.13.0-61/include/linux/ceph/   drwxr-xr-x
Free 9.56 GB of 29.4 GB (32.5%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     auth.h (3.84 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#ifndef _FS_CEPH_AUTH_H
#define _FS_CEPH_AUTH_H

#include <linux/ceph/types.h>
#include <linux/ceph/buffer.h>

/*
 * Abstract interface for communicating with the authenticate module.
 * There is some handshake that takes place between us and the monitor
 * to acquire the necessary keys.  These are used to generate an
 * 'authorizer' that we use when connecting to a service (mds, osd).
 */

struct ceph_auth_client;
struct ceph_authorizer;

struct ceph_auth_handshake {
    struct ceph_authorizer *authorizer;
    void *authorizer_buf;
    size_t authorizer_buf_len;
    void *authorizer_reply_buf;
    size_t authorizer_reply_buf_len;
};

struct ceph_auth_client_ops {
    const char *name;

    /*
     * true if we are authenticated and can connect to
     * services.
     */
    int (*is_authenticated)(struct ceph_auth_client *ac);

    /*
     * true if we should (re)authenticate, e.g., when our tickets
     * are getting old and crusty.
     */
    int (*should_authenticate)(struct ceph_auth_client *ac);

    /*
     * build requests and process replies during monitor
     * handshake.  if handle_reply returns -EAGAIN, we build
     * another request.
     */
    int (*build_request)(struct ceph_auth_client *ac, void *buf, void *end);
    int (*handle_reply)(struct ceph_auth_client *ac, int result,
                void *buf, void *end);

    /*
     * Create authorizer for connecting to a service, and verify
     * the response to authenticate the service.
     */
    int (*create_authorizer)(struct ceph_auth_client *ac, int peer_type,
                 struct ceph_auth_handshake *auth);
    /* ensure that an existing authorizer is up to date */
    int (*update_authorizer)(struct ceph_auth_client *ac, int peer_type,
                 struct ceph_auth_handshake *auth);
    int (*verify_authorizer_reply)(struct ceph_auth_client *ac,
                       struct ceph_authorizer *a, size_t len);
    void (*destroy_authorizer)(struct ceph_auth_client *ac,
                   struct ceph_authorizer *a);
    void (*invalidate_authorizer)(struct ceph_auth_client *ac,
                      int peer_type);

    /* reset when we (re)connect to a monitor */
    void (*reset)(struct ceph_auth_client *ac);

    void (*destroy)(struct ceph_auth_client *ac);
};

struct ceph_auth_client {
    u32 protocol;           /* CEPH_AUTH_* */
    void *private;          /* for use by protocol implementation */
    const struct ceph_auth_client_ops *ops;  /* null iff protocol==0 */

    bool negotiating;       /* true if negotiating protocol */
    const char *name;       /* entity name */
    u64 global_id;          /* our unique id in system */
    const struct ceph_crypto_key *key;     /* our secret key */
    unsigned want_keys;     /* which services we want */

    struct mutex mutex;
};

extern struct ceph_auth_client *ceph_auth_init(const char *name,
                           const struct ceph_crypto_key *key);
extern void ceph_auth_destroy(struct ceph_auth_client *ac);

extern void ceph_auth_reset(struct ceph_auth_client *ac);

extern int ceph_auth_build_hello(struct ceph_auth_client *ac,
                 void *buf, size_t len);
extern int ceph_handle_auth_reply(struct ceph_auth_client *ac,
                  void *buf, size_t len,
                  void *reply_buf, size_t reply_len);
extern int ceph_entity_name_encode(const char *name, void **p, void *end);

extern int ceph_build_auth(struct ceph_auth_client *ac,
            void *msg_buf, size_t msg_len);

extern int ceph_auth_is_authenticated(struct ceph_auth_client *ac);
extern int ceph_auth_create_authorizer(struct ceph_auth_client *ac,
                       int peer_type,
                       struct ceph_auth_handshake *auth);
extern void ceph_auth_destroy_authorizer(struct ceph_auth_client *ac,
                     struct ceph_authorizer *a);
extern int ceph_auth_update_authorizer(struct ceph_auth_client *ac,
                       int peer_type,
                       struct ceph_auth_handshake *a);
extern int ceph_auth_verify_authorizer_reply(struct ceph_auth_client *ac,
                         struct ceph_authorizer *a,
                         size_t len);
extern void ceph_auth_invalidate_authorizer(struct ceph_auth_client *ac,
                        int peer_type);

#endif

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by KaizenLouie | C99Shell Github | Generation time: 0.0045 ]--