Lines Matching refs:mech
71 static int g_token_size(gss_OID mech, unsigned int body_size);
72 static void g_make_token_header(gss_OID mech, int body_size,
74 static int g_verify_token_header(gss_OID mech, int *body_size,
143 gss_mechanism mech, tmp;
145 mech = gss_mech_initialize();
148 tmp = __kgss_get_mechanism(&mech->mech_type);
162 __kgss_add_mechanism(mech);
163 ASSERT(__kgss_get_mechanism(&mech->mech_type) == mech);
484 g_token_size(mech, body_size)
485 gss_OID mech;
489 body_size += 4 + (int)mech->length; /* NEED overflow check */
494 g_make_token_header(mech, body_size, buf, tok_type)
495 gss_OID mech;
501 der_write_length(buf, 4 + mech->length + body_size);
503 *(*buf)++ = (unsigned char) mech->length;
504 TWRITE_STR(*buf, mech->elements, ((int)mech->length));
510 g_verify_token_header(mech, body_size, buf_in, tok_type, toksize)
511 gss_OID mech;
547 if (! g_OID_equal(&toid, mech))