Lines Matching defs:tok
414 send_token(int *fdptr, gss_buffer_t tok)
430 len = htonl(tok->length);
433 out_buf = (char *)malloc((size_t)(lensz + tok->length));
441 (void) memcpy((void *)(out_buf + lensz), (void *)tok->value,
442 tok->length);
444 if (send_timeout(fd, out_buf, (lensz + tok->length))) {
458 recv_token(int fd, gss_buffer_t tok)
474 tok->value = (char *)malloc(len);
475 if (tok->value == NULL) {
479 tok->length = 0;
483 if (recv_timeout(fd, tok->value, len)) {
484 free(tok->value);
485 tok->value = NULL;
486 tok->length = 0;
490 tok->length = len;