diff options
author | J. Bruce Fields <bfields@fieldses.org> | 2005-10-13 16:55:13 -0400 |
---|---|---|
committer | Trond Myklebust <Trond.Myklebust@netapp.com> | 2005-10-19 02:19:46 -0400 |
commit | 14ae162c24d985593d5b19437d7f3d8fd0062b59 (patch) | |
tree | 750fbc08e6a6e0cb00bfad7c871144a757ac43de /include | |
parent | bfa91516b57483fc9c81d8d90325fd2c3c16ac48 (diff) |
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>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/sunrpc/gss_krb5.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/include/linux/sunrpc/gss_krb5.h b/include/linux/sunrpc/gss_krb5.h index cb35833e2ae3..7f93c2d5ebdb 100644 --- a/include/linux/sunrpc/gss_krb5.h +++ b/include/linux/sunrpc/gss_krb5.h | |||
@@ -116,7 +116,7 @@ enum seal_alg { | |||
116 | 116 | ||
117 | s32 | 117 | s32 |
118 | make_checksum(s32 cksumtype, char *header, int hdrlen, struct xdr_buf *body, | 118 | make_checksum(s32 cksumtype, char *header, int hdrlen, struct xdr_buf *body, |
119 | struct xdr_netobj *cksum); | 119 | int body_offset, struct xdr_netobj *cksum); |
120 | 120 | ||
121 | u32 | 121 | u32 |
122 | krb5_make_token(struct krb5_ctx *context_handle, int qop_req, | 122 | krb5_make_token(struct krb5_ctx *context_handle, int qop_req, |
@@ -129,6 +129,15 @@ krb5_read_token(struct krb5_ctx *context_handle, | |||
129 | struct xdr_buf *message_buffer, int *qop_state); | 129 | struct xdr_buf *message_buffer, int *qop_state); |
130 | 130 | ||
131 | u32 | 131 | u32 |
132 | gss_wrap_kerberos(struct gss_ctx *ctx_id, u32 qop, int offset, | ||
133 | struct xdr_buf *outbuf, struct page **pages); | ||
134 | |||
135 | u32 | ||
136 | gss_unwrap_kerberos(struct gss_ctx *ctx_id, u32 *qop, int offset, | ||
137 | struct xdr_buf *buf); | ||
138 | |||
139 | |||
140 | u32 | ||
132 | krb5_encrypt(struct crypto_tfm * key, | 141 | krb5_encrypt(struct crypto_tfm * key, |
133 | void *iv, void *in, void *out, int length); | 142 | void *iv, void *in, void *out, int length); |
134 | 143 | ||
@@ -136,6 +145,13 @@ u32 | |||
136 | krb5_decrypt(struct crypto_tfm * key, | 145 | krb5_decrypt(struct crypto_tfm * key, |
137 | void *iv, void *in, void *out, int length); | 146 | void *iv, void *in, void *out, int length); |
138 | 147 | ||
148 | int | ||
149 | gss_encrypt_xdr_buf(struct crypto_tfm *tfm, struct xdr_buf *outbuf, int offset, | ||
150 | struct page **pages); | ||
151 | |||
152 | int | ||
153 | gss_decrypt_xdr_buf(struct crypto_tfm *tfm, struct xdr_buf *inbuf, int offset); | ||
154 | |||
139 | s32 | 155 | s32 |
140 | krb5_make_seq_num(struct crypto_tfm * key, | 156 | krb5_make_seq_num(struct crypto_tfm * key, |
141 | int direction, | 157 | int direction, |