Lines Matching refs:token

59 	token_t *token;	/* Resultant token */
61 if ((token = (token_t *)malloc(sizeof (token_t))) == NULL)
63 if ((token->tt_data = malloc(s)) == NULL) {
64 free(token);
67 token->tt_size = s;
68 token->tt_next = NULL;
69 return (token);
75 * pointer to header token.
81 token_t *token; /* token pointer */
82 char version = TOKEN_VERSION; /* version of token family */
86 char data_header = AUT_HEADER64; /* header for this token */
88 token = get_token(2 * sizeof (char) + sizeof (int32_t) +
93 token = get_token(2 * sizeof (char) + 3 * sizeof (int32_t) +
97 if (token == NULL)
99 adr_start(&adr, token->tt_data);
100 adr_char(&adr, &data_header, 1); /* token ID */
110 return (token);
116 * pointer to header token.
122 token_t *token; /* token pointer */
123 char version = TOKEN_VERSION; /* version of token family */
129 char data_header = AUT_HEADER64_EX; /* header for this token */
148 token = get_token(2 * sizeof (char) + sizeof (int32_t) +
152 token = get_token(2 * sizeof (char) + 3 * sizeof (int32_t) +
156 if (token == NULL)
158 adr_start(&adr, token->tt_data);
159 adr_char(&adr, &data_header, 1); /* token ID */
172 return (token);
178 * pointer to a trailer token.
184 token_t *token; /* token pointer */
185 char data_header = AUT_TRAILER; /* header for this token */
189 token = get_token(sizeof (char) + sizeof (int32_t) + sizeof (short));
190 if (token == NULL)
192 adr_start(&adr, token->tt_data);
193 adr_char(&adr, &data_header, 1); /* token ID */
197 return (token);
203 * pointer to an argument token.
208 token_t *token; /* local token */
210 char data_header = AUT_ARG32; /* header for this token */
215 token = get_token((int)(2 * sizeof (char) + sizeof (int32_t) +
217 if (token == NULL)
219 adr_start(&adr, token->tt_data);
220 adr_char(&adr, &data_header, 1); /* token type */
226 return (token);
232 * pointer to an argument token.
237 token_t *token; /* local token */
239 char data_header = AUT_ARG64; /* header for this token */
244 token = get_token((int)(2 * sizeof (char) + sizeof (int64_t) +
246 if (token == NULL)
248 adr_start(&adr, token->tt_data);
249 adr_char(&adr, &data_header, 1); /* token type */
255 return (token);
262 * pointer to an attribute token.
267 token_t *token; /* local token */
271 char data_header = AUT_ATTR64; /* header for this token */
273 token = get_token(sizeof (char) +
279 token = get_token(sizeof (char) + sizeof (int32_t) * 5 +
283 if (token == NULL)
285 adr_start(&adr, token->tt_data);
301 return (token);
307 * pointer to a data token.
313 token_t *token; /* token pointer */
314 char data_header = AUT_DATA; /* header for this token */
344 token = get_token((int)(4 * sizeof (char) + byte_count));
345 if (token == NULL)
347 adr_start(&adr, token->tt_data);
372 return (token);
381 * token id adr_char
386 * pointer to a AUT_PRIV token.
391 token_t *token; /* local token */
393 char data_header = AUT_PRIV; /* header for this token */
407 token = get_token((int)(sizeof (char) + (2 * sizeof (short)) + t_bytes
409 if (token == NULL)
412 adr_start(&adr, token->tt_data);
421 return (token);
427 * pointer to a process token.
434 token_t *token; /* local token */
437 char data_header = AUT_PROCESS64; /* header for this token */
439 token = get_token(sizeof (char) + 8 * sizeof (int32_t) +
444 token = get_token(sizeof (char) + 9 * sizeof (int32_t));
447 if (token == NULL)
449 adr_start(&adr, token->tt_data);
465 return (token);
471 * pointer to a process_ex token.
477 token_t *token; /* local token */
479 char data_header; /* header for this token */
484 token = get_token(sizeof (char) + sizeof (int64_t) +
488 token = get_token(sizeof (char) + sizeof (int64_t) +
494 token = get_token(sizeof (char) + 13 * sizeof (int32_t));
497 token = get_token(sizeof (char) + 9 * sizeof (int32_t));
500 if (token == NULL)
502 adr_start(&adr, token->tt_data);
523 return (token);
529 * pointer to token chain containing a sequence token
534 token_t *token; /* local token */
536 char data_header = AUT_SEQ; /* header for this token */
538 token = get_token(sizeof (char) + sizeof (int32_t));
539 if (token == NULL)
541 adr_start(&adr, token->tt_data);
545 return (token);
551 * pointer to mbuf chain containing a socket token.
557 token_t *token;
561 token = get_token(sizeof (char) + sizeof (short) * 3 +
563 if (token == NULL)
565 adr_start(&adr, token->tt_data);
573 return (token);
579 * pointer to a process token.
586 token_t *token; /* local token */
589 char data_header = AUT_SUBJECT64; /* header for this token */
591 token = get_token(sizeof (char) + sizeof (int64_t) +
596 token = get_token(sizeof (char) + 9 * sizeof (int32_t));
599 if (token == NULL)
601 adr_start(&adr, token->tt_data);
617 return (token);
623 * pointer to a process token.
630 token_t *token; /* local token */
633 char data_header; /* header for this token */
637 token = get_token(sizeof (char) + sizeof (int64_t) +
641 token = get_token(sizeof (char) + sizeof (int64_t) +
645 char data_header; /* header for this token */
649 token = get_token(sizeof (char) + 13 * sizeof (int32_t));
652 token = get_token(sizeof (char) + 9 * sizeof (int32_t));
656 if (token == NULL)
658 adr_start(&adr, token->tt_data);
679 return (token);
685 * pointer to a process token.
701 * pointer to a text token.
706 token_t *token; /* local token */
708 char data_header = AUT_TEXT; /* header for this token */
712 token = get_token((int)(sizeof (char) + sizeof (short) + bytes));
713 if (token == NULL)
715 adr_start(&adr, token->tt_data);
720 return (token);
726 * pointer to a path token.
731 token_t *token; /* local token */
733 char data_header = AUT_PATH; /* header for this token */
738 token = get_token((int)(sizeof (char) + sizeof (short) + bytes));
739 if (token == NULL)
741 adr_start(&adr, token->tt_data);
746 return (token);
752 * pointer to an command line argument token
757 token_t *token; /* local token */
759 char data_header = AUT_CMD; /* header for this token */
784 token = get_token(len);
785 if (token == NULL)
788 adr_start(&adr, token->tt_data);
807 return (token);
813 * pointer to a exit value token.
818 token_t *token; /* local token */
820 char data_header = AUT_EXIT; /* header for this token */
822 token = get_token(sizeof (char) + (2 * sizeof (int32_t)));
823 if (token == NULL)
825 adr_start(&adr, token->tt_data);
830 return (token);
836 * pointer to a return value token.
841 token_t *token; /* local token */
843 char data_header = AUT_RETURN32; /* header for this token */
845 token = get_token(2 * sizeof (char) + sizeof (int32_t));
846 if (token == NULL)
848 adr_start(&adr, token->tt_data);
853 return (token);
859 * pointer to a return value token.
864 token_t *token; /* local token */
866 char data_header = AUT_RETURN64; /* header for this token */
868 token = get_token(2 * sizeof (char) + sizeof (int64_t));
869 if (token == NULL)
871 adr_start(&adr, token->tt_data);
876 return (token);
883 * pointer to a opaque token.
888 token_t *token; /* local token */
890 char data_header = AUT_OPAQUE; /* header for this token */
895 token = get_token((int)(sizeof (char) + sizeof (short) + bytes));
896 if (token == NULL)
898 adr_start(&adr, token->tt_data);
903 return (token);
909 * pointer to an internet address token
914 token_t *token; /* local token */
916 char data_header = AUT_IN_ADDR; /* header for this token */
918 token = get_token(sizeof (char) + sizeof (struct in_addr));
919 if (token == NULL)
921 adr_start(&adr, token->tt_data);
925 return (token);
931 * pointer to an internet extended token
936 token_t *token;
954 if ((token = get_token(sizeof (char) + sizeof (int32_t) +
959 adr_start(&adr, token->tt_data);
965 return (token);
971 * pointer to token chain containing a ip port address token
976 token_t *token; /* local token */
978 char data_header = AUT_IPORT; /* header for this token */
980 token = get_token(sizeof (char) + sizeof (short));
981 if (token == NULL)
983 adr_start(&adr, token->tt_data);
987 return (token);
993 token_t *token; /* local token */
995 char data_header = AUT_IPC; /* header for this token */
997 token = get_token((2 * sizeof (char)) + sizeof (int32_t));
998 if (token == NULL)
1000 adr_start(&adr, token->tt_data);
1005 return (token);
1023 char data_header = AUT_TID; /* header for this token */
1025 token_t *token; /* local token */
1031 token = get_token((int)(2 * sizeof (char) + 2 * sizeof (short) +
1033 if (token == NULL)
1036 adr_start(&adr, token->tt_data);
1049 return (token);
1059 * pointer to a group list token.
1066 token_t *token; /* local token */
1068 char data_header = AUT_GROUPS; /* header for this token */
1070 token = get_token(sizeof (char) + NGROUPS * sizeof (int32_t));
1071 if (token == NULL)
1073 adr_start(&adr, token->tt_data);
1077 return (token);
1083 * pointer to a group list token.
1088 token_t *token; /* local token */
1090 char data_header = AUT_NEWGROUPS; /* header for this token */
1095 token = get_token(sizeof (char) + sizeof (short) + n * sizeof (gid_t));
1096 if (token == NULL)
1099 adr_start(&adr, token->tt_data);
1104 return (token);
1110 * pointer to an exec args token.
1121 * pointer to an exec args token.
1132 * pointer to an exec args token.
1137 token_t *token;
1147 token = get_token(sizeof (char) + sizeof (int32_t) + len);
1148 if (token == (token_t *)NULL)
1150 adr_start(&adr, token->tt_data);
1156 return (token);
1162 * pointer to a uauth token.
1167 token_t *token; /* local token */
1169 char data_header = AUT_UAUTH; /* header for this token */
1174 token = get_token((int)(sizeof (char) + sizeof (short) + bytes));
1175 if (token == NULL)
1177 adr_start(&adr, token->tt_data);
1182 return (token);
1188 * pointer to a use of privilege token.
1193 token_t *token; /* local token */
1195 char data_header = AUT_UAUTH; /* header for this token */
1200 token = get_token(sizeof (char) + sizeof (char) + sizeof (short) +
1202 if (token == NULL)
1204 adr_start(&adr, token->tt_data);
1210 return (token);
1216 * pointer to a user token.
1221 token_t *token; /* local token */
1223 char data_header = AUT_USER; /* header for this token */
1228 token = get_token(sizeof (char) + sizeof (uid_t) + sizeof (short) +
1230 if (token == NULL)
1232 adr_start(&adr, token->tt_data);
1238 return (token);
1244 * pointer to a xatom token.
1249 token_t *token; /* local token */
1251 char data_header = AUT_XATOM; /* header for this token */
1256 token = get_token(sizeof (char) + sizeof (short) + len);
1257 if (token == NULL)
1259 adr_start(&adr, token->tt_data);
1264 return (token);
1270 * pointer to a X select token.
1275 token_t *token; /* local token */
1277 char data_header = AUT_XSELECT; /* header for this token */
1286 token = get_token(sizeof (char) + (sizeof (short) * 3) +
1288 if (token == NULL)
1290 adr_start(&adr, token->tt_data);
1299 return (token);
1305 * pointer to a common X token.
1311 token_t *token; /* local token */
1314 token = get_token(sizeof (char) + sizeof (int32_t) + sizeof (uid_t));
1315 if (token == NULL)
1317 adr_start(&adr, token->tt_data);
1322 return (token);
1328 * pointer to a X Colormap token.
1340 * pointer to a X Cursor token.
1352 * pointer to a X Font token.
1364 * pointer to a X Graphic Context token.
1376 * pointer to a X Pixal Map token.
1388 * pointer to a X Window token.
1400 * pointer to a X Property token.
1406 token_t *token; /* local token */
1408 char data_header = AUT_XPROPERTY; /* header for this token */
1413 token = get_token(sizeof (char) + sizeof (int32_t) + sizeof (uid_t) +
1415 if (token == NULL)
1417 adr_start(&adr, token->tt_data);
1424 return (token);
1430 * pointer to a X Client token
1436 token_t *token; /* local token */
1438 char data_header = AUT_XCLIENT; /* header for this token */
1440 token = get_token(sizeof (char) + sizeof (uint32_t));
1441 if (token == NULL)
1443 adr_start(&adr, token->tt_data);
1447 return (token);
1453 * pointer to a label token.
1458 token_t *token; /* local token */
1460 char data_header = AUT_LABEL; /* header for this token */
1463 token = get_token(sizeof (char) + llen);
1464 if (token == NULL) {
1467 free(token);
1470 adr_start(&adr, token->tt_data);
1474 return (token);
1480 * pointer to a label token.
1486 token_t *token;
1492 token = au_to_label(ucred_getlabel(uc));
1494 return (token);
1500 * pointer to a zonename token.
1505 token_t *token; /* local token */
1507 char data_header = AUT_ZONENAME; /* header for this token */
1514 token = get_token((int)(sizeof (char) + sizeof (short) + bytes));
1515 if (token == NULL)
1517 adr_start(&adr, token->tt_data);
1522 return (token);
1528 * pointer to a fmri token.
1533 token_t *token; /* local token */
1535 char data_header = AUT_FMRI; /* header for this token */
1542 token = get_token((int)(sizeof (char) + sizeof (short) + bytes));
1543 if (token == NULL)
1545 adr_start(&adr, token->tt_data);
1550 return (token);