Whamcloud - gitweb
LU-13041 lnet: fix router primary_nid deletion
[fs/lustre-release.git] / lustre / ptlrpc / gss / gss_api.h
index a5bbaea..a5f203e 100644 (file)
 
 struct gss_api_mech;
 
+typedef int (*digest_hash)(
+       struct ahash_request *req, rawobj_t *hdr,
+       int msgcnt, rawobj_t *msgs,
+       int iovcnt, lnet_kiov_t *iovs);
+
 /* The mechanism-independent gss-api context: */
 struct gss_ctx {
-        struct gss_api_mech    *mech_type;
-        void                   *internal_ctx_id;
+       struct gss_api_mech *mech_type;
+       void *internal_ctx_id;
+       digest_hash hash_func;
 };
 
 #define GSS_C_NO_BUFFER         ((rawobj_t) 0)
@@ -44,7 +50,7 @@ __u32 lgss_copy_reverse_context(
                 struct gss_ctx         **ctx_new);
 __u32 lgss_inquire_context(
                 struct gss_ctx          *ctx,
-                unsigned long           *endtime);
+               time64_t *endtime);
 __u32 lgss_get_mic(
                 struct gss_ctx          *ctx,
                 int                      msgcnt,
@@ -119,7 +125,7 @@ struct gss_api_ops {
                         struct gss_ctx         *ctx_new);
         __u32 (*gss_inquire_context)(
                         struct gss_ctx         *ctx,
-                        unsigned long          *endtime);
+                       time64_t *endtime);
         __u32 (*gss_get_mic)(
                         struct gss_ctx         *ctx,
                         int                     msgcnt,