char *ptlrpcs_flavor2name(__u32 flavor);
+#ifdef __KERNEL__
+
/* forward declaration */
struct obd_import;
struct ptlrpc_request;
struct ptlrpc_sec;
struct ptlrpc_secops;
+
typedef struct {
struct list_head list;
__u32 flavor;
int svcsec_null_exit(void);
/* capability */
-#ifdef __KERNEL__
#include <linux/crypto.h>
-#endif
#define NR_CAPAHASH 32
#define CAPA_TIMEOUT 1800 /* sec, == 30 min */
struct lustre_handle *handle);
void capa_put(struct obd_capa *ocapa, int type);
int capa_renew(struct lustre_capa *capa, int type);
-void capa_hmac(struct crypto_tfm *tfm, __u8 *key, struct lustre_capa *capa);
+void capa_hmac(struct crypto_tfm *tfm, u8 *key, struct lustre_capa *capa);
void capa_dup(void *dst, struct obd_capa *ocapa);
void capa_dup2(void *dst, struct lustre_capa *capa);
int capa_expired(struct lustre_capa *capa);
return jiffies + ((unsigned long)expiry - tv.tv_sec) * HZ;
}
+#endif /* __KERNEL__ */
+
struct mds_capa_key {
struct list_head k_list;
struct filter_capa_key {
struct list_head k_list;
+
struct lustre_capa_key k_key;
};