Lines Matching refs:token

83 	char *lasts, *token;
101 token = strtok_r(input_string, slash, &lasts);
102 if (token == NULL || (key_default = atoi(token)) == 0)
106 token = strtok_r(NULL, dash, &lasts);
107 if (token == NULL || (key_low = atoi(token)) == 0)
111 token = strtok_r(NULL, comma, &lasts);
112 if (token == NULL || (key_high = atoi(token)) == 0 ||
117 token = strtok_r(NULL, "", &lasts);
118 if (token == NULL || (key_increment = atoi(token)) == 0)
138 token = strtok_r(input_string, comma, &lasts);
139 if (token == NULL) {
155 key_sizes[num_sizes - 1] = atoi(token);
157 } while ((token = strtok_r(NULL, comma, &lasts)) != NULL);
191 char *token, *lasts, *alg_names, *ef_name, *key_string, *block_string;
214 if ((token = strtok_r(line, " \t\n", &lasts)) == NULL ||
215 token[0] == '#') {
228 /* skip the protocol token */
229 token = strtok_r(line, pipechar, &lasts);
232 token = strtok_r(NULL, pipechar, &lasts);
233 if (token == NULL || (new_num = atoi(token)) == 0) {
240 token = strtok_r(NULL, pipechar, &lasts);
241 if (token == NULL) {
246 proto_name = token;
249 token = strtok_r(NULL, pipechar, &lasts);
250 if (token == NULL) {
256 token[strlen(token) - 1] = '\0';
257 if (_str_to_ipsec_exec_mode(token, &exec_mode) != 0) {
259 "invalid execution mode: \"%s\"", token);
295 /* skip the algorithm token */
296 token = strtok_r(line, pipechar, &lasts);
299 token = strtok_r(NULL, pipechar, &lasts);
300 if (token == NULL || (new_num = atoi(token)) == 0) {
319 token = strtok_r(NULL, pipechar, &lasts);
320 if (token == NULL) {
326 alg_num = atoi(token);
328 token = strtok_r(NULL, pipechar, &lasts);
329 if (token == NULL) {
334 alg_names = token;
337 token = strtok_r(NULL, pipechar, &lasts);
338 if (token == NULL) {
345 ef_name = token;
348 token = strtok_r(NULL, pipechar, &lasts);
349 if (token == NULL) {
356 key_string = token;
359 token = strtok_r(NULL, pipechar, &lasts);
360 if (token == NULL) {
367 block_string = token;
373 token = strtok_r(NULL, pipechar, &lasts);
374 params_string = token;
375 token = strtok_r(NULL, pipechar, &lasts);
376 if (token != NULL)
377 flags = atoi(token);
396 token = strtok_r(block_string, comma, &lasts);
397 if (token == NULL) {
414 block_sizes[num_sizes - 1] = atoi(token);
416 } while ((token = strtok_r(NULL, comma, &lasts)) !=
427 token = strtok_r(params_string, comma, &lasts);
428 if (token == NULL) {
446 atoi(token);
448 } while ((token = strtok_r(NULL, comma, &lasts))
471 token = strtok_r(alg_names, comma, &lasts);
472 if (curalg->a_names == NULL || token == NULL) {
488 strdup(token);
493 } while ((token = strtok_r(NULL, comma, &lasts)) !=