X-Git-Url: https://git.whamcloud.com/?a=blobdiff_plain;f=lustre%2Fptlrpc%2Fgss%2Fgss_api.h;h=10986a7160042681e82e27a52c93355abce0fdef;hb=dc9008c033d13a156989fd49e47a3a30a79cb5ac;hp=cf31747eef733a213b984e8dfcbf9ce90a89ac09;hpb=d2d56f38da01001c92a09afc6b52b5acbd9bc13c;p=fs%2Flustre-release.git diff --git a/lustre/ptlrpc/gss/gss_api.h b/lustre/ptlrpc/gss/gss_api.h index cf31747..10986a7 100644 --- a/lustre/ptlrpc/gss/gss_api.h +++ b/lustre/ptlrpc/gss/gss_api.h @@ -2,8 +2,9 @@ * vim:expandtab:shiftwidth=8:tabstop=8: * * Modifications for Lustre - * Copyright 2004, Cluster File Systems, Inc. - * All rights reserved + * + * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. + * * Author: Eric Mei */ @@ -50,26 +51,40 @@ __u32 lgss_get_mic( struct gss_ctx *ctx, int msgcnt, rawobj_t *msgs, + int iovcnt, + lnet_kiov_t *iovs, rawobj_t *mic_token); __u32 lgss_verify_mic( struct gss_ctx *ctx, int msgcnt, rawobj_t *msgs, + int iovcnt, + lnet_kiov_t *iovs, 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 length, - void *in_buf, - void *out_buf); +__u32 lgss_prep_bulk( + struct gss_ctx *gctx, + struct ptlrpc_bulk_desc *desc); +__u32 lgss_wrap_bulk( + struct gss_ctx *gctx, + struct ptlrpc_bulk_desc *desc, + rawobj_t *token, + int adj_nob); +__u32 lgss_unwrap_bulk( + struct gss_ctx *gctx, + struct ptlrpc_bulk_desc *desc, + rawobj_t *token, + int adj_nob); __u32 lgss_delete_sec_context( struct gss_ctx **ctx); int lgss_display( @@ -86,11 +101,11 @@ struct subflavor_desc { /* Each mechanism is described by the following struct: */ struct gss_api_mech { - struct list_head gm_list; - struct module *gm_owner; + cfs_list_t gm_list; + cfs_module_t *gm_owner; char *gm_name; rawobj_t gm_oid; - atomic_t gm_count; + cfs_atomic_t gm_count; struct gss_api_ops *gm_ops; int gm_sf_num; struct subflavor_desc *gm_sfs; @@ -111,26 +126,40 @@ struct gss_api_ops { struct gss_ctx *ctx, int msgcnt, rawobj_t *msgs, + int iovcnt, + lnet_kiov_t *iovs, rawobj_t *mic_token); __u32 (*gss_verify_mic)( struct gss_ctx *ctx, int msgcnt, rawobj_t *msgs, + int iovcnt, + lnet_kiov_t *iovs, 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 length, - void *in_buf, - void *out_buf); + __u32 (*gss_prep_bulk)( + struct gss_ctx *gctx, + struct ptlrpc_bulk_desc *desc); + __u32 (*gss_wrap_bulk)( + struct gss_ctx *gctx, + struct ptlrpc_bulk_desc *desc, + rawobj_t *token, + int adj_nob); + __u32 (*gss_unwrap_bulk)( + struct gss_ctx *gctx, + struct ptlrpc_bulk_desc *desc, + rawobj_t *token, + int adj_nob); void (*gss_delete_sec_context)( void *ctx); int (*gss_display)(