aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/sunrpc/gss_api.h13
-rw-r--r--include/linux/sunrpc/gss_err.h10
-rw-r--r--include/linux/sunrpc/gss_krb5.h8
-rw-r--r--include/linux/sunrpc/gss_spkm3.h4
4 files changed, 8 insertions, 27 deletions
diff --git a/include/linux/sunrpc/gss_api.h b/include/linux/sunrpc/gss_api.h
index e896752ffbf9..9b8bcf125c18 100644
--- a/include/linux/sunrpc/gss_api.h
+++ b/include/linux/sunrpc/gss_api.h
@@ -40,23 +40,19 @@ int gss_import_sec_context(
40 struct gss_ctx **ctx_id); 40 struct gss_ctx **ctx_id);
41u32 gss_get_mic( 41u32 gss_get_mic(
42 struct gss_ctx *ctx_id, 42 struct gss_ctx *ctx_id,
43 u32 qop,
44 struct xdr_buf *message, 43 struct xdr_buf *message,
45 struct xdr_netobj *mic_token); 44 struct xdr_netobj *mic_token);
46u32 gss_verify_mic( 45u32 gss_verify_mic(
47 struct gss_ctx *ctx_id, 46 struct gss_ctx *ctx_id,
48 struct xdr_buf *message, 47 struct xdr_buf *message,
49 struct xdr_netobj *mic_token, 48 struct xdr_netobj *mic_token);
50 u32 *qstate);
51u32 gss_wrap( 49u32 gss_wrap(
52 struct gss_ctx *ctx_id, 50 struct gss_ctx *ctx_id,
53 u32 qop,
54 int offset, 51 int offset,
55 struct xdr_buf *outbuf, 52 struct xdr_buf *outbuf,
56 struct page **inpages); 53 struct page **inpages);
57u32 gss_unwrap( 54u32 gss_unwrap(
58 struct gss_ctx *ctx_id, 55 struct gss_ctx *ctx_id,
59 u32 *qop,
60 int offset, 56 int offset,
61 struct xdr_buf *inbuf); 57 struct xdr_buf *inbuf);
62u32 gss_delete_sec_context( 58u32 gss_delete_sec_context(
@@ -67,7 +63,6 @@ char *gss_service_to_auth_domain_name(struct gss_api_mech *, u32 service);
67 63
68struct pf_desc { 64struct pf_desc {
69 u32 pseudoflavor; 65 u32 pseudoflavor;
70 u32 qop;
71 u32 service; 66 u32 service;
72 char *name; 67 char *name;
73 char *auth_domain_name; 68 char *auth_domain_name;
@@ -96,23 +91,19 @@ struct gss_api_ops {
96 struct gss_ctx *ctx_id); 91 struct gss_ctx *ctx_id);
97 u32 (*gss_get_mic)( 92 u32 (*gss_get_mic)(
98 struct gss_ctx *ctx_id, 93 struct gss_ctx *ctx_id,
99 u32 qop,
100 struct xdr_buf *message, 94 struct xdr_buf *message,
101 struct xdr_netobj *mic_token); 95 struct xdr_netobj *mic_token);
102 u32 (*gss_verify_mic)( 96 u32 (*gss_verify_mic)(
103 struct gss_ctx *ctx_id, 97 struct gss_ctx *ctx_id,
104 struct xdr_buf *message, 98 struct xdr_buf *message,
105 struct xdr_netobj *mic_token, 99 struct xdr_netobj *mic_token);
106 u32 *qstate);
107 u32 (*gss_wrap)( 100 u32 (*gss_wrap)(
108 struct gss_ctx *ctx_id, 101 struct gss_ctx *ctx_id,
109 u32 qop,
110 int offset, 102 int offset,
111 struct xdr_buf *outbuf, 103 struct xdr_buf *outbuf,
112 struct page **inpages); 104 struct page **inpages);
113 u32 (*gss_unwrap)( 105 u32 (*gss_unwrap)(
114 struct gss_ctx *ctx_id, 106 struct gss_ctx *ctx_id,
115 u32 *qop,
116 int offset, 107 int offset,
117 struct xdr_buf *buf); 108 struct xdr_buf *buf);
118 void (*gss_delete_sec_context)( 109 void (*gss_delete_sec_context)(
diff --git a/include/linux/sunrpc/gss_err.h b/include/linux/sunrpc/gss_err.h
index 92608a2e574c..a6807867bd21 100644
--- a/include/linux/sunrpc/gss_err.h
+++ b/include/linux/sunrpc/gss_err.h
@@ -66,16 +66,6 @@ typedef unsigned int OM_uint32;
66 66
67 67
68/* 68/*
69 * Define the default Quality of Protection for per-message services. Note
70 * that an implementation that offers multiple levels of QOP may either reserve
71 * a value (for example zero, as assumed here) to mean "default protection", or
72 * alternatively may simply equate GSS_C_QOP_DEFAULT to a specific explicit
73 * QOP value. However a value of 0 should always be interpreted by a GSSAPI
74 * implementation as a request for the default protection level.
75 */
76#define GSS_C_QOP_DEFAULT 0
77
78/*
79 * Expiration time of 2^32-1 seconds means infinite lifetime for a 69 * Expiration time of 2^32-1 seconds means infinite lifetime for a
80 * credential or security context 70 * credential or security context
81 */ 71 */
diff --git a/include/linux/sunrpc/gss_krb5.h b/include/linux/sunrpc/gss_krb5.h
index 7f93c2d5ebdb..a7bda4edb853 100644
--- a/include/linux/sunrpc/gss_krb5.h
+++ b/include/linux/sunrpc/gss_krb5.h
@@ -119,21 +119,21 @@ make_checksum(s32 cksumtype, char *header, int hdrlen, struct xdr_buf *body,
119 int body_offset, struct xdr_netobj *cksum); 119 int body_offset, struct xdr_netobj *cksum);
120 120
121u32 121u32
122krb5_make_token(struct krb5_ctx *context_handle, int qop_req, 122krb5_make_token(struct krb5_ctx *context_handle,
123 struct xdr_buf *input_message_buffer, 123 struct xdr_buf *input_message_buffer,
124 struct xdr_netobj *output_message_buffer); 124 struct xdr_netobj *output_message_buffer);
125 125
126u32 126u32
127krb5_read_token(struct krb5_ctx *context_handle, 127krb5_read_token(struct krb5_ctx *context_handle,
128 struct xdr_netobj *input_token_buffer, 128 struct xdr_netobj *input_token_buffer,
129 struct xdr_buf *message_buffer, int *qop_state); 129 struct xdr_buf *message_buffer);
130 130
131u32 131u32
132gss_wrap_kerberos(struct gss_ctx *ctx_id, u32 qop, int offset, 132gss_wrap_kerberos(struct gss_ctx *ctx_id, int offset,
133 struct xdr_buf *outbuf, struct page **pages); 133 struct xdr_buf *outbuf, struct page **pages);
134 134
135u32 135u32
136gss_unwrap_kerberos(struct gss_ctx *ctx_id, u32 *qop, int offset, 136gss_unwrap_kerberos(struct gss_ctx *ctx_id, int offset,
137 struct xdr_buf *buf); 137 struct xdr_buf *buf);
138 138
139 139
diff --git a/include/linux/sunrpc/gss_spkm3.h b/include/linux/sunrpc/gss_spkm3.h
index b5c9968c3c17..0beb2cf00a84 100644
--- a/include/linux/sunrpc/gss_spkm3.h
+++ b/include/linux/sunrpc/gss_spkm3.h
@@ -41,9 +41,9 @@ struct spkm3_ctx {
41#define SPKM_WRAP_TOK 5 41#define SPKM_WRAP_TOK 5
42#define SPKM_DEL_TOK 6 42#define SPKM_DEL_TOK 6
43 43
44u32 spkm3_make_token(struct spkm3_ctx *ctx, int qop_req, struct xdr_buf * text, struct xdr_netobj * token, int toktype); 44u32 spkm3_make_token(struct spkm3_ctx *ctx, struct xdr_buf * text, struct xdr_netobj * token, int toktype);
45 45
46u32 spkm3_read_token(struct spkm3_ctx *ctx, struct xdr_netobj *read_token, struct xdr_buf *message_buffer, int *qop_state, int toktype); 46u32 spkm3_read_token(struct spkm3_ctx *ctx, struct xdr_netobj *read_token, struct xdr_buf *message_buffer, int toktype);
47 47
48#define CKSUMTYPE_RSA_MD5 0x0007 48#define CKSUMTYPE_RSA_MD5 0x0007
49 49