Lines Matching defs:context

33  * This module contains the implementation of the gssapi context support
56 __dh_gss_context_time(void *ctx, /* Mechanism context (not used) */
58 gss_ctx_id_t context, /* GSS context handle */
63 /* Context is a dh context */
64 dh_gss_context_t cntx = (dh_gss_context_t)context;
73 /* Validate context */
91 * Delete a Diffie-Hellman context that is pointed to by context.
92 * On a successfull return *context will be NULL.
96 __dh_gss_delete_sec_context(void *ctx, /* Mechanism context */
98 gss_ctx_id_t *context, /* GSS context */
105 if (context == 0)
109 /* context is a Diffie-Hellman context */
110 cntx = (dh_gss_context_t)*context;
126 /* Deleting a null context is OK */
130 /* Validate the context */
137 /* Unregister the context */
147 /* Set context to NULL */
148 *context = NULL;
162 gss_ctx_id_t *context, gss_buffer_t token)
170 gss_buffer_t token, gss_ctx_id_t *context)
176 * Get the state of a Diffie-Hellman context
180 __dh_gss_inquire_context(void *ctx, /* Mechanism context */
182 gss_ctx_id_t context, /* GSS context */
187 OM_uint32 *flags_rec, /* flags set on context */
189 int *open /* True if the context is established */)
195 /* context is a Diffie-Hellman */
196 cntx = (dh_gss_context_t)context;
198 /* Validate the context */
212 /* set t to be the time left on the context */
250 /* return GSS_S_CONTEXT_EXPIRED if no time is left on the context */
262 gss_ctx_id_t context, gss_buffer_t token)
269 * mechanism. See RFC 2078 for details. The idea here is for a context,
277 __dh_gss_wrap_size_limit(void *ctx, /* Mechanism context (not used) */
279 gss_ctx_id_t context, /* GSS context handle */
295 /* We check for valid unexpired context by calling gss_context_time. */
296 if ((major = stat | __dh_gss_context_time(ctx, minor, context, &left))