Lines Matching defs:context

79 	gss_ctx_id_t	context;	/* GSS context id */
80 gss_buffer_desc ctx_handle; /* RPCSEC GSS context handle */
118 time_t ctx_expired_time; /* when the context will be expired */
383 * rpc_gss_secfree will destroy a rpcsec_gss context only if
417 * Create a gss security service context.
489 * Now invoke the real interface that sets up the context from
499 RPCGSS_LOG(1, "rpc_gss_seccreate: init context failed"
525 options_ret->gss_context = ap->context;
539 * Private interface to create a context. This is the interface
540 * that's invoked when the context has to be refreshed.
577 ap->context = NULL;
589 * set state for starting context setup
597 &ap->context,
787 * kgss_import_sec_context to transfer the context from the user
791 *gssstat = kgss_export_sec_context(minor_stat, ap->context,
804 &ap->context, NULL);
812 &ap->context, NULL);
817 ap->context);
826 &ap->context, NULL);
842 * Done! Security context creation is successful.
867 if (ap->context != NULL) {
894 * If context has not been set up yet, use NULL handle.
944 * If context is not established yet, use NULL verifier.
956 if ((major = kgss_sign(&minor, ap->context, ap->qop, &in_buf,
988 ASSERT(ap->context);
994 major = kgss_verify(&minor, ap->context, &msg_buf, &tok_buf,
1024 * If context is not established yet, save the verifier for
1025 * validating the sequence window later at the end of context
1052 major = kgss_verify(&minor, ap->context, &msg_buf, &tok_buf,
1064 * Refresh client context. This is necessary sometimes because the
1083 * The context needs to be recreated only when the error status
1086 * The existing context should not be destroyed unless the above
1087 * error status codes are received or if the context has not
1095 * Destroy the context if necessary. Use the same memory
1096 * for the new context since we've already passed a pointer
1099 if (ap->context != NULL) {
1100 ctx_sav = ap->context;
1101 ap->context = NULL;
1111 * If the context was not already established, don't try to
1117 "rpc_gss_refresh: context was not established\n");
1127 * Recreate context.
1143 if (ap->context != NULL) {
1145 &ap->context, NULL);
1156 ap->context = ctx_sav;
1188 * Destroy a context.
1198 * to destroy the context in the server cache.
1200 * context cache on the server side.
1225 * Destroy local GSS context.
1227 if (ap->context != NULL) {
1228 (void) kgss_delete_sec_context(&minor_stat, &ap->context, NULL);
1229 ap->context = NULL;
1273 * This is a private interface which will destroy a context
1285 * If we have a server context id, inform server that we are
1286 * destroying the context.
1336 * Reject an invalid context.
1339 RPCGSS_LOG0(1, "rpc_gss_wrap: reject an invalid context\n");
1344 * If context is established, bump up sequence number.
1350 * Create the header in a temporary XDR context and buffer
1397 * If context is not established, or if neither integrity
1404 return (__rpc_gss_wrap_data(ap->service, ap->qop, ap->context,
1421 * If context is not established, of if neither integrity
1428 ap->context,