Lines Matching refs:token

418 	isc_token_t token;
430 #define NEXTTOKEN(lex, opt, token) \
432 ret = isc_lex_gettoken(lex, opt, token); \
437 #define READLINE(lex, opt, token) \
439 ret = isc_lex_gettoken(lex, opt, token); \
444 } while ((*token).type != isc_tokentype_eol)
449 NEXTTOKEN(lex, opt, &token);
450 if (token.type != isc_tokentype_string ||
451 strcmp(DST_AS_STR(token), PRIVATE_KEY_STR) != 0)
457 NEXTTOKEN(lex, opt, &token);
458 if (token.type != isc_tokentype_string || (DST_AS_STR(token))[0] != 'v')
463 if (sscanf(DST_AS_STR(token), "v%d.%d", &major, &minor) != 2) {
478 READLINE(lex, opt, &token);
483 NEXTTOKEN(lex, opt, &token);
484 if (token.type != isc_tokentype_string ||
485 strcmp(DST_AS_STR(token), ALGORITHM_STR) != 0)
491 NEXTTOKEN(lex, opt | ISC_LEXOPT_NUMBER, &token);
492 if (token.type != isc_tokentype_number ||
493 token.value.as_ulong != (unsigned long)dst_key_alg(key))
499 READLINE(lex, opt, &token);
508 ret = isc_lex_gettoken(lex, opt, &token);
515 } while (token.type == isc_tokentype_eol);
517 if (token.type != isc_tokentype_string) {
522 if (strcmp(DST_AS_STR(token), "External:") == 0) {
528 tag = find_numericdata(DST_AS_STR(token));
532 NEXTTOKEN(lex, opt | ISC_LEXOPT_NUMBER, &token);
533 if (token.type != isc_tokentype_number) {
538 dst_key_setnum(key, tag, token.value.as_ulong);
543 tag = find_timedata(DST_AS_STR(token));
547 NEXTTOKEN(lex, opt, &token);
548 if (token.type != isc_tokentype_string) {
553 ret = dns_time32_fromtext(DST_AS_STR(token), &when);
564 tag = find_value(DST_AS_STR(token), alg);
588 READLINE(lex, opt, &token);