Lines Matching refs:tok

59 	dh_token_desc tok;
61 dh_mic_t mic = &tok.ver.dh_version_u.body.dh_token_body_desc_u.sign;
88 tok.ver.verno = cntx->proto_version;
89 tok.ver.dh_version_u.body.type = DH_MIC;
100 * non serialized tok and the context keys.
102 if ((*minor = __make_token(token, message, &tok, &keys))
129 dh_token_desc tok;
131 dh_mic_t mic = &tok.ver.dh_version_u.body.dh_token_body_desc_u.sign;
154 /* Deserialize token into tok using messaget and keys */
156 &tok, &keys)) != DH_SUCCESS) {
167 /* Check that the tok version is supported */
168 if (tok.ver.verno != cntx->proto_version ||
169 tok.ver.dh_version_u.body.type != DH_MIC) {
170 xdr_free(xdr_dh_token_desc, (char *)&tok);
181 /* free the deserialize token tok */
182 xdr_free(xdr_dh_token_desc, (char *)&tok);
223 dh_token_desc tok;
225 dh_wrap_t wrap = &tok.ver.dh_version_u.body.dh_token_body_desc_u.seal;
249 tok.ver.verno = cntx->proto_version;
250 tok.ver.dh_version_u.body.type = DH_WRAP;
266 __free_signature(&tok.verifier);
283 /* Serialize the token tok into output using the session keys */
284 if ((*minor = __make_token(output, NULL, &tok, &keys)) != DH_SUCCESS) {
314 dh_token_desc tok;
316 dh_wrap_t wrap = &tok.ver.dh_version_u.body.dh_token_body_desc_u.seal;
340 /* Deserialize the input in to tok using keys */
341 if ((*minor = __get_token(input, NULL, &tok, &keys)) != DH_SUCCESS) {
359 if (tok.ver.verno != cntx->proto_version ||
360 tok.ver.dh_version_u.body.type != DH_WRAP) {
361 xdr_free(xdr_dh_token_desc, (char *)&tok);
380 xdr_free(xdr_dh_token_desc, (char *)&tok);
398 /* Were done with the deserialize token, tok */
399 xdr_free(xdr_dh_token_desc, (char *)&tok);