Lines Matching refs:token

420 	isc_token_t token;
432 #define NEXTTOKEN(lex, opt, token) \
434 ret = isc_lex_gettoken(lex, opt, token); \
439 #define READLINE(lex, opt, token) \
441 ret = isc_lex_gettoken(lex, opt, token); \
446 } while ((*token).type != isc_tokentype_eol)
451 NEXTTOKEN(lex, opt, &token);
452 if (token.type != isc_tokentype_string ||
453 strcmp(DST_AS_STR(token), PRIVATE_KEY_STR) != 0)
459 NEXTTOKEN(lex, opt, &token);
460 if (token.type != isc_tokentype_string || (DST_AS_STR(token))[0] != 'v')
465 if (sscanf(DST_AS_STR(token), "v%d.%d", &major, &minor) != 2) {
480 READLINE(lex, opt, &token);
485 NEXTTOKEN(lex, opt, &token);
486 if (token.type != isc_tokentype_string ||
487 strcmp(DST_AS_STR(token), ALGORITHM_STR) != 0)
493 NEXTTOKEN(lex, opt | ISC_LEXOPT_NUMBER, &token);
494 if (token.type != isc_tokentype_number ||
495 token.value.as_ulong != (unsigned long)dst_key_alg(key))
501 READLINE(lex, opt, &token);
510 ret = isc_lex_gettoken(lex, opt, &token);
517 } while (token.type == isc_tokentype_eol);
519 if (token.type != isc_tokentype_string) {
524 if (strcmp(DST_AS_STR(token), "External:") == 0) {
530 tag = find_numericdata(DST_AS_STR(token));
534 NEXTTOKEN(lex, opt | ISC_LEXOPT_NUMBER, &token);
535 if (token.type != isc_tokentype_number) {
540 dst_key_setnum(key, tag, token.value.as_ulong);
545 tag = find_timedata(DST_AS_STR(token));
549 NEXTTOKEN(lex, opt, &token);
550 if (token.type != isc_tokentype_string) {
555 ret = dns_time32_fromtext(DST_AS_STR(token), &when);
566 tag = find_value(DST_AS_STR(token), alg);
590 READLINE(lex, opt, &token);