Whamcloud - gitweb
Branch HEAD
[fs/lustre-release.git] / lustre / ptlrpc / gss / gss_api.h
index cf31747..11b1c37 100644 (file)
@@ -2,8 +2,9 @@
  * vim:expandtab:shiftwidth=8:tabstop=8:
  *
  * Modifications for Lustre
- * Copyright 2004, Cluster File Systems, Inc.
- * All rights reserved
+ *
+ * Copyright  2008 Sun Microsystems, Inc. All rights reserved
+ *
  * Author: Eric Mei <ericm@clusterfs.com>
  */
 
@@ -58,15 +59,18 @@ __u32 lgss_verify_mic(
                 rawobj_t                *mic_token);
 __u32 lgss_wrap(
                 struct gss_ctx          *ctx,
+                rawobj_t                *gsshdr,
                 rawobj_t                *msg,
                 int                      msg_buflen,
                 rawobj_t                *out_token);
 __u32 lgss_unwrap(
                 struct gss_ctx          *ctx,
+                rawobj_t                *gsshdr,
                 rawobj_t                *token,
                 rawobj_t                *out_msg);
 __u32 lgss_plain_encrypt(
                 struct gss_ctx          *ctx,
+                int                      decrypt,
                 int                      length,
                 void                    *in_buf,
                 void                    *out_buf);
@@ -119,15 +123,18 @@ struct gss_api_ops {
                         rawobj_t               *mic_token);
         __u32 (*gss_wrap)(
                         struct gss_ctx         *ctx,
+                        rawobj_t               *gsshdr,
                         rawobj_t               *msg,
                         int                     msg_buflen,
                         rawobj_t               *out_token);
         __u32 (*gss_unwrap)(
                         struct gss_ctx         *ctx,
+                        rawobj_t               *gsshdr,
                         rawobj_t               *token,
                         rawobj_t               *out_msg);
         __u32 (*gss_plain_encrypt)(
                         struct gss_ctx         *ctx,
+                        int                     decrypt,
                         int                     length,
                         void                   *in_buf,
                         void                   *out_buf);