RPCSEC_GSS: Add support for privacy to krb5 rpcsec_gss mechanism.
Add support for privacy to the krb5 rpcsec_gss mechanism. Signed-off-by: J. Bruce Fields <bfields@citi.umich.edu> Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
This commit is contained in:
parent
bfa91516b5
commit
14ae162c24
7 changed files with 552 additions and 7 deletions
|
@ -116,7 +116,7 @@ enum seal_alg {
|
|||
|
||||
s32
|
||||
make_checksum(s32 cksumtype, char *header, int hdrlen, struct xdr_buf *body,
|
||||
struct xdr_netobj *cksum);
|
||||
int body_offset, struct xdr_netobj *cksum);
|
||||
|
||||
u32
|
||||
krb5_make_token(struct krb5_ctx *context_handle, int qop_req,
|
||||
|
@ -128,6 +128,15 @@ krb5_read_token(struct krb5_ctx *context_handle,
|
|||
struct xdr_netobj *input_token_buffer,
|
||||
struct xdr_buf *message_buffer, int *qop_state);
|
||||
|
||||
u32
|
||||
gss_wrap_kerberos(struct gss_ctx *ctx_id, u32 qop, int offset,
|
||||
struct xdr_buf *outbuf, struct page **pages);
|
||||
|
||||
u32
|
||||
gss_unwrap_kerberos(struct gss_ctx *ctx_id, u32 *qop, int offset,
|
||||
struct xdr_buf *buf);
|
||||
|
||||
|
||||
u32
|
||||
krb5_encrypt(struct crypto_tfm * key,
|
||||
void *iv, void *in, void *out, int length);
|
||||
|
@ -136,6 +145,13 @@ u32
|
|||
krb5_decrypt(struct crypto_tfm * key,
|
||||
void *iv, void *in, void *out, int length);
|
||||
|
||||
int
|
||||
gss_encrypt_xdr_buf(struct crypto_tfm *tfm, struct xdr_buf *outbuf, int offset,
|
||||
struct page **pages);
|
||||
|
||||
int
|
||||
gss_decrypt_xdr_buf(struct crypto_tfm *tfm, struct xdr_buf *inbuf, int offset);
|
||||
|
||||
s32
|
||||
krb5_make_seq_num(struct crypto_tfm * key,
|
||||
int direction,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue