Lines Matching defs:token

84 	char *lasts, *token;
102 token = strtok_r(input_string, slash, &lasts);
103 if (token == NULL || (key_default = atoi(token)) == 0)
107 token = strtok_r(NULL, dash, &lasts);
108 if (token == NULL || (key_low = atoi(token)) == 0)
112 token = strtok_r(NULL, comma, &lasts);
113 if (token == NULL || (key_high = atoi(token)) == 0 ||
118 token = strtok_r(NULL, "", &lasts);
119 if (token == NULL || (key_increment = atoi(token)) == 0)
139 token = strtok_r(input_string, comma, &lasts);
140 if (token == NULL) {
156 key_sizes[num_sizes - 1] = atoi(token);
158 } while ((token = strtok_r(NULL, comma, &lasts)) != NULL);
192 char *token, *lasts, *alg_names, *ef_name, *key_string, *block_string;
215 if ((token = strtok_r(line, " \t\n", &lasts)) == NULL ||
216 token[0] == '#') {
229 /* skip the protocol token */
230 token = strtok_r(line, pipechar, &lasts);
233 token = strtok_r(NULL, pipechar, &lasts);
234 if (token == NULL || (new_num = atoi(token)) == 0) {
241 token = strtok_r(NULL, pipechar, &lasts);
242 if (token == NULL) {
247 proto_name = token;
250 token = strtok_r(NULL, pipechar, &lasts);
251 if (token == NULL) {
257 token[strlen(token) - 1] = '\0';
258 if (_str_to_ipsec_exec_mode(token, &exec_mode) != 0) {
260 "invalid execution mode: \"%s\"", token);
296 /* skip the algorithm token */
297 token = strtok_r(line, pipechar, &lasts);
300 token = strtok_r(NULL, pipechar, &lasts);
301 if (token == NULL || (new_num = atoi(token)) == 0) {
320 token = strtok_r(NULL, pipechar, &lasts);
321 if (token == NULL) {
327 alg_num = atoi(token);
330 token = strtok_r(NULL, pipechar, &lasts);
331 if (token == NULL) {
336 alg_names = token;
339 token = strtok_r(NULL, pipechar, &lasts);
340 if (token == NULL) {
347 ef_name = token;
350 token = strtok_r(NULL, pipechar, &lasts);
351 if (token == NULL) {
358 key_string = token;
361 token = strtok_r(NULL, pipechar, &lasts);
362 if (token == NULL) {
369 block_string = token;
375 token = strtok_r(NULL, pipechar, &lasts);
376 params_string = token;
378 token = strtok_r(NULL, pipechar, &lasts);
379 if (token != NULL)
380 flags = atoi(token);
397 token = strtok_r(block_string, comma, &lasts);
398 if (token == NULL) {
415 block_sizes[num_sizes - 1] = atoi(token);
417 } while ((token = strtok_r(NULL, comma, &lasts)) !=
428 token = strtok_r(params_string, comma, &lasts);
429 if (token == NULL) {
447 atoi(token);
449 } while ((token = strtok_r(NULL, comma, &lasts))
472 token = strtok_r(alg_names, comma, &lasts);
473 if (curalg->a_names == NULL || token == NULL) {
489 strdup(token);
494 } while ((token = strtok_r(NULL, comma, &lasts)) !=